PDA

View Full Version : Description of a macro for FAQ



Alan Cullen
29th Nov 2007, 10:49 am
Just a quicky, thanks anyone. I need a short description of what a macro is (for assigning commands to toolbar buttons).

Thanks.

Tiger
29th Nov 2007, 10:50 am
You lazy ******!!! :glare:

Alan Cullen
29th Nov 2007, 11:41 am
Nevermind, I found this, unless anyone wants to improve on it: :P


A macro is anything more than a single command. For example, in AutoCAD, to zoom into a windowed area with the ZOOM command, the command is followed by the W option. When this is assigned to a menu item or a toolbar button, "zoom w" is called a macro.

A macro can consist of just a command and an option, as shown above, or consist of many commands, their options, and other programming code (AutoCAD macros can include Diesel expressions and AutoLISP functions).


I thought I'd better do some research of my own, seeing Tiger got stuck into me. :lol: :lol:

SLW210
29th Nov 2007, 04:28 pm
You could add some code examples. :thumbsup:

Tiger
29th Nov 2007, 04:30 pm
You got some examples in store AGM? I have never used macros myself and Alan's gone to bed so I'm puttering with it right now...:glare:

lpseifert
29th Nov 2007, 04:32 pm
You might want to mention that, essentially, a macro is just a series of keystrokes.

SLW210
29th Nov 2007, 04:34 pm
You got some examples in store AGM? I have never used macros myself and Alan's gone to bed so I'm puttering with it right now...:glare:

Just copy and paste some commands from your button macros. I will see if I can find some later with LISP and DIESEL expressions. I really need to get to work.

Tiger
29th Nov 2007, 04:37 pm
Just copy and paste some commands from your button macros. I will see if I can find some later with LISP and DIESEL expressions. I really need to get to work.

whaaa?? work?? oh damn mate, you gotta do stuff like that as well?? :Po:)