Navisworks API

Navisworks API

Reply
New Member
guilhermecosta_gca
Posts: 1
Registered: ‎08-23-2012
Message 1 of 2 (186 Views)

Instantiate entities with Naviworks API

186 Views, 1 Replies
08-23-2012 07:40 AM

Hi,

 

Is it possible to instantiate 3D models on a given position by scripting?

Say, I've got a MyModel.fbx file and I want to create lots of instances of this model in a scene each one with a position, a rotation and a scale. What possible ways could I do that? Would it be better to use .NET, COM or NwCreator?

 

Thanks in advance.

ADN Support Specialist
xiaodong.liang
Posts: 1,335
Registered: ‎06-12-2011
Message 2 of 2 (169 Views)

Re: Instantiate entities with Naviworks API

08-30-2012 02:51 AM in reply to: guilhermecosta_gca

Hi,

 

firstly, NwCreate is the correct direction. NwCreate  provides two means:  either for export of NWD files from a third party application (LiNwcApi) or to implement a file loader (LiNwcLoader) for NavisWorks. So, the second one meets your requirement. It allows you load 3rd file format and convert the data to the models in Navisworks scene. The SDK \api\NwCreate provides samples and API documentation.  loader is a good sample.

 

Secondly, I have to emphasize: NwCreate produces the models in from a blank file, no matter LiNwcApi, LiNwcLoader. That is to say, you cannot create models in the existing file.

 

A practice is:  you could produce the files of your own models with NwCreate, and Append/Merge to the existing file.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.