Navisworks API

Navisworks API

Reply
Member
3 Posts
0 Kudos
Registered: ‎03-07-2012
Post 1 of 5
Accepted Solution

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

1646 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
1,352 Posts
81 Kudos
Registered: ‎06-12-2011
Post 2 of 5

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
1 Posts
0 Kudos
Registered: ‎04-11-2012
Post 3 of 5

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
1,352 Posts
81 Kudos
Registered: ‎06-12-2011
Post 4 of 5

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
13 Posts
0 Kudos
Registered: ‎10-24-2011
Post 5 of 5

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!