Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reference to bRepBody Create from an Extrusion

3 REPLIES 3
Reply
Message 1 of 4
codefoster
251 Views, 3 Replies

Reference to bRepBody Create from an Extrusion

If I (via the API) create a sketch and then extrude it, a bRepBody is created. How do I get a reference to that body without having to use some sort of logic to select it. I want the body that resulted from the extrusion.

3 REPLIES 3
Message 2 of 4
liujac
in reply to: codefoster

Hi,

 

You may add attributes to the BRepBody and find the BRepBody by attributes. Please read: http://fusion360.autodesk.com/learning/learning.html?guid=GUID-BAF017FE-10B8-4612-BDE2-0EF5D4C6F800.

 

Thanks,

Jack

 

 

Message 3 of 4
ekinsb
in reply to: codefoster

The ExtrudeFeature object supports the bodies property which returns the body(s) that were created or modified by the feature.  If you specified that a new body should be created by the feature, then this will return the new single new body.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 4 of 4
codefoster
in reply to: ekinsb

Great. I think this will be my solution. Thanks, Brian.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report