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 IronPython script sample1.py contains the code for fulfilling the behavior of the example extension.
The folder images contains the image file to display as the
icon in the user interface of the extension.
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.