Rectangular array frame

Rectangular array frame

ville.pajunenYY5B6
Participant Participant
1,538 Views
9 Replies
Message 1 of 10

Rectangular array frame

ville.pajunenYY5B6
Participant
Participant

Hi,

 

I constantly use Autocad to draw eyelet holes and have yet to figure out a way to do a simple rectangular array that follows only the far edges and divides evenly on the corners.

Is there a (simple) way to do this properly?

 

With rectangular array I get the frame but need to manually remove the inner circles. (pic below)

villepajunenYY5B6_3-1660500255618.png

 

 

With path array on the rectangle, I get only the frame but can't even out the corners with divide

villepajunenYY5B6_1-1660499975412.png

 

If I explode the rectangle and use path array on the line(s) with divide, I get the correct result but again this is a bit time consuming when repeated constantly.

villepajunenYY5B6_2-1660500185712.png

 

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

Michiel.Valcke
Advisor
Advisor

Hello, A few things come to mind,

 

In your particular case i would make one or more dynamic blocks that allow me to parametrize things like length, width nr of rows, columns.

If you want more options and a range of different figures you might want to sollicit some help over at the customization (lisp,....) forums

Message 3 of 10

ParishSouthBdx
Collaborator
Collaborator

One approach would be to use a different center to center dimension.  obviously the rectangle you have drawn is not the center to center dimension.  if the eyelets are 1/4" diameter and the rectangle is 4", yoiur center to center dimension to use in the divide command is 3.75".  i would draw me a line across that is 3.75, making sure it is centered with the rectangle, and was 1/8" clear from each end from the rectangle then divide the line by what you need.  the eyelet EDGE will then rest on the rectangle.  You could apply the same method with the rectangle for the array.  

0 Likes
Message 4 of 10

Kent1Cooper
Consultant
Consultant

Are they always and only orthogonally oriented rectangles?  If so, a routine could probably be written that would have you make the Array including the ones inside, and then it could go through the results and remove anything that does not fall in both X & Y directions on the extreme X & Y coordinate locations of the rectangle.

 

But that can't work if the rectangle is not orthogonal, nor if the shape is not a rectangle.

Kent Cooper, AIA
0 Likes
Message 5 of 10

ParishSouthBdx
Collaborator
Collaborator

i apologize for my first reply.  i wasn't understanding the question.🙄

 

in regard to your comment "divides evenly", will the long sides of the rectangle divide into a distance that the short sides can achieve?  or do you want the long sides dividing into a distance that has no relation to the short sides?

what is important, number of divisions or the distance between them?

which one is the driver?

0 Likes
Message 6 of 10

ville.pajunenYY5B6
Participant
Participant
Dynamic block I definetely need to check out, that's a new thing to me.

lisp is something that crossed my mind earlier, but I'm yet to check how I could make one or if I could get someone to make it for me, even with a compensation for the effort.
0 Likes
Message 7 of 10

ville.pajunenYY5B6
Participant
Participant
Yes, as this is for a simple production of X by Y sized rectangular banners, there's no need to rotate it.
0 Likes
Message 8 of 10

ville.pajunenYY5B6
Participant
Participant

I normally do the long and short sides separately so that I use array path for the exploded rectangle, set the distribution method to "Divide" so I get eyelet holes for the start and finish on the line (as in corners of the banner) and then play around with the number of the items on the toolbar, until I have a requested separation (normally close to 200mm, sometimes clients want less, sometimes more) so It's always kinda case sensitive.

Like this:

 

villepajunenYY5B6_1-1661089199489.png

Then I continue to other direction (X):

 

villepajunenYY5B6_2-1661089281691.png

Then I _copy the two arrays to other sides:

villepajunenYY5B6_3-1661089388902.png

 

I know it's not much of work, but then again why have automation if you can't use it for bulk stuff.

0 Likes
Message 9 of 10

Michiel.Valcke
Advisor
Advisor

Explain your problem to the people in this forum. There are many people there that will be able to either guide you towards existing lisp routines, or that can be contracted to write a lisp routine for you. 

If you want to make the lisp yourself it might take a lot of effort if you have no prior knowledge, but it is definitely something that will expand your mastery of AutoCAD. There are multiple sites available which have autolisp tutorials and guides (such as Lee Mac, Afralisp, ...) The people mentioned in the previously mentioned forum can also help you if you get stuck along the way.

0 Likes
Message 10 of 10

Kent1Cooper
Consultant
Consultant

@ville.pajunenYY5B6 wrote:

I normally do the long and short sides separately so that I use array path for the exploded rectangle, set the distribution method to "Divide" so I get eyelet holes for the start and finish on the line (as in corners of the banner) and then play around with the number of the items on the toolbar, until I have a requested separation (normally close to 200mm, sometimes clients want less, sometimes more) ....


For those parts, you can use the DIV+ command in DivideMeasurePlus.lsp, >here<.  It has the option to include them at the ends [which regular DIVIDE won't do] or not, and you can give it a Maximum spacing, and it will figure out how many spaces are needed, the minimum number of them such that they will not exceed the Maximum.

Kent Cooper, AIA
0 Likes