Navisworks API

Navisworks API

Reply
Member
muaz.al.jarhi
Posts: 3
Registered: ‎03-07-2012
Message 1 of 5 (1,435 Views)
Accepted Solution

Havinfg Trouble reading and retreving data from a navis works file.

1435 Views, 4 Replies
03-08-2012 05:47 AM

Hello,

 

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.

 

Muaz Aljarhi 

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.

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

Re: Havinfg Trouble reading and retreving data from a navis works file.

03-28-2012 08:41 PM in reply to: muaz.al.jarhi

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.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

New Member
tomasz.przechodzki
Posts: 1
Registered: ‎04-11-2012
Message 3 of 5 (1,355 Views)

Re: Havinfg Trouble reading and retreving data from a navis works file.

04-11-2012 12:44 AM in reply to: xiaodong.liang

Hello

 

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?

 

Best regards,

Tomasz

ADN Support Specialist
xiaodong.liang
Posts: 1,276
Registered: ‎06-12-2011
Message 4 of 5 (1,289 Views)

Re: Havinfg Trouble reading and retreving data from a navis works file.

05-09-2012 09:35 PM in reply to: xiaodong.liang

add one sample of VB6 for some customers.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Contributor
pollyanna23
Posts: 13
Registered: ‎10-24-2011
Message 5 of 5 (1,227 Views)

Re: Havinfg Trouble reading and retreving data from a navis works file.

07-03-2012 02:50 PM in reply to: xiaodong.liang

Hi Xiaodong,

 

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!!

 

Anna

Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.