TAGGED: Discovery AIM, scripting
-
-
July 16, 2019 at 6:46 am
sjyu
SubscriberHi, I want to use command to operate the body in AIM(such as assign material for "BODY 2"). and what I have is the selection set of surface(such as "selectionSet2").
So how can I get the body name by this surface selection set or some surface?
Thanks!
-
July 16, 2019 at 9:10 am
Naresh Patre
Ansys EmployeeHello Frank
I will have to check it.
-
July 17, 2019 at 7:27 am
Naresh Patre
Ansys EmployeeHello Frank
Please refer below code:
Â
model = Study.GetModel(Name="Model 1", Container="Study")
allss=Study.GetAllSelectionSets()Â # access all selection sets
loc = allss[0].Location  # access face of1st selection set ("Selection Set 1")
print loc
parentBody = Study.GetEntityBodies(TopologyString=loc[0], Model = model)Â # access parent body of face
print parentBody
-
July 17, 2019 at 8:28 am
sjyu
SubscriberNaresh Patre thank you very much!
it is workable.
How can I find this function by myself(like function: GetEntityBodies)? Is there some API reference for AIM?
Thanks!
-
-
July 19, 2019 at 9:49 am
Naresh Patre
Ansys EmployeeHello Frank
Several functions of "Study" object are described in Help document under Customization Suite 2019 R2 - ANSYS AIM and Workbench Scripting Guide - Data Containers - Study. However, functions like GetEntityBodies are not mentioned. But you get get a list of all functions under Study object by executing dir(Study) command.
-
July 19, 2019 at 11:20 am
sjyu
SubscriberNaresh Patre thank you very much!
-
-
- The topic ‘How to get the body name by surface name in Discovery AIM by python’ is closed to new replies.
- Project lines/edges into a face with the direction normal to the face
- Script for subtracting models
- No preview in explorer with scdox file
- Multiple Instances of SpaceClaim taking multiple licenses
- Issues after installing new service pack 2024R1 (sp5)
- Spaceclaim file reference error
- Add-in Error Excel
- Problems with loading my Discovery Mesh into Fluent
- Missing SubDivWrapper.dll
- Fileformats
-
4077
-
1487
-
1308
-
1156
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.