I see, that's great of you. How did you do it? did you parametrize it? I think there is no use of using the GUI TOOLKIT because whatever the things we do in the GUI PLUG IN box, it is automatically generating the python scripts(DB file, plugin file) of it in the respective folder. I have written one more script, say, for taking the photos automatically, I am inputting the following script in the kernel and what should i opt in GUI? please go through my script kindly, the script is running fine though. do i need to parametrize it? if yes how? sorry
There in indentation after defining the function, it is not taking the space here
from abaqus import *
from abaqusConstants import *
import odbAccess
import visualization
session.viewerOptions
from driverUtils import executeOnCaeStartup
def photos(photo):
# find current viewport vps (viewport set)
vps = session.viewports[session.currentViewportName]
# assign odb file from current viewport
odbFile = vps.displayedObject
# get file path and name
odbfilePath = odbFile.path
# split into separately name and path
odbFileName = os.path.split(odbfilePath)[1]
#odbPath = os.path.split(odbfilePath)[0]
odb = odbFile
myViewport=session.Viewport(name='Saving an image', origin=(10, 10), width=200, height=100)
myOdb = visualization.openOdb(path=odbfilePath )
myViewport.setValues(displayedObject=myOdb)
myViewport.partDisplay.geometryOptions.setValues(referenceRepresentation=ON)
myViewport.odbDisplay.display.setValues(plotState=(CONTOURS_ON_DEF, ))
myViewport.odbDisplay.commonOptions.setValues(visibleEdges=FEATURE, deformationScaling=UNIFORM,
uniformScaleFactor=0.8)
session.printOptions.setValues(rendition=COLOR,vpDecorations=OFF, vpBackground=OFF)
session.printToFile(fileName='newImage', format=TIFF, canvasObjects=(myViewport, ))