Some scripting methods not available to the user?
Some scripting methods not available to the user?
(OP)
I'm trying to extract views of a large number of *.odbs.
I ran through a test case manually then checked the abaqus.rpy file to find that I needed the following objects & methods,
But when I try to use,
I get the following error,
AttributeError:'OdbDisplay' object has no attribute 'displayGroup'
So what gives here? Is it just that some methods are not made public?
I ran through a test case manually then checked the abaqus.rpy file to find that I needed the following objects & methods,
CODE --> Python
leaf = dgo.LeafFromElementSets(elementSets=('MODEL-1.EVERYTHINGELSE', ))
session.viewports['Viewport: 1'].odbDisplay.displayGroup.remove(leaf=leaf) But when I try to use,
CODE --> Python
session.viewports['Viewport: 1'].odbDisplay.displayGroup.remove(leaf=leaf)
I get the following error,
AttributeError:'OdbDisplay' object has no attribute 'displayGroup'
So what gives here? Is it just that some methods are not made public?





RE: Some scripting methods not available to the user?
RE: Some scripting methods not available to the user?
CODE --> Python
from abaqus import * from abaqusConstants import * from caeModules import * import os for gen in range(1, 43): odbName = 'TopLoad_Gen_' + str(gen) + '.odb' odb = session.openOdb(name=odbName) leaf = dgo.LeafFromElementSets(elementSets=('MODEL-1.EVERYTHINGELSE', )) session.viewports['Viewport: 1'].odbDisplay.displayGroup.remove(leaf=leaf) axiFile = 'TwoSpheres_Axi_' + str(gen) session.printToFile(fileName=axiFile, format=PNG, canvasObjects=(session.viewports['Viewport: 1'], )) session.viewports['Viewport: 1'].view.setValues(session.views['Left']) zyFile = 'TwoSpheres_yz_' + str(gen) session.printToFile(fileName=zyFile, format=PNG, canvasObjects=(session.viewports['Viewport: 1'], )) session.odbs[odb].close()RE: Some scripting methods not available to the user?
RE: Some scripting methods not available to the user?
RE: Some scripting methods not available to the user?
import displayGroupMdbToolset
import displayGroupOdbToolset
RE: Some scripting methods not available to the user?
CODE --> Python
..after opening the *.odb