Select Rectangles to change their Lenths and Widths at once.

Select Rectangles to change their Lenths and Widths at once.

Anonymous
Not applicable
5,184 Views
20 Replies
Message 1 of 21

Select Rectangles to change their Lenths and Widths at once.

Anonymous
Not applicable

Hello,
I am sad because in the Properties Palette (Ctrl+1)
of the Rectangles there are no rows with Length and Width
of the selected Rectangle, so I can't change these important properties
so easy.
I can understand it, because there is not such Object Type as Rectangle in Autocad;
if you select a rectangle, in the Properties Palette you can see, that
it is simply a Polyline.
I want to write lisp
"Select Rectangles to change their Lenths and Widths at once to the values determined by keyboard or by picking two points: "
"Specify Width: "
"Specify Height: ".
You could determine Length and Width either by typing the value with keyboard
or by clicking on two points.
(so it is in the commands SCALE, LENGTHEN -> TOTAL, LENGTHEN -> DELTA;
The prompt is that you should specify the value with keyboard,
but you could pick two points do determine ScaleFactor/ NewLength.).
I want to write such lisp, but I am not so good at lisp writing to do so.
Please, help.
Is this possible, to write such lisp?

0 Likes
5,185 Views
20 Replies
Replies (20)
Message 21 of 21

Anonymous
Not applicable

Hello Marko,

 

It seems my problems with using your scripts were caused simply by missing "Express Tools" in my Autocad.

After adding "Express Tools", they seem to work just fine. I especially am happy about the added functionality in RECEDIT to size the sides of the rectangle by typing the desired length.

 

For adding "Express Tools" (if missing), see also this thread:

https://forums.autodesk.com/t5/autocad-mechanical-general/installing-express-tools/m-p/3790102

which is helpful when you do not have your Autocad DVD at hands.

 

Kind regards,

Christian

0 Likes