Author: Xiaodong Liang

  • Inventor API: Hide Surface Bodies of Drawing View

    <?xml encoding=”UTF-8″>By Xiaodong Liang Question: It is possible to hide Surface Bodies by right clicking on the [Surface Bodies] node in the “Model Tree” and then toggle visibility by clicking on [Visibility]. I want to make a custom function using the inventor API that enables us to programmatically hide all Surface Bodies in a drawing.…

  • Inventor iLogic: Dislay Mass from Different LOD on Drawing

    By Xiaodong Liang This is from a forum post in which one customer wanted to get mass of each LOD and display them on the drawing of top assembly.  The advocate Rossano Praderi shared a solution which is nice to me. He provided the dataset only. I think it will be helpful for more customers…

  • Autodesk is hiring an evangelist of Revit API & BIM web services in Shanghai or Beijing!

    By Xiaodong Liang This is an exciting opportunity to be part of Forge & ADN team of Autodesk in Shanghai or Beijing, China. We are a global team, providing consulting services to worldwide developers & partners of Autodesk. We are running two programs: Autodesk Developer Network (ADN) and Autodesk Forge. The former is mainly for…

  • Fusion 360: Install 3rd Modules of Python

    <?xml encoding=”UTF-8″>By Xiaodong Liang With JavaScript, you can easily load 3rd libraries in relative path or even web repository. We have an article on that: http://adndevblog.typepad.com/manufacturing/2015/04/fusion-360-api-load-3rd-library-in-javascript.html With Python, typically we run a setup to install the modules and the dependent modules this module relies on. As we have known, Fusion 360 builds a Python environment…

  • Connect Access Database with Objects Properties of Property

    By Xiaodong Liang We are often asked about how to connect external database with the model items properties of Navisworks, like DataTools. Actually, since Navisworks .NET API is based on the native .NET framework, you can simply read out the data from database by relevant libraries such as Access, SQL, Oracle etc, then use properties…

  • Get Reference Distance of Hole Feature

    <?xml encoding=”UTF-8″>By Xiaodong Liang When you create hole feature, Inventor allows you to set the distances with the reference  edges. This can be got by HoleFeature.PlacementDefinition.DistanceOne and HoleFeature.PlacementDefinition.DistanceTwo If the reference  are not defined, you could iterate the edges of outer edge loop and  calculate the distance by Edge.Geometry.DistanceTo(point).  The following is an VBA code as a demo:  …

  • Add Custom Panel and Button to Built-in Tab of Navisworks Ribbon

    By Xiaodong Liang As we have known, Naivisworks Ribbon API allows developers to add custom Ribbon (Tab) . These are some articles: http://adndevblog.typepad.com/aec/2012/07/custom-ribbon-of-navisworks-part-1.html http://adndevblog.typepad.com/aec/2012/07/custom-ribbon-of-navisworks-part-2.html http://adndevblog.typepad.com/aec/2012/07/custom-ribbon-of-navisworks-part-3.html While sometimes, the requirement is to add button/panel to the built-in tabs. Actually, in  Navisworks the same library of Ribbon is used: AdWindows.dll which provides some underlying API to get…

  • Texture Image of Asset

    <?xml encoding=”UTF-8″>By Xiaodong Liang Texture Image of Asset Question: I have made simple part and assign to one face “Norman – One-Third Running” material from “Autodesk Material Library” . Then I have run VBA sample code “Write out all document appearances API Sample” of API help. The code result does not retrieve texture image. How…

  • Manipulate Family Table of Content Center

    <?xml encoding=”UTF-8″>By Xiaodong Liang In Inventor UI, we can edit cell, add new columns to the family table. In API, there are equivalent objects and methods.  The presumption is the family has been copied to your custom library which is read-write enabled.   The demo below dumps gets the specific family, dumps all columns name,…

  • Self-paced Navisworks API Training Labs

    By Xiaodong Liang We have produced a training lab material. The first version covers 11 topics that we think are basic to the developers who are getting started with Navisworks API. It could be also a reference for those who have some practices because the contents and samples might include the tricks of API. The…