Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator 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
Jan 9, 2019
81
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
 
Replies continue below

Recommended for you

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