How to change 15 rectangular Dimension (30x60 cm) to (30 x80 cm) in one step?

How to change 15 rectangular Dimension (30x60 cm) to (30 x80 cm) in one step?

Anonymous
Not applicable
1,147 Views
7 Replies
Message 1 of 8

How to change 15 rectangular Dimension (30x60 cm) to (30 x80 cm) in one step?

Anonymous
Not applicable

How to  change  15 rectangular (30x60 cm) to (30 x80 cm) in one step

0 Likes
Accepted solutions (1)
1,148 Views
7 Replies
Replies (7)
Message 2 of 8

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> How to  change  15 rectangular (30x60 cm) 

If your rectangles are polylines you can only go rectangle by rectangle.

If you have defined them as block then select them and change the block scaling (would be one of the advantages to use blocks instead of copying polylines 😉 )

If they are any other object type, then please let us know that.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 8

Anonymous
Not applicable

drfgdfgdgdthryer.JPG

 

thanks for your answer ,  what do you mean by rectangle by rectangle?  ,, all rec are polyline but i can make them block ,,, i need most speed way 

Message 4 of 8

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> what do you mean by rectangular by rectangular?

I meant you have to modify every single polyline.

 

>> i can make them block  i need most speed way 

You should have done that before placing the objects. So when you know that you will have to place multiple objects with the same size ... and if that size may change later, then you first create a block and then copy the block to the different positions.

Now, as you already have place the polyline, you either change the polylines or replace them (manually) with a block you have to create first.

One tip: create a block with a square with 1 units side length. Then insert that block one time, give that block a scale factor according to the rectangle dimensions and then copy that block to the existing positions. Next time when you need to change the size you just have to select them (QSELECT command) and then enter the new sizes as scale-factors in the property window).

As always when creating blocks: take care for your insertion point! Because modifying the block scale factors will scale it based on that point.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 5 of 8

Vinayv4v
Advisor
Advisor

Hi,

 

In one step I seem to be out of ideas.

 

If the rectangles were in a layer I would have used layerisolate and used stretch command to edit the identical ones.

Cheers,

Vinay Vijayakumaran

0 Likes
Message 6 of 8

Kent1Cooper
Consultant
Consultant

I can imagine a way to do this collectively.  It would involve:  Step through a selection of Polylines [which could be filtered for being closed and having 4 vertices], and for each one, check for edge lengths.  For those that match the target starting size, determine whether the first segment is a long side or a short side.  [If you know that all selected Polylines will always be the right starting size, and that they will all have been drawn starting with, say, a long edge, checking for those things can be bypassed.]  New vertex locations can be calculated from the originals and the angles of the edges, and substituted in [probably most easily by way of the VLA 'Coordinates Property].

 

A question:  Would you want the edges that are increased from 60 to 80 to be centered on their original lengths [i.e. equivalent to Stretching both ends of the rectangle away from the center], or should one end stay where it is [equivalent to Stretching one end the entire 20 units]?

 

One could even make a generic routine, that would, for example, ask the User for an amount of change [positive or negative], and whether to change the short or long dimension of rectangles, and apply that to a selection of Polylines, without the need for them to be of a particular starting or ending size.  So in this case, the User would say they want the long direction increased by 20 units.

Kent Cooper, AIA
0 Likes
Message 7 of 8

Anonymous
Not applicable

Rule of thumb:

If you going to use an object (or set of objects) more than twice, always make it a block.

 

This would be a great question for the Customization Forum.

 

While you're waiting investigate express tool MSTRETCH, it allows multiple crossing windows on multiple objects and stretches each the same amount.  In your case without customization, that would be the fastest solution.  Because the rectangle have different orientations, you'll need to do it twice, once horizontally and once vertically.

 

The BETTER solution might be create the block and use the existing rectangles as guides for the insertion of the new block location and orientation, then eliminate the plines.  It'll take a little longer than MSTRETCH, but then you'll have the blocks ready for the next change.

0 Likes
Message 8 of 8

Kent1Cooper
Consultant
Consultant
Accepted solution

@Kent1Cooper wrote:

.... 

One could even make a generic routine, that would, for example, ask the User for an amount of change [positive or negative], and whether to change the short or long dimension of rectangles, and apply that to a selection of Polylines, without the need for them to be of a particular starting or ending size.  So in this case, the User would say they want the long direction increased by 20 units.


For instance, try the attached RectangleSizeAdjust.lsp, with its RSA command.

Kent Cooper, AIA