Stretch and flip

Stretch and flip

Anonymous
Not applicable
6,416 Views
48 Replies
Message 1 of 49

Stretch and flip

Anonymous
Not applicable

Hey guys,

I am trying to creat a dynamic block that stretches evenly on both sides and also has a flip command. I can't seem to get these commands to work together properly. I got the block to stretch correctly but if I flip the block more than once it doubles in size.  Attached is my file I am trying to use. Can anyone help me? I need to be able to flip the block in any direction and stretch both direction simultaneously.

0 Likes
Accepted solutions (3)
6,417 Views
48 Replies
Replies (48)
Message 41 of 49

ndikesh
Contributor
Contributor

Hi Hwalker,

Thanks for the reply, however if I simply change it to midpoint, the line would go in a different angle(please have a look at the attached file)

Also can you please explain me how the scale action is working in this block.

 

Regards

0 Likes
Message 42 of 49

h_s_walker
Mentor
Mentor

What are you using the scale action for? If you want to keep the dashed line at the same position where it is now, just add it to stretch 3.

 

The reason why it's "moving" is because you've added it to the SCALE. Scale affects objects in both the X and Y directions.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 43 of 49

ndikesh
Contributor
Contributor

Hi Libbya,

The attached block works fine but once it's flip the hatch needs to stretch. Can you please advise how to make that happen.

0 Likes
Message 44 of 49

wr.marshall
Advisor
Advisor

@ndikesh what about centering the block and then stretching both sides???? you can then use a midpoint snap where the current base point is to move into position if so desired!!!

0 Likes
Message 45 of 49

Libbya
Mentor
Mentor

Here's how I would create that behavior.  See screencast:

 

 

0 Likes
Message 46 of 49

ndikesh
Contributor
Contributor

@Libbya , you are awesome. Thanks a lot.

0 Likes
Message 47 of 49

MRupnik
Participant
Participant

Dear @Libbya,

I saw you're expert on this Stretch-Flip problem/issue/challenge thing.
I tried multiple approaches (with phantom distance; with point) described in this threat and nothing worked for me. Is it possible, to look into attached files (both variants) and see what I'm missing and doing wrong? 

Thanks.

P.S.: Of course anybody else can help. 😉

0 Likes
Message 48 of 49

Libbya
Mentor
Mentor

@MRupnik You need to flip the appropriate stretch/move actions.  Flipping an action with an angle offset flips the angle offset EXCEPT if the angle offset is 0 or 180 it remains unchanged.  Because of this you need to get a little fancy.  With your main linear parameter, stretch a chained parameter with an angle offset that ISN'T 0 or 180.  Then have that chained parameter use the complementary angle offset to stretch the objects you want stretched.   You then need to flip ONE of the stretch actions (either the one stretching the chained parameter OR the one associated with the chained parameter).

 

You had multiple issues in both of the blocks.  I don't have time to explain all of them.  Here are your two blocks back functioning properly.  Hope that helps.

0 Likes
Message 49 of 49

MRupnik
Participant
Participant

Wow @Libbya, that was fast. And great, thank you.
So, from what I can see, my basic problem was, that my actions were 0 or 180°and thus flip didn't flip it? 
Again, this was really helpful and already in use.

0 Likes