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.

Leave a Reply to AlexCancel reply