Jump to content

How do I stretch a rectangle evenly using only 1 point?


Recommended Posts

Hey all,

 

I was wondering if it is possible to use dynamic blocks to stretch a rectangle evenly, using only 1 point? I have attached a PDF of a rectangle with 2 lines coming out of each side (before & after picture). I want to use dynamic blocks to pick a point at the top right of the block, so that when I pull it out, the lines will extend, but stay attached to the rectangle. I also what the rectangle to stay in the center at all times.

 

If you can understand, please help! Is this possible?

Block Stretching.pdf

Link to comment
Share on other sites

You can add 2 actions for 1 parameter.

You may want to read this: http://cad-notes.com/2009/08/dynamic-block-tutorial-3-creating-door/

Read adding action section, no 1-3.

 

And for keeping the center, you need to place insertion point at center.

Read this for example: http://cad-notes.com/2009/08/dynamic-block-tutorial-2-creating-column/

Link to comment
Share on other sites

Hi edwinprakoso,

 

Thank you but this does not work for what I want. I must have the insertion point at the bottom left corner of the entire block. Because I am using AutoCAD Lite, I am unable to use constraints of any kind. Do you know if there a way of making what I want happen?

Link to comment
Share on other sites

expanding on what Edwin has said, you need one paraameter and MANY actions. I would have a 100% stretch on the top edge of the vertical lines and a 100% stretch on the right edge of the horizontal lines. After that I would add a 50% stretch around the box vertically and a 50% stretch around the box horizontally. As I haven't got constraints clear in my head that should give you what you want.

Link to comment
Share on other sites

I have a parametric rectangle that can be size adjusted by stretching one corner. Is that what you are looking for?

Link to comment
Share on other sites

I have a parametric rectangle that can be size adjusted by stretching one corner. Is that what you are looking for?

 

That sounds like just the ticket. :beer:

Link to comment
Share on other sites

Hi dbroada,

 

I can't believe I did't think of that.. It works perfectly! I had spent hours stuffing around with the polar stretch and coming to no conclusion. I used to use a horizontal linear parameter with a pick point at the bottom right of the block, and a vertical linear parameter at the top right.. I can't believe that I didn't think of overlapping the pick points!

 

Like Homer Simpson once said: "By typing 'Y' instead of 'Yes' I've tripled my productivity!" Well sir, you have helped me double my productivity! Thank you!

Link to comment
Share on other sites

Hi edwinprakoso,

 

Thank you but this does not work for what I want. I must have the insertion point at the bottom left corner of the entire block. Because I am using AutoCAD Lite, I am unable to use constraints of any kind. Do you know if there a way of making what I want happen?

So, after seeing the accepted solution, it looks to me like this reply was in error. I am missing something here?
Link to comment
Share on other sites

So, after seeing the accepted solution, it looks to me like this reply was in error. I am missing something here?

 

The solution did not use constraints.

Link to comment
Share on other sites

The solution did not use constraints.
OK. But it did not look to me like Edwin's solution needed them either, and Edwin only mentioned actions and parameters in his comments, not constraints.
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...