Accept Coordinate Entry in Button Menus (Concept)

AutoCAD

 
Accept Coordinate Entry in Button Menus
Concept Procedure Quick Reference
 
 
 

When you click one of the buttons on a multibutton pointing device, the program reads not only the button number but also the coordinate of the crosshairs at the time you click. By carefully constructing macros, you can choose to either ignore the coordinate or use it with the command activated by the button.

As described in Pause for User Input in Macros, you can include a backslash (\) in a command to pause for user input. For the Mouse and Digitize Buttons menus, the coordinate of the crosshairs is supplied as user input when the button is clicked. This occurs only for the first backslash in the command; if the item contains no backslashes, the crosshairs coordinate is not used. Consider the following commands:

line
line \

The first button starts the LINE command and displays the Specify First Point prompt in the normal fashion. The second button also starts the LINE command, but the program uses the current crosshairs location at the Specify First Point prompt and displays the Specify Next Point prompt.