Category: Navisworks

  • Capture view image and force screen refresh continuously

    By Xiaodong Liang A few months ago, one developer tried to change view state (such as change object color/transparency, hide some objects etc), and save the capture image file per view in a loop. This happens continuously. But, view state is not updated on screen as expected at once. e.g. the item color is set…

  • Document Database – part 2

    By Xiaodong Liang In the last post, we leant how to create a database table. Now let us take a look the usage of add rows and query the table. To add a row, we need to prepare the value of each column. NavisworksCommand contains the parameters collection which works for the column data. You…

  • Get started with NwCreate – part 1

    By Xiaodong Liang The NWCreate API provides a means of creating NavisWorks models, either for export of NWD files from a third party application (LiNwcApi) or to implement a file loader (LiNwcLoader) for NavisWorks. The figure below shows the two features.   Either feature does not mean you can add additional model/elements to the existing…

  • Use InwOpStateEvents in C#

    By Xiaodong Liang This is actually a question of the topic: how to use COM event in .NET. I searched MSDN and found two articles. One for VB.NET, another for C#. http://support.microsoft.com/kb/810228 http://support.microsoft.com/kb/811645 The code below is a small skeleton I wrote to demo how to use in C#. I added it to the SDK…

  • Document Database – part 1

    By Xiaodong Liang Document database is a kind of way to store the extension data in the document. It is not visible to the end user. The data is organized in a format of SQL database and follows the SQL syntax. So you will feel much comfortable if you are familiar with SQL. In case,…

  • Navisworks 2014 API new feature – ToolPlugin

    By Xiaodong Liang ToolPlugin is actually a combination of InputPlugin and RenderPlugin. It allows you to customize the tool. Typically, it configures the behavior when mouse clicking the object. So you could switch between the native tool of Navisworks and your tools. Firstly, create a class deriving from ToolPlugin . It is a kind of…

  • Navisworks 2014 API new feature – RenderPlugin

    By Xiaodong Liang I have frequently heard the voice that the developers want to draw some custom graphics in Naivsworks e.g. the custom red line. Now it came true. The new plugin type provides methods to render user-graphics. It can render in 3D model space or 2D screen space. The new class Graphics is used…

  • Navisworks 2014 API new feature – Dynamic Loading of Plugin

    By Xiaodong Liang In the past, Navisworks will load all valid plugins in the folder <Naivsworks>Plugins. Of course, as indicated in Navisworks 2014 API new feature – One more path to load plugin, Navisworks will also load the plugins in the new folder automatically as well. In some situations, we may need to demand loading…

  • Navisworks 2014 API new feature – InputPlugin

    By Xiaodong Liang This new plugin allows you to handle the interaction events such as mouse and keyboard. By this plugin, you could also know the selected object. Firstly, create a class deriving from InputPlugin. It is a kind of implicit plugin which has no interface. So the attribute DisplayName is useless. // The InputPlugin…

  • Navisworks 2014 API new feature – One more path to load plugin

    By Xiaodong Liang In the past, we can only put the plugin assembly under <Navisworks Installation Path>\Plugins. In 2014, you have one more option to deploy the assembly in "%APPDATA%\Autodesk Navisworks Manage 2014\Plugins In the DevDays’s PPT, it says the new path is “%USERPROFILE%“. It is wrong. Sorry for this. For programming, the script of…