Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How to get the Active Odb in Abaqus using python when "an XY curve" is displayed in the viewport?

Status
Not open for further replies.

ninjako4

Structural
Feb 17, 2016
7
US
Hello,
How to get the Active Odb in Abaqus using python?

I know I can use the method "session.viewports.values()[0].displayedObject.name" to get the name of the active Odb.
The problem is that this only works if an Odb is displayed in the viewport.
When a curve is displayed in the viewport, the method above gives the name of the curve instead.

Though, there should be an active Odb because it is underlined in the model tree . (Check attachment). And when I try to generate a new curve, it is generated for the active Odb in the model tree.


abaqus_whhavk.png
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top