Deriving a new module class

To create your own module GUI, you begin by deriving a new class from the AFXModuleGui base class. Alternatively, if there is another module GUI class that provides most of the functionality that you want, you can begin by deriving from that class and then make modifications. For more information, see Customizing an existing module or toolset.

Inside the new class constructor body, you must call the base class constructor and pass self as the first argument. The moduleName is a string used by the GUI infrastructure to identify this module. displayTypes are the flag or flags that specify the type of object that is being displayed in this module. Possible values are AFXModuleGui.PART, AFXModuleGui.ASSEMBLY, AFXModuleGui.ODB, AFXModuleGui.XY_PLOT, and AFXModuleGui.SKETCH. If you specify AFXModuleGui.ASSEMBLY, your module must import the assembly kernel module because the assembly kernel module is required to initialize some assembly display options. For more information, see Kernel module initialization.