Setting Up the Directory Structure

In the directory in which you store your extensions, the XML extension definition file and the folder with the extension's IronPython script and supporting files are stored at the same level. Both the XML file and the folder must have the same name as the extension.

The following figure shows the top-level directory structure for the extension ExtSample1. You can see that the extension's XML file is named ExtSample1.xml and its folder is named ExtSample1.

 

The following figure shows the contents of the folder ExtSample1.

The following figure shows the contents of the folder images. It contains the image file hand.bmp, which is used as the icon for the custom button exposed on the Mechanical toolbar.

 


Release 18.2 - © ANSYS, Inc. All rights reserved.