Kernel module initialization

In general, a GUI module is designed to provide an interface to a kernel module. After the GUI collects input from the user, it constructs a command string that is sent to the kernel for processing. For the command to be recognized on the kernel side, the appropriate kernel module must have been imported before the command was sent.

When a GUI module is loaded for the first time, a special method named getKernelInitializationCommand is executed. This method is empty in the base class implementation, and it is up to you to write a method that returns the proper command that will import the appropriate modules on the kernel side. The appropriate modules include any module for which your GUI module can issue commands. If more than one module is required, you can separate the statements by semi-colons or ā€œ\nā€ characters. To avoid name space conflicts with modules loaded by Abaqus, you should use the import moduleName style for importing modules and not the from moduleName import * style, as shown in the example in GUI module example.