Multiple Visibility Lisp routine

Multiple Visibility Lisp routine

Charles_Shade
Mentor Mentor
14,088 Views
40 Replies
Message 1 of 41

Multiple Visibility Lisp routine

Charles_Shade
Mentor
Mentor

Could the users of this Lisp post the several Versions here for others to find?

I have come across a few in the AUGI Dynamic Block Forum who would like to make use of the Lisp but may be running into Version problems.

(And I thought that using the subject line would help.)

 

Link to visibility-add-eng discussion thread:

Original Thread

 

0 Likes
Accepted solutions (1)
14,089 Views
40 Replies
Replies (40)
Message 21 of 41

Anonymous
Not applicable

The updated 1.6 and 1.61 lisps won't work on AutoCad 2012. Having tried the command to add vis.state (VSPADD) I get a mistake - smth like wrong associative list: (nil nil nil....).

I so don't want to install Autocad 2010 😞

0 Likes
Message 22 of 41

Anonymous
Not applicable

Having added the standard autocad vis parameter made it possible to use VSPADD. But the problem is, that I cannot split objects between several visibility states. I've tried to clean states with use of (VSPDELSEL and VSPDELALL) and then added required objects to particular vis state (VSPADDSEL) but no success. Each vis state resets the other one (I suppose because they have the same objects). Instruction in lisp a bit complicated, it reffers to using Lookups. I've failed to repeat it step by step. But the workflow I used in AutoCad 2010 won't work.

0 Likes
Message 23 of 41

Libbya
Mentor
Mentor

Unless you are dealing with an inordinate number of visibility states (200+) IMO it's easier to just use the lookup method that works for all versions that allow dynamic blocks. 

0 Likes
Message 24 of 41

Anonymous
Not applicable

I use multivisibility in 3D database with elements that may encounter 400 000 visibility states.

Here is one of the elements for example 3D showcase. I use it in AutoCad 2006, and create in AutoCad 2010 (now want to migrate to 2012). And here is the video I've made to show how it works for my colleagues.

So unfortunately there is no workaround with lookups for me.

0 Likes
Message 25 of 41

Libbya
Mentor
Mentor

For the linked block I would use a single visibility state with the selections made via lookup to scale the 'unseen' objects to 1/1000 of a unit.  

0 Likes
Message 26 of 41

Anonymous
Not applicable

Wow, thanks a lot. Very interesting workaround. 

So instead of visibilities I the lookup tables, add scale parameters with 1 and say 0.00001 values for each element that may need to be hidden, and add to lookup tables scale parameters for particular objects (that needs to change the visibility within the lookup table). Clever!

Will give it a try. The only thing is, I am a bit worried that I will have dots in printed wireframe views for those scaled to 0.00001 objects.

I liked the workflow with visibility-add-eng, and I would love to stick with it if it worked in AutoCad 2012.

0 Likes
Message 27 of 41

Libbya
Mentor
Mentor

You can adjust the 'large' parameter value to whatever you would like, e.g. 100.  The shrunk objects will leave a dot, but if you place the parameter base point at the endpoint of a line that is always on, it will not ever be visible.  I personally prefer not to have the 'dots' but the linked block could be done in such a manner that they would not have any discernible effect.  

0 Likes
Message 28 of 41

Anonymous
Not applicable

 I had the same idea of placing the "dot" to a place where it the visible object was. But sometimes there is no such objects to hide the "dot". But that's not very big issue anyway.

Thanks a lot for your help and advices.

0 Likes
Message 29 of 41

Scott_Loadman
Contributor
Contributor

DBdj1,

 

Have you had any luck fixing the VSPaddSel and VSPDelSel commands?

 

ScottL

Message 30 of 41

Anonymous
Not applicable

hi 

 

visibility parameter,

 

property labes,

 

How is it done parameter type change name ?

 

0 Likes
Message 31 of 41

rapidcad
Collaborator
Collaborator

You are not going to be able to change the parameter type through the properties palette, you will want to change the Visibility Name and Visibility Description to suit your needs.

Capture1.JPG

ADN CAD Developer/Operator
Message 32 of 41

Anonymous
Not applicable

