MACRO

MACRO

Anonymous
Not applicable
164 Views
2 Replies
Message 1 of 3

MACRO

Anonymous
Not applicable
I'm trying to write a simple macro to scale an object to a given scale factor; something like:
^C^C_scale;\;0.5;
I'm probably making syntax errors...
Thanks
Alessandro
0 Likes
165 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
wrote in message news:5081473@discussion.autodesk.com...

Hi, Alessandro
Try this
^C^C_scale;\\;\0.5
0 Likes
Message 3 of 3

Anonymous
Not applicable
You should only need one of the first pair of backslashes if you're scaling
a single item, for the user to select it. But you do need that other
backslash before the 0.5 (that's what was missing from the original post),
to give it a basepoint to scale it around.

If the object is something with a base point (a block insertion, a piece of
text, even a circle) and you want to scale it around that, and not have the
user select a base point, then you would need to get the information about
the object with (entget), and find the insertion point, usually (assoc 10).
If that's what you want, people can help you put the code together to do it.
--
Kent Cooper


"VD" <@> wrote...
wrote...

Hi, Alessandro
Try this
^C^C_scale;\\;\0.5
0 Likes