26.3. Modules (Scripting) Wizard

This wizard creates functioning macro modules by generating the template files <ModuleName>.def and <ModuleName>.script (optional: <ModuleName>.mlab and <ModuleName>.py).

For the first dialog, see Section 26.2.1, “First C++ Module Wizard Dialog”.

In the second dialog, the module properties can be set and a local macro can be chosen as a starter for the macro module.

Figure 26.15. Project Wizard

Project Wizard

No internal network

If enabled, the macro module is a script-only module with no internal network.

Start with empty network

If enabled, the macro module has an empty network.

Copy existing network

If enabled, the macro module uses a copy of an exist network, which can be set in Network File Name.

No dynamic scripting

If enabled, the macro module just encapsulates a network and offers a field interface, but has no dynamic (Python) scripting.

Add Python file

Creates an empty file (<ModuleName>.py ), which is included in the module's definition file <ModuleName>.script. Used to define script commands embedded in the MDL script code to implement dynamic user interfaces.

Click Next for the next screen; if you want to add fields, see Section 26.4, “Module Field Interface”; otherwise, click Create to create the new macro module and show a final page with creation information.

After module creation, the module database has to be reloaded before the new module can be used in a network.