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: 

How do you extract and remove a BRepLump from a BRepBody with more than one lump?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
chetmurphy
172 Views, 2 Replies

How do you extract and remove a BRepLump from a BRepBody with more than one lump?

When using the TemporaryBRepManager, it is possible to create BRepBodies with more than two lumps. While multiple lumps may not matter to fusion, it can matter to end users that are expecting multiple bodies. And it could also make machining more difficult in CAM setups.

 

What are the options? Nothing so far that I have seen in the API suggests a solution except perhaps BRepBodyDefinition in an indirect manner. I could use BRepBodyDefinition to  create a cutting body that matches a BRepLump and then use a boolean operation to remove the lump, but that sounds tedious when working with unknown bodies.

 

Any ideas? The ideal solution would be a solution like a body.remove(lump), lump.remove(), or perhaps better TemporaryBRepManager::copy(BRepLump).

2 REPLIES 2
Message 2 of 3
JesusFreke
in reply to: chetmurphy

You can iterate over the lumps, and use TemporaryBRepManager.copy(lump) to make a distinct BRepBody from a particular lump.

 

The docs for TemporaryBRepManager.copy don't specifically mention lumps, but I just tried it and confirmed that it works. I think it works for pretty much any BRep entity.

Message 3 of 3
chetmurphy
in reply to: chetmurphy

Thanks. That works.

 

It would be good if the docs could be updated to provide a correct list of BReps that can be copied by the TemporaryBRepManager.copy api.

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