Reference to bRepBody Create from an Extrusion

Reference to bRepBody Create from an Extrusion

codefoster
Advocate Advocate
490 Views
3 Replies
Message 1 of 4

Reference to bRepBody Create from an Extrusion

codefoster
Advocate
Advocate

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.

0 Likes
491 Views
3 Replies
Replies (3)
Message 2 of 4

liujac
Alumni
Alumni

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

 

 

0 Likes
Message 3 of 4

ekinsb
Alumni
Alumni

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
0 Likes
Message 4 of 4

codefoster
Advocate
Advocate

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

0 Likes