I made a toolbar button with the macros @, and tried also @ pause.
I need this in order to shorten the procedure for relative coordinate input, but, after pressing the button the last point is entered and i cannot continue entering values like in the manual input at the command like, like: @5,5
Even if i use the "@ pause " sequence it doesn't help.
How to wait for user input?
"pause" can be used within lisp, but not as a plain menu-macro line. There the "stop for userinput" has to be done by backslash \. E.g. this line starts a line and waits for the first point go be given by the user and draws then the line to 0,0:
But I'm not sure that you can first send a @ to the command-line and then wait for the "rest of the input", so that is to try
- alfred -
So you just want the user to forget about typing the @ symbol for a relative entry point? Look up DYNPICOORDS variable in HELP and set the user system to what it is you want to achieve in your macro. Then you don't have to worry about typing @ or # ever again.
I don't know what DYNPICOORDS does.
I drew a line: i entered, first, 0,0 and for the endpoint 5,5.
Then continued the line with @5,5.
The result was a straight line, combined of 2 lines, from 0,0 to 10,10.
I did this procedure, once with DYNPICOORDS 0 and once with DYNPICOORDS 1.
Did you look it up in HELP by chance? You should. When set to 0 you don't need to type @, when set to 1 you don't need to type #.
To use both relative and absolute in a macro, or at the commandline, you need to switch between the two settings before you type the next entry.
You can call most variables while in a command by placing an apostrophe in front of the name, like this:
So, the following macro does different things when typing, not the same one entry you tested:
Post your macro and provide instructions of what you are trying to do (absolute or relative entry) where.
According to my "sources" (AutoCAD Help), DYNPICOORDS "Controls whether pointer input uses relative or absolute format for coordinates." It wouldn't affect coordinates entered at the command prompt or in a script/macro.
I don't find any difference, neither in pointer input neither in command line input between the two settings of DYNPICOORDS .
About command line input: i set DYNPICOORDS=0 (relative), started a line at 0,0, typed 5,5 then, again, 5,5 and the line's end staid at 5,5, not at 10,10 as expected.
I entered @5,5 and the same result, so, at least concerning DYNPICOORDS=0 i see no effect.
I also used the mouse, and when the line's end was at 5,5 i clicked at 10,10 and the new line reached there.
The same happened with DYNPICOORDS=1, regarding pointer input.
I guess i don't understand what is pointer input.
I don't know the difference between UCS and WCS, so i cannot test it by entering #.
Anyway, in both settings of c, when i entered, for example, 5,5-it reached there.
Conclusion: i see no influation of DYNPICOORDS, am i wrong?
I think the setting may make a difference if your object is to make a toolbar button macro that prompts the user for input (of points) and the user will pick those points using the mouse pointer. If the user is going to enter the points at the command line, I don't think the setting will make any difference.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.