Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Goals
When you complete this workshop, you will be able to transform a replay file into a
kernel script and build a GUI dialog using RSG to run the kernel script. It is
recommended you follow the RSG Dialog Builder tour before starting this workshop.
Tasks
Abaqus/CAE records the commands from the user interface in the replay file. Thus, this
file is a good starting point in creating a kernel script.
16. Add a group box (click ) with the title Parameters and press [Enter].
17. Add a text field (click ). The label text should be Name: and the keyword
value partName.
18. Add another text field. The label text should be Width (w):, the type should be
Float and the keyword width.
19. Add another text field. The label text should be Height (h):, the type should be
Float and the keyword height.
20. Add another text field. The label text should be Radius (r):, the type should be
Float and the keyword radius. Your dialog box should look similar to the
following:
21. Add a second group box (click ) with the title Diagram and press [Enter].
In this group box, add an icon (click ) and select the file createPlate.png
(click to select the file). If necessary, use the arrows ( ) to
position the Diagram group box above the Parameters group box.
22. Your dialog box should look similar to the following:
24. Switch to the Kernel tabbed page, click Open and select
createPlateModule.py.
25. For the function, select createPlateFunction from the drop-down list.
26. Change to the GUI tabbed page and click to save your plug-in as an RSG
plug-in in the current directory. Enter createPlate as the directory name and
Create Plate… as the menu button name. Note where the plug-in files are saved.
They should be under your current working directory, in a folder named
abaqus_plugins. This will make the plug-in accessible only in Abaqus/CAE
sessions started from this directory. For more generally used plug-ins they should
be stored in the home directory. Furthermore, note that while you can save them
as either an RSG plug-in or a standard plug-in, you can only edit RSG plug-ins
with the RSG dialog builder. You must use a text editor to edit a standard plug-
ins. However, saving an RSG dialog box as a standard plug-in allows an
experienced programmer to extend the dialog's functionality by selecting from the
complete set of Abaqus GUI Toolkit commands.
27. Restart Abaqus/CAE and test the plug-in (Plug-ins→Create Plate). If you want
to edit your plug-in, go to the RSG Builder and open createPlateDB.py.