Jump to content

Recommended Posts

Posted

Hi All,

 

 

I'm making a parametric block consisting of a rectangle with a hole in the centre. What I want to do is array the hole both Left & Right directions. Is this possible?

 

 

Regards,

 

 

Dechal.

Posted

YES,

 

 

 

 

if I am reading your question correctly. Can you post what you have so far?

Posted

actually, I will change my answer to maybe.

 

I used to do it with 2 stretches and 2 arrays. (May need a 2nd duplicate object to array.) However, ACAD 2013 is not behaving the same as 2011 did. I'm getting surprising results :huh: but it is working. Just not how I expected.

Posted

It's the hole on the left hand side (centred on the height). I want to array 2 number holes both above and below centre hole.

para unit.dwg

Posted

here's my attempt but it wasn't as easy as I thought it would be. I'll look at yours and see if we are close.

 

ArrayTest.dwg

Posted
Drawing keeps crashing.
I'll have a look in a minute. It shouldn't. Are you openning it or inserting it in a drawing. It should be inserted.

 

I've got your open. :)

 

Elsewhere you appear to be allowing both the distance and quantity of holes to be adjusted. Is this the same here or are the holes always x appart?

Posted

I got your drawing open. It is going in both directions.

 

 

On my one I got the 2 rows of holes working fine (every 32mm).

 

 

On the problem hole (left hand side). I always want to keep it in the centre and 320mm apart. Also want to be able to edit the Height Parameter and holes will automatically adjust.

 

 

I look at yours now and see if I can learn anything from it.

Posted

I wish I hadn't said it can be done now!

 

I am ALMOST there with a few provisos.

I don't know how to dynamically change the array distance so I have assumed they will always be 20mm apart.

I am one hole out! I have suffered with this before and can't remember if I ever found a fix.

 

What I need is a "when distance = x, array object 2 * x"

 

Anyway, have a look. I have kept your hole and added a red and magenta hole of slightly larger diameters to show what is happening. As you increase the distance one hole is moved. When it reaches the trigger length both red & magenta holes are arrayed.

 

Not a particularly elegant solution but it almost works. I can see you are better at constraints than I am, hopefully my attempts will trigger something for you.

 

para2.dwg

Posted

Pretty sure seen a post recently using a lisp to do something similar, it would not be very hard to do a lisp say 4 inputs +2 -2 +3 -3 meaning a 4x6 row of holes 0 means none in that direction. Would use copy rather than array

Posted

Inded, if there were a finite number of holes a lookup table is probably easy too.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...