Registering the property generation script

You provide the file name of the property generation script on the Properties tabbed page of the Edit Fasteners dialog box. The script is executed only when you click OK in the Edit Fasteners dialog box, not when Abaqus/CAE creates the input file. The property generation script is run only in the main model on the assembled fasteners, not in the template model.

To make your property generation scripts available from the Edit Fasteners dialog box, you must register each script similar to the way in which you register an Abaqus/CAE plug-in. The script must be registered before you startAbaqus/CAE. Any scripts that have been registered will be available from a pull-down list in the Edit Fasteners dialog box.

To register a property generation script, you must write a small registration script containing the following lines:

from abaqusGui import *
toolset = getAFXApp().getAFXMainWindow().getPluginToolset()
toolset.registerAsmbdFastenerScript('filename')

This registration script file must be named registerAsmbFstnrScripts_plugin.py. In the code replace filename with the name of your property generation script. The registration script informs Abaqus/CAE that you have a property generation script named filename.py that you wish to use with assembled fasteners.

Your property generation scripts and the registration script must be placed in your abaqus_plugins directory; see Where are plug-in files stored? , for the possible locations of the abaqus_plugins directory. For more details about registration scripts, see What are the kernel and GUI registration commands? .