
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm developing an add-in that at a certain point cuts trough multiple bodies, by extruding a profile. I need to know which bodies are cut, for further actions.
This is the code I'm using for extruding:
sketch = occ.component.sketches.itemByName('Sparing') prof = sketch.profiles.item(1) distance = adsk.core.ValueInput.createByString("1000 mm") extrude = occ.component.features.extrudeFeatures.addSimple(prof, distance, adsk.fusion.FeatureOperations.CutFeatureOperation)
I have a hard time to find the participating bodies of the extrudeFeatures command. I found the "bodies" property, but that property only recognizes the body of the parentComponent, while there are multiple other bodies being cut (in other components). The "participantBodies" property is also not what I'm looking for. That property serves as an input, rather than an output.
Actually, I'm looking for the bodies being shown in the "Objects to Cut" section in the edit feature dialogue (of the just created extrude features):
Could anyone please help me out?
Thanks in advance!
Solved! Go to Solution.