-1
odbname = data.jobname + '.odb'
        mySession  = session.openOdb(name = odbname)
        myViewport = session.viewports["Viewport: 1"]
        #plot stress
        myViewport.setValues(displayedObject=mySession)
        myViewport.odbDisplay.display.setValues(plotState=(CONTOURS_ON_DEF,))
        myViewport.view.fitView()
        session.viewports['Viewport: 1'].viewportAnnotationOptions.setValues(
        legendFont='-*-verdana-medium-r-normal-*-*-120-*-*-p-*-*-*')

このプログラムを実行すると、ビュー iso が表示されます

これは私のインポートモジュールです

from abaqus import *                # from the main library
from caeModules import *            # import the modules
from abaqusConstants import *       # constants we need
from math import fabs
from abaqus import backwardCompatibility
backwardCompatibility.setValues(reportDeprecated=False)
import section
import regionToolset
import displayGroupMdbToolset as dgm
import part
import material
import assembly
import step
import interaction
import load
import mesh
import optimization
import job
import sketch
import visualization
import xyPlot
import displayGroupOdbToolset as dgo
import connectorBehavior
4

1 に答える 1