Help! Keep block in same position after stretching and changing visibility states.

Help! Keep block in same position after stretching and changing visibility states.

ntpitts
Participant Participant
1,293 Views
7 Replies
Message 1 of 8

Help! Keep block in same position after stretching and changing visibility states.

ntpitts
Participant
Participant

Hello, I have a block that represents different panels. I have a stretch function on the x and y axis of the panels. When I stretch a panel and change visibility states to a different panel, I want it to remain in the position that the previous panel was stretched to. Right now, it works for all of the visibility states besides one. 

 

I attached a video showing the correct outcome for the working panels. The barrel horizontal is the one with the issue as shown. 

 

Any help is appreciated! Thanks

 

0 Likes
Accepted solutions (1)
1,294 Views
7 Replies
Replies (7)
Message 2 of 8

h_s_walker
Mentor
Mentor

Attach the drawing, so we can have a look at it, and you will also have to mention which visibility state causes the problem as we cannot see in the video which one you chose

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 3 of 8

chrismunt
Advocate
Advocate

Hello.

The attached block would help so we can correct it and show you where the error is coming from. But in essence the stretch command needs to relate to all objects within the block, regardless if they are going to be visible or not. So when you change visibility states the other objects within the block have been stretched (re positioned) also.

Within the block editor, if you set the the 'BVMODE' variable to 1 so all objects are visible. Then modify your stretch action selection to include all objects that will need to be stretched in that direction. This should resolve your issue.

 

From the video it appears you have most of the objects selected to stretch except the "barrel" one.


Please select the "Accept as Solution" button if my post solves your issue or answers your question.
0 Likes
Message 4 of 8

Libbya
Mentor
Mentor

You should have only one horizontal linear parameter and only one vertical linear parameter.  There should be a stretch action associated with the horizontal linear parameter and another stretch action associated with the vertical linear parameter.  Those two stretch actions should stretch the linework in ALL visibility states at the same time.  

 

I suspect that instead of the simple block I outlined in the first part of this post, you probably have an inefficiently designed block with a linear parameter in each of the visibility states and a stretch action for each of the linear parameters.  The linework of the misbehaving state hasn't been added to the selection set of one or more of the other states. I could likely tell you with certainty what the issue is if you attached your block.  Don't bother with more videos.  They are not particularly useful for diagnosis and take far longer to post than the block which IS useful.

Message 5 of 8

ntpitts
Participant
Participant

Thanks for the reply! I tried your solution and it definitely seems to be what is neccesary to get it to work. Couldn't get everything to work how I wanted it to still unfortunately. 

 

I included the file if you wouldn't mind taking a look and maybe seeing if you can get it to work. Thanks again!

0 Likes
Message 6 of 8

ntpitts
Participant
Participant

Thanks so much for the help and all. I tried the solution which seems to be what is needed. Still had some parts of the component not working how I want though...

 

I included the block below if you wouldn't mind taking a look. Thanks again!

0 Likes
Message 7 of 8

ntpitts
Participant
Participant

attached it below. thanks!

0 Likes
Message 8 of 8

Libbya
Mentor
Mentor
Accepted solution

The issue is exactly as I stated.  You have the HEIGHT and WIDTH linear parameters in 4 of the visibility states and then you have Distance 6 and Distance 5 linear parameters in the BARREL HORIZONTAL visibility state.  You have a bunch of other items/parameters/actions existing within the block and not visible in any visibility state at all! 

 

Stop thinking of visibility states as entirely separate from each other.  The only separateness is in what is visible (or not) in a given state.  A line can be visible (or not) in any number of states.  A parameter/action can as well.  A parameter that is visible in one state can act on items that are not visible in that state.  You have duplicate linework.  Every panel has a bounding rectangle.  Instead of repeating that linework, have ONE rectangle in the block and make it visible in all the states, etc...