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!

How to get active / current model name with python in abaqus 1

Status
Not open for further replies.

n3l3

Mechanical
Dec 28, 2010
69
0
0
ES
Hi

I have been a while searching for that but didnt get to any conclusion,
i just wanna know how to get the active model name.

something like
vps = session.viewports.values()[0]
x = vps.displayedObject.name <<<< Model name instead of the object!
print x

Many thanks!
n3l3[bigsmile]
 
Replies continue below

Recommended for you

Paste this in the /CAE command line interpreter and see the output:

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


You should find 'modelName' within the suboptions.
 
Status
Not open for further replies.
Back
Top