hmmm....I'm guessing you're changing the existing macro of ^C^C_qnew to something else? Then you should just be able to create another button with another macro....take a look at this, I'm working on it at the moment so don't pay too much attention to the spelling mistakes, and feel free too comment on it:
HOW DO I CREATE A TOOLBAR BUTTON
Open the Custom User Interface dialogue window by typing CUI on the command line, or go to Tools > Customise > Interface.
Click the New button under Command List (bottom left section of the dialogue box). Then highlight the new command called "Command1".
Fill out these sections under Properties (on the right side of the dialogue box):
General
Name - The name of the command.
Description - Description of the command that shows when the cursor hovers over the button.
Macro
Macro - The code required for the command to work. What is a macro?
Images
Small image – Select a button image from the table at the top right corner, or to use a customized image, refer to this FAQ: How do I create a custom icon?
Large image - Select a button image from the table at the top right corner, or to use a customized image, refer to this FAQ: How do I create a custom icon?
When done, click Apply and the new command can be accessed from the Command List at the bottom left corner of the dialouge box.
To be able to use the new button, it needs to be placed on a toolbar. To create a custom toolbar, refer to this FAQ: How do I create a custom toolbar
HOW DO I CREATE A CUSTOM ICON?
The images available in the CUI dialogue box are already in use in AutoCad, it is therefor recommended to use custom icons for customized commands.
Any image can be used as an icon, as long as it is (or has been rescaled to) a size of 16x16 pixles.
The image needs to be saved to the AutoCad default search path for icons: C:\Documents and Settings\Admin\Application Data\Autodesk\Autodesk Map 3D 2007\R17.0\enu\Support\Icons.
For more information about Default Search Paths, refer to this FAQ: Default Paths for Profile, Templates and Configuration Files
To create a icon from scratch, here are some methods:
Method 1:Open the Custom User Interface dialogue window by typing CUI on the command line, or go to Tools > Customise > Interface.
Click the New button under Command List (bottom left section of the dialogue box). Select a random button in the top right section of the window, click Edit to get up the Button Editor. Erase everything with the Clear button, draw your own image and “Save As”. Make sure it is saved as a .bmp and to the correct folder.
Method 2: If the Button Editor in AutoCAD is not enough, it is possible to create a button via a suitable Clip Art program such as Paint.Net. To get the image the right size, it is recommended to first use method 1 to create a blank button, and then edit that button to suit in the Clip Art program. Make sure it is saved as a .bmp and to the correct folder.
Method 3: It is also possible to use AutoCad to draw an icon.
Start with a rectangle, recommended size is 150x150 units, and use Hatch > Solid to fill the rectangle with a suitable background color. Import raster image if needed and/or text or other shapes. The command DRAWORDER may be required to send the rectangle and solid hatch to the BACK.
When done, either use Print Screen to copy the image into a suitable Clip Art program, or Export the drawing as a .bmp and open it in a suitable Clip Art program.
Resize the image to maximum 16x16 pixles and make sure that it is saved to the correct folder.




Reply With Quote


Bookmarks