Create Model Item using Navisworks API's

Create Model Item using Navisworks API's

aishwarya_karandeAFGDV
Observer Observer
596 Views
1 Reply
Message 1 of 2

Create Model Item using Navisworks API's

aishwarya_karandeAFGDV
Observer
Observer

Hello,

In my case, I have my geometry in the STP file and want to create its model item and add some properties like adding name/guid, grouping them in a certain manner ..etc, and afterward add them in NW environment rather than importing this stp file directly in Navisworks environment.

 

In NW API ..there is no direct functionality available to create model items which is understandable.

I came across this post for the creation of a model object using nwcreate api: 
https://forums.autodesk.com/t5/navisworks-api/how-to-create-new-modelitems-with-their-modelgeometry-...
https://adndevblog.typepad.com/aec/2013/07/get-started-with-nwcreate-part-1.html

However as per the above post...we can create NW model object using its geometry details...

 

I don't want to create NW model object from the crash(using geometry details).

 

I am looking for functionality in the Navisworks COM API or NWCreate API or NW other API's that allows me to pass the STP file (containing geometry details) and internally uses these details to auto-create and return the ModelItem type. ..afterward I will add some property on it and then add this model item in NW environment ...which I will use further...

 

Also, Could you provide some guidance and references regarding the NWCreate API to help me explore it further? Any insights or recommendations would be greatly appreciated.

Thank you for your valuable assistance.



0 Likes
597 Views
1 Reply
Reply (1)
Message 2 of 2

alexisDVJML
Collaborator
Collaborator

.nwd are kind of "rea-only" files so you can't add model items to existing .nwd files.
.nwf basically allows to associate extra ttributes, viewpoints etc.

Only NWCreate API allows to create ModelItem in new, from scratch, .nwc/.nwd.
To convert STP files, you will have to use NWCreate API and a STEP files C/C++ library. This looks quite difficult and would require a deep understanding of STEP files and chosen library.

I guess theoretically you could also implement a FileProtocolPlugin Class, but this seems even harder...

Main Scientist, Full Stack Developer & When Time Permits Director of IDIGO ► On your marks, Set, Go
0 Likes