Jump to content

Dynamic Block: Scale horizontally in line with stretch.


Recommended Posts

Lets say we have a rectangle 0,0 - 200,100 with a triangle inside 0,0 - 100,100 - 200,0

 

[/\]

 

A dynamic stretch action is applied to the x of the rectangle, how do you scale/stretch the triangle with the rectangle and only on the x axis, so the triangle remains symmetrical from the middle of the rectangle on the y axis even when the rectangle is stretched?

 

Looking for a solution that doesn't involve inserting the block and scaling?

 

Help much appreciated!

Link to comment
Share on other sites

Could this be accomplished via a dynamic block using a distance multiplier?

 

It can be, alternatively you can modify the basepoint of the parameter for the midpoint rather than the start point (scales from the center of the parameter).

Link to comment
Share on other sites

Unfortunately scale will scale both X and Y, you should use 2 stretch actions away from the center. Both using the same linear parameter point, but one of the actions working 180 degrees. It's a bit hard to describe so see the attached example.

SquareTriangle.dwg

Link to comment
Share on other sites

Hi, thanks for the replies.

 

Steven-g nice solution, though my fault I didn't explain I was hoping to have the base point at the bottom left and stretch off to the right?

 

Anyone know if it's possible in CAD?

Link to comment
Share on other sites

Its still possible, place your linear parameter over the whole width. Then again use 2 stretch actions based on the same right hand grip, one action that stretches the right hand side, including the base of the traingle and the other action just stretches the top of the triangle in the same direction just set the distance multiplier in the properties to 0.5

Link to comment
Share on other sites

  • 2 years later...

martin74302,

 

how about adding another dynamic command to your block. the parameters : point and action is move or stretch. just a suggestion.

Link to comment
Share on other sites

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...