cadalyst
AutoCAD

Add Your Plugin to an AutoCAD Menu

25 Sep, 2013 By: Andrew G. Roe

Load and run a plugin the quick way — without typing.


Create a Custom Command

Next, we’ll create a custom command to run the plugin.

1. In AutoCAD, click the CUI icon in the Manage tab of the ribbon to load the Customize User Interface dialog box. (Alternatively, you can load this dialog box by typing CUI at the Command line and pressing Enter.)


Click image to enlarge.

2. In the Command List portion of the CUI dialog box, click the Create a new command icon.

3. In the Properties portion of the CUI dialog box, type MyCircleCommand in the Name box.

4. In the Macro box, type the following:

     ^C^CCreateMyCircle;Filedia 1;

The ^C^C is already present in the Macro box, indicating the beginning of the macro, and is the equivalent of pressing the Escape key twice to clear any active commands. The semicolon (;) is the equivalent of pressing Enter. The last portion of the custom command sets the Filedia variable back to 1.

5. In the Customizations in All Files portion of the CUI dialog box, expand the Menus item to show the various menus, including Modify.

6. In the Command List portion of the CUI dialog box, click the drop-down list and select Custom Commands. The MyCircleCommand should be listed.

7. Drag the MyCircleCommand to the Modify menu above.



8. Click OK to close the CUI dialog box.

1 2 3 


About the Author: Andrew G. Roe

Andrew G. Roe

Add comment

More News and Resources from Cadalyst Partners

For Mold Designers! Cadalyst has an area of our site focused on technologies and resources specific to the mold design professional. Sponsored by Siemens NX.  Visit the Equipped Mold Designer here!


For Architects! Cadalyst has an area of our site focused on technologies and resources specific to the building design professional. Sponsored by HP.  Visit the Equipped Architect here!