Hi!

My problem is that when I change one visible it reset all others.

I use Autocad 2016 with Polish language pack and visibility-add-eng_1_61.

Could you please record a screencast - how to properly do from start to finish, multivisible dynamic block?

 

 

0 Likes
Message 33 of 41

Anonymous
Not applicable

Whats the command? how do I use it? if i have multiple visibility parameter, will it link separately with lookups?

0 Likes
Message 34 of 41

Anonymous
Not applicable

Can anyone help me?

What I does wrong ?

 

Steps:

1. Create a block with any object
2. Load lisp script
3. Enter in block editor
4. Add Visibility from dynamic block panel
5. Add another visibilities, what you need with VSPADD command
6. Add still one extra block with same command for multi-visibility
7. Set active first visibility with command VSPSET and click on them
8. Insert or draw objects in active visibility parameter
9. Set active extra block before exiting from block editor

 

Visibility set changes both, how to separate VS'es ?

0 Likes
Message 35 of 41

rapidcad
Collaborator
Collaborator

@Anonymous, unfortunately the lisp program that opened up the possibility of creating multiple visibility parameters appears to be impossible to update so that it will work with AutoCAD versions newer than AutoCAD 2011. I did quite a bit of research on the program and came to the conclusion that something changed within the AutoCAD object model between the 2011 format and the 2012 format (and probably many other things subsequently) that will not allow the loophole that the original author, Andre Lazebny (who sadly passed away a few years ago) had found and exploited when he created the program. 

If you can find a legal copy of AutoCAD 2011 (I have maintained one for all these years just for this purpose), MVP blocks can still be made using the program, I made some yesterday. However many others have followed Libbya's well documented way of making dynamic blocks with a similar outcome buy using double-lookups and a long list of visibility states in a single visibility parameter. Here is a link to the thread that has the author's excellent screencast tutorial: https://forums.autodesk.com/t5/dynamic-blocks-forum/lookup-multi-vis-how-to-screencast/m-p/5849853#M19084 

While it is easier to create MVP dynamic blocks using the lisp program, I would not recommend it any longer since it is getting harder to maintain such an old version of AutoCAD and may become harder with each subsequent OS version that makes current OS's obsolete (Win10).

 

I hope this helps you figure out how to go forward with your dynamic block needs.

 

ADN CAD Developer/Operator
Message 36 of 41

jamel.benariba
Explorer
Explorer

Hi,

 

Do you know if the LISP (visibility-add-eng_1_61) works with AutoCAD 2024 LT? We can load the LISP on the LT version now, but I think this one is no longer working.

 

Thank you,

0 Likes
Message 37 of 41

mj.harris
Observer
Observer
Sadly, I do not know.
0 Likes
Message 38 of 41

Libbya
Mentor
Mentor

@jamel.benariba wrote:

Hi,

 

Do you know if the LISP (visibility-add-eng_1_61) works with AutoCAD 2024 LT? We can load the LISP on the LT version now, but I think this one is no longer working.


It hasn't worked for many releases.  I haven't tried for a while, but I doubt it ever will again unless someone with decent LISP skills takes it upon themselves to get it working.  I asked before on the LISP forum if anyone would be able to help and the only response was crickets.

0 Likes
Message 39 of 41

rapidcad
Collaborator
Collaborator

I had an opportunity earlier this year to have the Director for AutoCAD  software development and his team review the visibility add engine. They said there was no way to update the engine because it was based on a flaw in code that was corrected in the 2012 version. They did take a long look at my examples and asked a few questions that seemed to indicate that the idea of assigning objects to unique visibility sets is quite interesting. My takeaway was that such a feature was interesting to them but it would probably need more interest to raise it to a higher priority for future development. On the other hand, they were quite impressed with the examples I sent them. Maybe if enough people elevate such a request on the wish list it may eventually be added. Lately they have been adding new features to blocks. 

ADN CAD Developer/Operator
0 Likes
Message 40 of 41

jamel.benariba
Explorer
Explorer

Hi,

 

Thank you for your answer.

Let's see if one day we can add two or more visibility functions with AutoCAD! 

0 Likes