Dynamic Block auto adjustment along length

Dynamic Block auto adjustment along length

mak0238
Explorer Explorer
1,774 Views
9 Replies
Message 1 of 10

Dynamic Block auto adjustment along length

mak0238
Explorer
Explorer

Hi,

 

I want to make a dynamic block.It basically a rectangular block and oneside strcheable and one side fixed. There is slot inside of it .So i want to make a dynamic block so that the slot will increase at a linear pattern (14" increment) once the rectangle block is streched. Is it possible to do that? I didn't find  any way to auto adjust the slot quantity according to block length.Please let me know if anyone know about this and how to do that? Or I need to create any macro for that lisp or vba? If that so please let me know how to do that.

 

 

block_automation.JPG

0 Likes
Accepted solutions (1)
1,775 Views
9 Replies
Replies (9)
Message 2 of 10

Libbya
Mentor
Mentor

Yes, it's fairly easy using a linear parameter and array action.  If you posted a file with the linework to use, I'd post an example.

0 Likes
Message 3 of 10

mak0238
Explorer
Explorer

Hi,

 

Thank you for your reply.I attached my dwg file.Please take a look at the drawing.All I want to do is as I strech the length of the rectangle, slot hole will increase and fill up the rectangle at 14" gap between them and if I compress it it will also fill out the rectangle with reduce amount of slot.Please let me know how you did that.It will be a great help for me.

 

Thank you

 

Karim 

 

 

0 Likes
Message 4 of 10

Libbya
Mentor
Mentor

See attached.  I added a linear parameter with a stretch action to stretch the rectangle and an array action to array the slot.

0 Likes
Message 5 of 10

mak0238
Explorer
Explorer

Hi,

 

Thank you for your help and Sorry for late reply.I opened your file and I can't see any dynamic block over there.It just the same file I gave you earlier.Can you please check/verify it again?

 

Karim

0 Likes
Message 6 of 10

Libbya
Mentor
Mentor

I just checked and the file I previously uploaded does indeed include the dynamic version.  It is the block on the right side.  Click on it and then pull the grip to see the array work.

0 Likes
Message 7 of 10

mak0238
Explorer
Explorer

Hi,

 

I tried it again but there is no arrow for dynamic block.Even everything is exploded in the file.No block and no polyline.Something is happening over there.Can you just try one more time deleting the left hand side drawing and just put the dynamic block itself? 

 

I will really appreciate your effort.

 

Thank you 

 

Karim

0 Likes
Message 8 of 10

Libbya
Mentor
Mentor
Accepted solution

Yup, I just downloaded it twice more and both times, the dynamic block was present and worked correctly.  Are you sure you are downloading the file I posted and not the version you posted?  Are you sure you are opening the correct file?  Do NOT explode anything.  Here it is again with text/linework highlighting the block and grip.

 

 

 

 

0 Likes
Message 9 of 10

mak0238
Explorer
Explorer

Hi,

 

Thank you for your solution .Excellent work.I really appreciate that.It's working now.Just when you have time let me know "when you give the increment linearly did you add both line and slot together"? 

 

 

Thank you.

0 Likes
Message 10 of 10

Libbya
Mentor
Mentor

The linear parameter has two actions associated with it.  The stretch action stretches the line.  The array action makes the additional slots.  

0 Likes