Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Abaqus python script code to access active model/part in Abaqus/C 1

Status
Not open for further replies.

Wibbs13

Mechanical
Jan 31, 2014
4
0
0
US
I am attempting to make a code which will automatically assign a part object variable, say myPart, to the part that is active in my Abauqs/CAE GUI.


Ex 1) ** Hard Coding
myPart= mdb.models['Model-1'].parts['Part-1']

Ex 2) ** User Inputs
modName = getinput ('Enter Model Name')
partPame = getinput ('Enter Part Name')
myPart = mdb.models[modName].parts[partName ]

Rather than using methods as defined above, I am search for something like
myPart = activePartInGuiDisplay (or whatever is needed to accomplish such an action)

Any help is appreciated.

Much Thanks,

-Wibbs13
 
Replies continue below

Recommended for you

Status
Not open for further replies.
Back
Top