Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

writing a macro

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
136 Views, 3 Replies

writing a macro

I would like to know how to write a macro in the ciu.

I want to scale some text then rotate it. I can do this in lisp but I would like to see how it could be done as a macro. This is the what I want to do:
1 select text
2 scale the text .5
3 rotate the text 45 degrees

Thanks to any one who can show me the way.
R. Bolt
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Pretty much just as you would type it, plus the use of (among other less
commonly useful things) ^C for cancel, \ for user input, and ; for enter but
spaces work for that, too, in most circumstances. Every character and space
counts, unlike the Lisp way, and you have to get used to what needs to be
followed by a space/enter (such as the @ and the P below) and what doesn't
(such as the \ and the ;), a little. If you're willing to have it scaled
and rotated about the selection point, you can do something like:

[Shrink&Rot45]^C^CScale \;@ 0.5 Rotate P ;@45

If you want it scaled and rotated around its insertion point, you probably
have to incorporate some Lisp (which you can do), getting that from its
association list as you would in a Lisp routine. If you don't want to
string it all out in one line, use a + at the end of a line to continue the
macro to another.

If you start it with a * before the ^C^C, it will automatically repeat as
long as you want to keep going.

Help is pretty good about all this, I think.
--
Kent Cooper


wrote...
I would like to know how to write a macro in the ciu.

I want to scale some text then rotate it. I can do this in lisp but I would
like to see how it could be done as a macro. This is the what I want to do:
1 select text
2 scale the text .5
3 rotate the text 45 degrees

Thanks to any one who can show me the way.
R. Bolt
Message 3 of 4
Anonymous
in reply to: Anonymous

Good description. As an alternative to SCALE, or a LISP routine, you could
use the SCALETEXT command. This will scale all selected text about their
respective insertion points.

--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
http://partnerproducts.autodesk.com/popups/company.asp?rdid=2139
-----------------------------------------------------------------------

"Kent Cooper" wrote in message
news:5512710@discussion.autodesk.com...
If you want it scaled and rotated around its insertion point, you probably
have to incorporate some Lisp (which you can do), getting that from its
association list as you would in a Lisp routine.
Message 4 of 4
Anonymous
in reply to: Anonymous

Thanks, You've been a great help

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost