Stretch visibility issue

Stretch visibility issue

zakkie
Contributor Contributor
412 Views
9 Replies
Message 1 of 10

Stretch visibility issue

zakkie
Contributor
Contributor

I've set up a block with visibility using stretch (first attempt at this)
Block is acting weird and not obeying set rules.

Not sure what I'm doing wrong.
Block has 3 visibility states link to opening sizes

 

Any guidance please
Thank you.

0 Likes
Accepted solutions (1)
413 Views
9 Replies
Replies (9)
Message 2 of 10

Libbya
Mentor
Mentor

@zakkie wrote:

I've set up a block with visibility using stretch (first attempt at this)
Block is acting weird and not obeying set rules.

Not sure what I'm doing wrong.
Block has 3 visibility states link to opening sizes

 

Any guidance please
Thank you.


When I tested the block, it started with the visibility with three and kept that state for the first and second sizes, switched to 4 for the 3rd and 4th sizes, switched to 5 for the 5th and 6th sizes.  That seems like how you would want it set up.  What seems to be the issue?

0 Likes
Message 3 of 10

zakkie
Contributor
Contributor

Good day Libbya
Followed your tutorial to do this, thanks for the excellent tutorial!
AutoCAD 2026
When stretching the block, it shows the correct updated visibility in the list but doesn't update correctly in the drawing. 

0 Likes
Message 4 of 10

Moshe-A
Mentor
Mentor

@zakkie hi,

 

if your goal is to create a dynamic block that extend from 2000mm to 4500mm in 500mm steps?

i refine your block to do that (rename it to stackdr2)

 

you can now add a Lookup table if you want

 

enjoy

Moshe

 

0 Likes
Message 5 of 10

Libbya
Mentor
Mentor

@zakkie wrote:

When stretching the block, it shows the correct updated visibility in the list but doesn't update correctly in the drawing. 


I can't replicate that behavior.  The visibility state switches correctly and shows up correctly in the drawing when I use it.

 

 

https://youtu.be/V6yZpN3zhY8
  

0 Likes
Message 6 of 10

zakkie
Contributor
Contributor

Hi Moshe
The aim is to stretch and change visibility to 3, 4 or 5 doors depending on the stretch length

 

0 Likes
Message 7 of 10

Moshe-A
Mentor
Mentor

@zakkie ,

 

You can not stretch an object and expect it to multiplied, you need to copy the doors to achieve that like using array.

can you be more accurate...

does the door size stretches?

at opening size 2000 we have  3 doors

at opening size 4500 we have 5 doors?

and what in between?

 

Moshe

 

 

0 Likes
Message 8 of 10

Libbya
Mentor
Mentor

@Moshe-A wrote:

@zakkie ,

 

You can not stretch an object and expect it to multiplied, you need to copy the doors to achieve that like using array.

can you be more accurate...

does the door size stretches?

at opening size 2000 we have  3 doors

at opening size 4500 we have 5 doors?

and what in between?

 

Moshe

 

 


They have it set up correctly (in a less complicated way than you posted).  They have multiple stretch actions set to stretch the individual doors appropriately.  They have the 3 visibility states added, and they have a double lookup added so that it switches the visibility state to match the overall length.  

0 Likes
Message 9 of 10

Libbya
Mentor
Mentor
Accepted solution

Here's a version I simplified a bit.  See if it helps the issue.  

 

You can have an action affect objects in multiple visibility states, so I used one stretch action with distance multiplier of 1 to stretch in all three states.  I added range values into the lookup table instead of having multiple rows with the same name. 

0 Likes
Message 10 of 10

zakkie
Contributor
Contributor

This is perfect and exactly how i want it to work!!

I was able to replicate settings successfully on the original block.
Thank you Libbya !!!!! 🙂


0 Likes