Access embedded database properties

By Adam Nagy

I'm trying to access embedded database properties inside the Navisworks ActiveX control but I cannot find them. I tried the InwOaNode.Attributes() and GetGUIPropertyNode() but they do not seem to be listed there.

Solution

At the moment those properties are not available inside the ActiveX and .NET controls and inside Freedom.

Among other things, the Navisworks model consists of:

  1. A node hierarchy with attached attributes. This is static and is created when the model is first converted from CAD format. 
  2. Property plugins which add dynamic properties. E.g. Datatools or COM Property plugins. 

What you see depends on where you look.

  • When you look at the properties window in Navisworks you see the combination of both these: (1 and 2) 
  • If you use the .NET API you’ll you see the combination of both these: (1 and 2) 
  • If you use the COM API to look directly at attributes on nodes you see just the static attributes: (1 only). 
  • If You use the COM API GetGUIPropertyNode (see VB examples) you’ll you see the combination of both these: (1 and 2)

Comments

One response to “Access embedded database properties”

  1. I am trying to replicate what happens at the Find Items Interface where by clicking on the Category List, all the unique categories in the entire model get listed; and by clicking on the Property List, all the unique properties in the entire model under the selected category get listed. I have looked in .Net API and .COM API with no success.
    In .Net, I accessed the PropertyCategoryCollection class for every ModelItem in the entire model and ran If Statement to find a unique PropertyCategory and PropertyData. However, this takes forever in a large model.
    In COM, I used GetGUIPropertyNode and GUIAttributes methods to accessed InwGUIAttributesColl class for every InwOaPath in the entire model and ran If Statement to find a unique InwOaPropertyAttribute and InwOaProperty. Same thing, the process would take a long time.
    Is there any way to make this process faster similar to the Find Items interface

Leave a Reply

Discover more from Autodesk Developer Blog

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

Continue reading