How do I create a single, short, typed command for a linked group of commands? For example, I would like to type "ZD" for Zoom, enter, Dynamic; "UO" for Ucs, enter, Object; "ZW" for Zoom, enter, Window, etc. Thanks!
|
How do I create a single, short, typed command for a linked group of commands? For example, I would like to type "ZD" for Zoom, enter, Dynamic; "UO" for Ucs, enter, Object; "ZW" for Zoom, enter, Window, etc. Thanks!
The simplest way to make command+sub-command sequences available is through an autoloaded lisp file.
BTW, you don't need Zoom+Window - Window is the default Zoom option.
R.K. McSwain | CAD Panacea |
Ok, but if I want a macro for a toolbar or a ribbon? What have I done wrong here?
(command "_pline" "" "") (command "_pedit" "l" "s" "" "") (command "change" "l" "p" "lt" "tracks" "" "")
Well, actually ^that^ is lisp code, which is OK. But if you are putting this in a toolbar or ribbon, you *could* use a menu macro as an alternative.
As pointed out above, it is unclear what you want this to do though....
It looks like you want to draw a two point polyline, convert it to a splined pline, and change the linetype to tracks.
Since it doesn't make much sense to spline a 2 vertex pline, this macro will let you draw a 4 vertex pline.
Try this.
Code:^C^C._pline;\\\\;pedit;l;s;;change;l;;p;lt;tracks;;
R.K. McSwain | CAD Panacea |
This is more what I was expecting to use, but I must have missed a back slash on the end of the pline command, and when that didn't work, I went off on my tangent.. Thanks, guys! This gets me going in the direction I want..
So, why does spline react differently to the macro? Is it because with pline, you locate the first point before there are options, whereas with spline there are options OR the first point?