Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The Add-In I'm working on has a selection option in its dialog box:
selInput0 = inputs.addSelectionInput(
'select', 'Interior Edges or Solid Bodies',
'Select the edge interior to each corner, or a body to apply to all internal edges')
selInput0.addSelectionFilter('LinearEdges')
selInput0.addSelectionFilter('SolidBodies')
selInput0.setSelectionLimits(1,0)The selection is iterated through like this:
self.edges = []
bodies = []
for i in range(inputs['select'].selectionCount):
entity = inputs['select'].selection(i).entity
if entity.objectType == adsk.fusion.BRepBody.classType():
bodies.append(entity)
elif entity.objectType == adsk.fusion.BRepEdge.classType():
self.edges.append(entity)I'd like to get an occurrence of all the selected items so that I can use isIsolated to turn off all other bodies/components/etc in an assembly so that they don't affected by the cut operations that the script does. How do I create an Occurrence for the selection? Or even how can I just temporarily isolate it?
Thanks!
Solved! Go to Solution.