Navisworks API

Reply
Member
SENO1285
Posts: 3
Registered: ‎01-29-2009
Message 1 of 4 (224 Views)

Sweep Geometry with NWCreate API

224 Views, 3 Replies
08-31-2012 05:19 AM

Greetings,

 

I have developed a loader using the NWCreate API, but now I'm stuck.

As input I have polygon contours (profiles), which I need to extrude or rotate to make solids in NavisWorks.

 

Input for translational sweeps: Sweep length, sweep direction(vector), coefficients of sweep plane, polygon contour

Output: Polygon contour is extruded in space to form a solid.

 

Input for rotational sweeps: Sweep axis, sweep rotation angle, coefficients of sweep plane, polygon contour

Output: Polygon contour is rotated in space to form a solid

 

How can I accomplish this using the NWCreate API?

ADN Support Specialist
xiaodong.liang
Posts: 1,303
Registered: ‎06-12-2011
Message 2 of 4 (208 Views)

Re: Sweep Geometry with NWCreate API

09-06-2012 02:23 AM in reply to: SENO1285

Hi,

 

some comments from our engineer team:

 

two options.

 

  1. Just do it yourself. For a translational sweep, you can just construct polygons for the edges of the sweep. For rotational sweeps, you can use the Conic function to create the curved surfaces. This would be probably the most reliable method.
  2. You could use the B-Rep functions to create a Prism or a Revolve. You would construct a Face that represents the profile to sweep, then pass it to one of the two functions. The B-Rep APIs may be a bit harder to use. I would probably recommend the first option unless the profiles are very complicated. But if they are planar with linear edges, then it should be straightforward. If the profiles they want to extrude have curved edges, and the want to revolve it, the it’s a bit harder. The B-Rep API might be a better option.

 

Hope this helps.

 



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

New Member
gfarmer1
Posts: 1
Registered: ‎06-03-2012
Message 3 of 4 (49 Views)

Re: Sweep Geometry with NWCreate API

07-31-2014 11:40 AM in reply to: xiaodong.liang

I saw elsewhere in the Autodesk forums (http://forums.autodesk.com/t5/Navisworks-General-Discussion/nwcreate-and-BRep-objects/td-p/2706251) that the B-Rep modeling functionality is not available with the stand-alone version of NWCreate.  This post if from 2009, though.  Is this still the case?

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

Re: Sweep Geometry with NWCreate API

09-28-2014 09:47 PM in reply to: gfarmer1
Hi,

yes, the current version has still no API for B-Rep. Sorry if this a bad news for you.


Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

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