We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation General Mechanical how to do booliean operation in space claim Reply To: how to do booliean operation in space claim

Shyam Prasad V Atri
Subscriber

look i figured a way to some how make it work on the GUI. Now i want to transilate it into a script of python and i am able to do so one or two bodies i am not able to repeat that

# Python Script, API Version = V20
 
# Intersect Bodies
targets = Body1
tools = Body2
options = MakeSolidsOptions()
result = Combine.Intersect(targets, tools, options, Info1)
# EndBlock
 
# Intersect Bodies
targets = Body1
tools = Body3
options = MakeSolidsOptions()
result = Combine.Intersect(targets, tools, options, Info2)
# EndBlock
 
when i do tools=Body5 and do the process it does not work..when i look at the tree
There is nothing called as body5 everything has a name called as component.. please tell me how to proceed is there a way i can list out all the bodies? 

Â