Dynamic Block: Stretch in BOTH directions

Dynamic Block: Stretch in BOTH directions

Anonymous
Not applicable
40,461 Views
24 Replies
Message 1 of 25

Dynamic Block: Stretch in BOTH directions

Anonymous
Not applicable
Is it possible to have a dynamic block stretch in both directions based on a center point? If so, how?

Thanks in advance.
0 Likes
Accepted solutions (1)
40,462 Views
24 Replies
Replies (24)
Message 2 of 25

Anonymous
Not applicable
use 2 stretch actions but in properies make it stretch in the opposite direction
0 Likes
Message 3 of 25

Anonymous
Not applicable
you would probably want to post this in the dynamic block group


pat
Message 4 of 25

Anonymous
Not applicable
2 linear parameters, 1 grip on one, no grips on the other, chain
actions=yes, show=no
2 stretch actions, 2nd stretch action set angle offset to 180

Matt
Message 5 of 25

Anonymous
Not applicable
Accepted solution
Overkill alert! 🙂 How about one linear parameter, set base to Midpoint.
Two stretch actions, either associated with the same end and one with angle
offset of 180, or associated one to each end of the linear parameter.

"Matt Kolberg" wrote in message
news:5511164@discussion.autodesk.com...
2 linear parameters, 1 grip on one, no grips on the other, chain
actions=yes, show=no
2 stretch actions, 2nd stretch action set angle offset to 180

Matt
Message 6 of 25

Anonymous
Not applicable
Yours is certainly the better solution on retrospect.

Matt
Message 7 of 25

Anonymous
Not applicable
I just try to avoid chaining parameters whenever possible. Too complicated.
:-)

"Matt Kolberg" wrote in message
news:5512756@discussion.autodesk.com...
Yours is certainly the better solution on retrospect.

Matt
0 Likes
Message 8 of 25

Anonymous
Not applicable
I don't like chaining dimensions, cause it never works the way I need or
want it to. In fact, it just doesn't work period for me.

--
Brian MacDonald


"Kate M" wrote in message
news:5513524@discussion.autodesk.com...
I just try to avoid chaining parameters whenever possible. Too complicated.
:-)

"Matt Kolberg" wrote in message
news:5512756@discussion.autodesk.com...
Yours is certainly the better solution on retrospect.

Matt
0 Likes
Message 9 of 25

Anonymous
Not applicable
Hi Matt,
I have been following "stretching from the midpoint." I have been trying to develop a window block that would stretch from the midpoint. Your approach works exactly the way I would like mine to. (There is some kind of bug in AutoCAD 2007 that prevents me from accurately using the midpoint instead of startpoint for a stretch.) I developed a block comparing what you have done. I am attaching the dwg for you to look at. I know I am missing something simple. If you could look at it I would greatly appreciate it. Mel
0 Likes
Message 10 of 25

Anonymous
Not applicable
Picture a Kitchen Cabinet front to stretch. 1 Linear parameter @ width of cabinet. 1 stretch with distance mult .5 1 stretch with DM .5 & Angle offset 180. this moves the sides. 1 Move DM .25 1 Move DM.25 AO 180. This move handles and door details. Nothing chained
0 Likes
Message 11 of 25

Anonymous
Not applicable

All,

 

I am trying to stretch in three directions, I have tried using chain actions but to no avail.

I have attached my attempted block, all I want to do is stretch one distance and have that stretch action work with the two chained distances to make a uniform stretch. i.e. all the distances will be that same length, but at the moment my stretch is just stretching the chain actions in the same direction as the primary stretch rather than stretching each uniformly outwards.

 

I hope I have made enough sense for someone to provide me with a solution.

 

Any help is much appreciated.

 

Warm Regards,

Shaun

 

 

0 Likes
Message 12 of 25

Anonymous
Not applicable

Shaun,

 

I'm a little late on an answer, but for posterity, you would use one distance parameter and three stretch actions.  I used the distance going from the center to the top leg.  Then did a stretch action of that leg.  Then did a stretch action of the lower left leg, referencing the same distance parameter.  But I changed the rotation angle to 120.  Then I did a stretch action on the lower right leg and changed its angle to 240.  Works like a charm.  I've uploaded your file with the changes I made, although I'm sure you solved it long ago.

 

Bill

Message 13 of 25

ndawsonmccann
Advocate
Advocate

I got this to work after several attempts. There are a few extra notes I added to the steps.

 

The left stretch action without the grip should have (Show Properties = No) and (Chain Actions = Yes) (Angle = 180). This action should show (Selection set = 1 objects).

 

The right stretch action with the grip should have (Show Properties = Yes) and (Chain Actions = No) (Angle = 0). This action should show (Selection set = 3 objects).

 

-Nick

Message 14 of 25

CathyHarron
Explorer
Explorer

"One linear parameter, set base to Midpoint, two stretch actions" - Wow.... This was exactly what I needed! 🙂 I just didn't think of putting 2 actions to the same parameter! That's brilliant! 🙂 I've put parameters and actions inside other parameters and actions but... my shortsightedness was to not think of putting two actions to the same parameter! You've opened up a whole new world for me! Thanks a bundle!!

Message 15 of 25

Emmsleys
Alumni
Alumni

Thanks for posting back in thread to validate that one of the post's helped resolve your issue. I don't think the OP will come back to the thread so I can go ahead and mark @ ndawson post. 

 

 

 

 



Sarah Emmsley
Technical Support Specialist

0 Likes
Message 16 of 25

Anonymous
Not applicable

You can also do as below method 

Add 1 Linear Parameter with 2 grips, Change parameter settings in properties/Misc = (Base Location = Midpoint)

add 2 Stretch action on both ends. it will works fine 

see the attached file  

Message 17 of 25

Libbya
Mentor
Mentor

@ndawsonmccann wrote:

I got this to work after several attempts. There are a few extra notes I added to the steps.

 

The left stretch action without the grip should have (Show Properties = No) and (Chain Actions = Yes) (Angle = 180). This action should show (Selection set = 1 objects).

 

The right stretch action with the grip should have (Show Properties = Yes) and (Chain Actions = No) (Angle = 0). This action should show (Selection set = 3 objects).

 

-Nick


That's silly complicated.  Don't chain anything.  Don't mess with the angle offsets or distance modifiers.

 

Linear parameter with base point mid and a stretch on each endpoint.  Done.  

0 Likes
Message 18 of 25

Anonymous
Not applicable

this is a perfect solution to the question at hand

0 Likes
Message 19 of 25

thomas
Enthusiast
Enthusiast

Would you have a DWG example of this? For the life of me I can't recreate it

0 Likes
Message 20 of 25

Libbya
Mentor
Mentor

Thomas, rather than asking someone else to come up with an example DWG to post, it might be better for you to post your block attempt and others could let you know how to correct it.

0 Likes