Dynamic Blocks: Objects/Actions/Parameters hidden in all visibility states.

Dynamic Blocks: Objects/Actions/Parameters hidden in all visibility states.

dbroad
Mentor Mentor
449 Views
1 Reply
Message 1 of 2

Dynamic Blocks: Objects/Actions/Parameters hidden in all visibility states.

dbroad
Mentor
Mentor

When editing a dynamic block, I noticed that there were still objects visible when BVMODE=1 that weren't visible in any visibility state.  Has anyone come up with a lisp to do any of the following?

1)Return a list of either activeX objects, entities, parameters, and/or actions that are invisible in all visibility states.

2)Create a new visibility state with only those objects.

3)Delete those objects .

4)Purge those objects from the drawing in a systematic fashion.

Architect, Registered NC, VA, SC, & GA.
0 Likes
450 Views
1 Reply
Reply (1)
Message 2 of 2

rapidcad
Collaborator
Collaborator

Hi Doug, sorry to take so long to reply but I was away form home last week (trying to forget CAD for a while). 😉  Anyway, I have used a wonderful lisp program for over a decade now that can create multiple visibility parameters (not just states) written by the late Andrey Lazebny. This lisp program fully works on AutoCAD 2011 but only some functions continue to work in newer AutoCAD. I continue to maintain a computer with AutoCAD 2011 on it just so I can maintain the blocks I have built with it, and also to create new blocks as well. I bring this up because Andrey had discovered enough of the structure of the dynamic block object model to add the additional visibility parameters. He  wrote a rather whimsical article about it called "Mysteries of Autodesk's Caves"  and posted the code to create the blocks. 

I have asked some of the guys on The Swamp to have a look at Andrey's edited code to see if they could identify exactly goes wrong in the newer versions of AutoCAD but nobody has ever taken up the challenge (or reported what they found).  I was able to verify that the code still worked in AutoCAD 2020 but I cannot figure out what what the difference is when it returns different sets of data at a certain point. 

 

Here is a link to my Swamp post where I detail what I know about it. There are links in my post about the original code. You can also google "Mysteries of Autodesk's Caves" to see the article Andrey wrote (in rather whimsical form) but I hesitate to share an old link these days to a Russian domain not knowing how secure they may be anymore. You could try Googling it and look into the cached links if you think that helps.

 

I think what you are after was discussed by Andrey in his article and is manipulated in the program I use (and posted in my link).

 

HTH

ADN CAD Developer/Operator
0 Likes