Using multiple visibility parameters in a dynamic block

Using multiple visibility parameters in a dynamic block

mehdi-guida
Advocate Advocate
1,502 Views
14 Replies
Message 1 of 15

Using multiple visibility parameters in a dynamic block

mehdi-guida
Advocate
Advocate

Hi

Is there any way to use multiple visibility parameters in a dynamic block by Lisp routine(without using lookup)?

0 Likes
Accepted solutions (1)
1,503 Views
14 Replies
Replies (14)
Message 2 of 15

j.palmeL29YX
Mentor
Mentor

No. 

(AutoCAD doesn't allow more than one Vis. Parameter. This limitation cannot be overcome even with Lisp). 

 

(Remember what was written on 2024-01-31)

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

mehdi-guida
Advocate
Advocate
Accepted solution

Thank You for reply.

I remembered previous posts.

But I've heard about some routines and hope someone can give me more information.

Message 4 of 15

j.palmeL29YX
Mentor
Mentor

@mehdi-guida wrote:

I've heard about some routines ...


 

There are certainly several ways to control the visibility of objects within a dynamic block, including via LISP.

But you asked explicitely how "to use multiple visibility parameters". And as long as a block definition can include only one visibility parameter at a time you never can use multiple of them. 

Perhaps you should describe more detailed what you want to achieve ... mybe we find a solution. 

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 5 of 15

mehdi-guida
Advocate
Advocate

you are right, I meant finding any possible way to use visibility parameter more than one time in a dynamic block.

I've heard some it is possible by lisp routines and downloaded some of them, but I couldn't work with them.

0 Likes
Message 6 of 15

h_s_walker
Mentor
Mentor

Cheat using double lookups. See the pinned topic about them

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 7 of 15

j.palmeL29YX
Mentor
Mentor

@h_s_walker wrote:

Cheat using double lookups. See the pinned topic about them


He knows this way (>>click<<)  but for some reason @mehdi-guida doesn't want to or can't take this suggestion. [cit from post #1: "Is there any way ... (without using lookup)?"]

 

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

mike_collinsAA9YL
Explorer
Explorer

How does this work. I can't figure it out. looks like it has 3 

0 Likes
Message 9 of 15

Libbya
Mentor
Mentor

That block was created using the Visibility-Add-Eng LISP routine that has not worked for any version of AutoCAD since ~2010.  My understanding is that it exploited a flaw in the code that has consequently been patched and there is not a way to make that LISP routine work with any later versions.

 


@mike_collinsAA9YL wrote:

How does this work. I can't figure it out. looks like it has 3 


 

Message 10 of 15

mike_collinsAA9YL
Explorer
Explorer

Thank you again 

0 Likes
Message 11 of 15

mike_collinsAA9YL
Explorer
Explorer

Thank you.   Could I install that version of acad to do this again 

0 Likes
Message 12 of 15

Libbya
Mentor
Mentor

Yes, you can and as far as I know the blocks will still work with later versions of AutoCAD.  That said, I've used it and IMO it is not worth doing.  The Visibility-Add-Eng was glitchy, unintuitive and editing existing blocks that were created using it was an absolute pita.  For simple blocks it could work, but in that case I definitely prefer using the double lookup method which is easier to use, and much easier to edit later on with changes.   

0 Likes
Message 13 of 15

mehdi_aghdam
Explorer
Explorer

does anyone have this lisp?

0 Likes
Message 14 of 15

j.palmeL29YX
Mentor
Mentor

@mehdi_aghdam wrote:

does anyone have this lisp?


After less than 1 min searching in the web I found this: 

>>click<<.

 

 

HTH

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 15 of 15

jvasUUKFX
Explorer
Explorer

If the change in visibility state is a simple matter of changing text values, you could try using formulas for text values that will look at a table reference within the block.  Or if it's as simple as a number change, a formula which looks at the value of a block attribute.  You can change the block attribute per block.

0 Likes