Block with 2 scale actions but one doesn't work

Block with 2 scale actions but one doesn't work

phHNEPB
Contributor Contributor
218 Views
3 Replies
Message 1 of 4

Block with 2 scale actions but one doesn't work

phHNEPB
Contributor
Contributor

Hi all,

 

I'm trying to create a dynamic block with a rectangle, circle and polygon. The purpose of the block is that you can change the length and width of the rectangle and that the size of the circle and polygon follow.

 

I tried to make it with a stretch action that changes the length and the width of the rectangle and chained scale actions that change the size of the circle and polygon.

 

If I change the length of the rectangle the circle and polygon follow. But if I change the width of the rectangle the circle and polygon don't follow. I don't understand why because it seems to me that I'm doing exactly the same for the two stretch parameters. 

Also if you change the length of the rectangle a lot it becomes bigger than the circle, how can this happen?

 

Thanks in advance! 

0 Likes
Accepted solutions (2)
219 Views
3 Replies
Replies (3)
Message 2 of 4

MMcCall402
Mentor
Mentor
Accepted solution

Try using just 1 parameter for the scaling. Make it a diagonal measurement from the center to the corner and include it in both Stretch 0 and Stretch2 action sets.  This way the Scale parameter will be modified by either a change in the Length, Width, or both.

 

MMcCall402_0-1737067207469.png

 

Mark Mccall 
CAD Mangler


EESignature


VHB - Engineering, Inc.

Message 3 of 4

Libbya
Mentor
Mentor
Accepted solution

This is a duplicate thread.  In the other thread, the author mentioned that they want the circle and octagon to remain a constant distance from the corner of the rectangle.  With your single parameter for scaling, the gap between each of those will grow as the block is scaled up and shrink as it is scaled down.  I posted the solution in the other thread which is a little more complicated.  It requires a diagonal parameter like you propose, but then that diagonal stretches two chained parameters that match the circle and octagon distances and scale them accordingly.  The result is a constant gap between all three.

 

The other thread is here:  https://forums.autodesk.com/t5/dynamic-blocks-forum/dynamic-blocks-with-scale-function/td-p/13264427

Message 4 of 4

phHNEPB
Contributor
Contributor

Yes it is a duplicate, sorry about that! I tried posting this problem myself on the forum but I kept getting problems and it wouldn't post so I asked a colleague to post it. But apparently it posted anyways, sorry!

0 Likes