I am new to using navisworks. I am trying form a c# application to read a naviswors file (.nwd or .nwf). The problm is I do not know and cannot get how to retrieve the required data from the file. For example, If a model stored in the file is a cube, I should be able to grt information About this model like its dimentions, its position, position of virticies, etc.. I looked at the navisworks manage 2012 .net api but cannot find how to do it. Also I want to able to retrieve the schedule/costs (if they are included in the file). Thanks in advance.
Solved! Go to Solution.
In the conception of Navisworks, no ‘position’ for an object. It has an overall bounding box ModelGeometry.BoundingBox. In addition current API can override the transform, but cannot get the override value.
API can get the primitives of the object, by COM API currently. Please refer to the attached code.
I am also new to Navisworks, and I am trying to retrieve the 3D data from the NVC file. I have tried to use COM and GenerateSimplePrimitives function, but it’s extremely slow. For my test model (20MB NVC file) it generates 80M triangles, and it takes around 20 minutes on a very fast machine. Is there a way to speed up this process? Or is it possible to get an access to the real polygon/object (cylinder, box, surface, etc.) data?
add one sample of VB6 for some customers.
I am trying to run the example you uploaded using c#. I was able to compile it. While, there is nothing showing up in the Add-ins tab after copying the .dll file under the Plugin folder. Do you have any idea of that?
Thanks a lot!!
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.