Change the dimension of multiple rectangles

Change the dimension of multiple rectangles

Emmanuel_Kilama
Contributor Contributor
408 Views
3 Replies
Message 1 of 4

Change the dimension of multiple rectangles

Emmanuel_Kilama
Contributor
Contributor

I have multiple rectangles in one drawing. Is there any lisp file to change all their dimensions to a specific e.g. to 1.5*2 by selecting all of them and running the command?

0 Likes
Accepted solutions (1)
409 Views
3 Replies
Replies (3)
Message 2 of 4

Kent1Cooper
Consultant
Consultant

What are they?  Polylines?  Blocks?  Sets of 4 Lines?  Something else?  Are they always orthogonally oriented, or could they be at any angle(s)?  If they're Polylines, are they "closed" as AutoCAD defines the word?  And could there be other closed 4-vertex line-segment-only Polylines that are not rectangular and should not be processed?  Should there be a test for whether or not each is rectangular?  How could a routine decide which direction in them should be changed to which specified dimension?  Probably other questions will arise -- a representative sample of the possible range of conditions would be useful.

Kent Cooper, AIA
0 Likes
Message 3 of 4

Emmanuel_Kilama
Contributor
Contributor

They are closed polylines, initially drawn using the rectangle command.

0 Likes
Message 4 of 4

paullimapa
Mentor
Mentor
Accepted solution

This post which @Kent1Cooper was also involved in back in 2016 may provide you with the answer you need 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes