Steps in a procedure are posted using the following methods:
The following types of steps are available for use in procedures:
The following example shows how to write a simple, one-step procedure mode that uses a dialog box step. Subsequent examples will extend this example to show how to use more steps. from abaqusGui import *
from plateDB import PlateDB
class PlateProcedure(AFXProcedure):
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def __init__(self, owner):
AFXProcedure.__init__(self, owner)
self.cmd = AFXGuiCommand(self, 'Plate', 'examples')
self.nameKw = AFXStringKeyword(self.cmd, 'name', True)
self.widthKw = AFXFloatKeyword(self.cmd, 'width', True)
self.heightKw = AFXFloatKeyword(self.cmd, 'height', True)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def getFirstStep(self):
self.cmd.setKeywordValuesToDefaults()
db = PlateDB(self)
return AFXDialogStep(self, db) | |||||||