2.3 Running the prototype application

A custom application called the prototype application is available from the ABAQUS Process Automation Portal. The prototype application allows you to experiment with the contents of your dialog box until you produce a design that is satisfactory. You can start the prototype application, make changes to the code that controls the contents of the dialog box, and instantly see those changes reflected in the application.

You can access the portal from the ABAQUS/CAE Plug-insABAQUSProcess Automation Portal menu. The portal provides examples of plug-ins and customized applications as well as access to a community of users that fosters the advance of the ABAQUS Scripting Interface and the ABAQUS GUI Toolkit. The prototype application is available from the GUI Examples section of the Downloads area.

Unzip the files and go to the directory containing the files that you downloaded. To use the prototype application, open the file testDB.py in a text editor. From the system prompt, enter the following:

abaqus cae -custom prototypeApp -noStartup
The -custom parameter indicates that you are executing an application that is a customized version of ABAQUS/CAE. The -noStartup parameter indicates that you want to start ABAQUS/CAE without displaying the startup screen. For more information, see Execution procedure for ABAQUS/CAE, Section 3.2.3 of the ABAQUS Analysis User's Manual.

The application creates two icons in the toolbox, as shown in Figure 2–2.

Figure 2–2 The prototype application.

The icon reloads the form code (testForm.py); the icon reloads the dialog box code (testDB.py). If you make changes to the form code, click on the icon to reload that file. If you make changes to the dialog box code, click on the icon to reload that file. You do not need to exit and restart ABAQUS/CAE to see your changes in the form or dialog box.

For example, try the following:

When you click OK in the dialog box, the kernel command issued by the dialog box is written to the message area, rather than being executed by ABAQUS/CAE. This allows you to debug the command before you try to execute it in the kernel.

After you have debugged your form and dialog box code, you can modify the form to issue the command to the kernel by following the example in Form example, Section 7.3.1. You can connect the form to your GUI, instead of to the icon, by following the example shown in GUI module example, Section 8.2.