Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

python script problem in AIM

Status
Not open for further replies.

M_G

Mechanical
Joined
Jan 14, 2019
Messages
2
Location
HK
I am working on xml+python script development, ACT. Here is a problem need help.
I am doing development in AIM. when I assign a material to a body, the scrip record is like this:

>>>materialAssignment2 = study1.CreateEntity(
>>> Type="MaterialAssignment",
>>>Association=physicsDefinition1,
>>> Location=[[highlight #FCE94F]"BODY8"[/highlight]])
>>>material1 = study1.CreateEntity(
>>> Type="Material",
>>> Association=physicsDefinition1)
>>>material1.ImportEngineeringData(Name="Aluminum Alloy")
>>>materialAssignment2.Material = material1

the problem is i do not know "BODY8", but only know its part name "1.par"
HOW to get the "BODY8" of "1.par", through script? thank you very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top