ninjako4
Structural
- Feb 17, 2016
- 7
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.
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.
