Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

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? 

 

[bingo_chatbox]