Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Getting Part Names from on open Abaqus Model

Status
Not open for further replies.

mj345

Mechanical
Joined
Jan 9, 2019
Messages
82
Location
US
Hello All,

I am learning Python script in Abaqus. I want to get all the part names from an active/open Abaqus model.

Can anybody add the script needed for it. I would appreciate all your help.

Parts.py

vps = session.viewports.values()[0]
y = vps.displayedObject.name
print y

its giving only one part name,but want all the parts names.

Kind regards,
mj345
 
The part container is a dictionary. You can see that when you use the print command on it. So just request the keys of that object and you will get a list of all part names.
 
Thank you so much. I appreciate all your time and help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top