Multiple visibilty parameters in a dynamic block

Multiple visibilty parameters in a dynamic block

mehdi-guida
Advocate Advocate
1,547 Views
21 Replies
Message 1 of 22

Multiple visibilty parameters in a dynamic block

mehdi-guida
Advocate
Advocate

Hi

Is there any way to use multiple visibilty parameters in a dynamic block (by Lisp routine OR ...)?

Thank You

0 Likes
1,548 Views
21 Replies
Replies (21)
Message 21 of 22

j.palmeL29YX
Mentor
Mentor

@vcocoraP86VJ wrote:

...  Can be used for any number of objects within the block.

Nice!!!


Theoretically yes. But note that each additional element doubles the required number of lines in the Lookup Tables. For 8 objects 256 lines would be necessary, for 10 objects 1024 lines in each of the two Lookup Tables. IMO this is no longer practicable. 

 

 

Jürgen Palme
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

0 Likes
Message 22 of 22

neil
Participant
Participant

Note that this has limitations. The extent of the xclip needs to be larger than the maximum extent of your dynamic block, and XCLIPFRAME needs to be set to 0. Also even with the XCLIPFRAME off, it still selects in the drawing. So for example the same principle is applied in the attached simplified block, and the dynamic length and depth are set to minimum, but if I cross a stretch polygon over the invisible Xclip frame it grabs the block at the maximum limits. Hence a bit quick and dirty. But way faster than double lookup.

Ideal situation would be for Autodesk to modify the visibility states process to have more than one visibility parameter, but NOT allow the user to asign entities to more than one visibility parameter. That way you could have visibility sets for more than one category. For instance, in the attached block it would be nice to have a visibility parameter for the hatch, and another one for the shapes, so they could be switched independantly.

Also left the flip grips on in this block, but my preference is to switch off and edit in properties only, since they move around.

0 Likes