Rectangular Array keep total spacing

Rectangular Array keep total spacing

fcorte
Enthusiast Enthusiast
1,993 Views
9 Replies
Message 1 of 10

Rectangular Array keep total spacing

fcorte
Enthusiast
Enthusiast

Hello,

Please indicate how to keep (lock) the total column spacing or total row spacing when changing col or row count? 

 

0 Likes
1,994 Views
9 Replies
Replies (9)
Message 2 of 10

imadHabash
Mentor
Mentor

Hi,

While your ribbon is active ( RIBBON command ) and you select your arrayed object you will notice a blue Array on the Ribbon Contextual Tab State . There and as you can see below you can control all of your settings. 

 

Capture.PNG

Imad Habash

EESignature

0 Likes
Message 3 of 10

GrantsPirate
Mentor
Mentor

I use the grips, add a row, etc, and then grip edit back to original router boundary with Base point suboption.

 

I attached a screencast but so far it is not showing.


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

0 Likes
Message 4 of 10

GrantsPirate
Mentor
Mentor

Posting again with the screencast.


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

0 Likes
Message 5 of 10

Kent1Cooper
Consultant
Consultant

@fcorte wrote:

....

Please indicate how to keep (lock) the total column spacing or total row spacing when changing col or row count?


Properties controls for such things affect each other in a way that doesn't seem like what you're after, since the total spacing isn't available directly, but is only a result of the spacing and the number of columns/rows.  Entity data for an associative Array object [which is actually of the "INSERT" class] doesn't contain the relevant information, at the top level anyway -- it's probably there if you dig down into nested entity names somehow.

 

But the (getpropertyvalue) / (setpropertyvalue) functions know about them.  Here are the relevant properties from a (dumpallproperties) function [just those for columns and rows, omitting levels for now]:

 

ItemSpacing (type: double) (LocalName: Column spacing) = 15.000000
ItemSpan (type: double) (LocalName: Total column distance) = 165.000000
Items (type: int) (LocalName: Columns) = 12
RowSpacingWithExpression (type: double) (LocalName: Row spacing) = 6.000000
RowSpan (type: double) (LocalName: Total row distance) = 30.000000
RowsWithExpression (type: int) (LocalName: Rows) = 6

 

[What the "...WithExpression" parts are about for Rows, I can't imagine....]

 

I find that if I use (setpropertyvalue) to give it a new number of columns [or rows], the spacing stays the same and the overall span changes.  If I give it a new span, the number stays the same, and the spacing changes.  It appears that to keep the span and change the number, you need to first save the current span, then give it the new number, and then re-impose the original span.  The spacing adjusts accordingly.  So to change the above example to 10 columns instead of 12, keeping the 165-unit overall span [with 'ent' being the Array's entity name]:

 

(setq span (getpropertyvalue ent "itemspan")); save the 165.0 overall
(setpropertyvalue ent "items" 10); impose the new number of columns [span reduces]
(setpropertyvalue ent "itemspan" span); reimpose the 165.0 on the new quantity of columns [spacing increases]

Kent Cooper, AIA
0 Likes
Message 6 of 10

fcorte
Enthusiast
Enthusiast

Thank you all, for the reply. But I would like to "lock" the Total span of the array while changing the number of cols or rows, or "lock" Total span while changing individual spacing.

0 Likes
Message 7 of 10

Kent1Cooper
Consultant
Consultant

@fcorte wrote:

... I would like to "lock" the Total span of the array while changing the number of cols or rows, or "lock" Total span while changing individual spacing.


You won't be able to do that through the Properties palette.  Some kind of custom command can certainly be defined using those (...propertyvalue) functions.  BUT if you can draw an object representing the entire span [such as a Line in your image, but it can be anything, even curved], you can use ARRAYPATH, Method option / Divide method, and specify the number of Items.  Draw the span object on a non-plotting Layer if appropriate, and if there isn't some object already drawn representing the right span that you can use.

 

[If you want the total span to be locked, you can't set the individual spacing to anything you want -- it will need to be a result of the number of items.]

Kent Cooper, AIA
0 Likes
Message 8 of 10

fcorte
Enthusiast
Enthusiast

The path array doesn't allow to copy and drag to the new span; I like the Rectangular array behavior, just it will be useful be able to lock the total span(first and last point), and then the user just modify the count to achieve the desired spacing on the new span.

0 Likes
Message 9 of 10

GrantsPirate
Mentor
Mentor

I don't think there is a way so the work arounds are offered instead.  It is pretty quick to add in the number of objects wanted and then resetting the total width.  You can use the ribbon and copy the width, change the number of objects and then paste the width back in.  Or edit those with the grips.


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

0 Likes
Message 10 of 10

Kent1Cooper
Consultant
Consultant

@fcorte wrote:

The path array doesn't allow to copy and drag to the new span....


I'm not sure what you mean by that.  You can grip-drag an end of the path object to a new span, and the things Arrayed along it will follow.

Kent Cooper, AIA
0 Likes