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 TugboatEng 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
Joined
Feb 17, 2016
Messages
7
Location
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