Programmatically generating Navisworks files

By Saikat Bhattacharya

How can we generate Navisworks file programmatically? Is NWCreate used for this?

We can create Navisworks file programmatically using NWCreate. NWCreate API is provided as a LIB that can be linked into the standalone application. The api/nwcreate folder contains all the files we need.

But using a standalone application, we can only create NWC file. Please note that NWC files cannot be loaded into Freedom but can be loaded in Simulate and Manage. There are two functions that can be used to write a cache file in NWCreate:
LiNwcSceneWriteCache()
LiNwcSceneWriteCacheEx()

Both the functions are the same, except that the second one can return more errors codes.

The NWCreate SDK sample which ships with Navisworks includes a standalone program which creates a NWC file.  

To create NWD file, we need to have a licensed copy of Navisworks installed on each system. And this involves some additional tasks like determining the version of Navisworks that is installed on the system.


Comments

One response to “Programmatically generating Navisworks files”

  1. Hi ! Do you know if it’s possible to load NWD file outside Navisworks ? from an external application for example, using the SDK ?

Leave a Reply to AlexCancel reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading