Lisp to turn off dynamic block property display in properties palette?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all, I'm trying to write a utility so that I can automate a change to several hundred dynamic block definitions.
Here's my goal:
I have a dynamic block library of around 240 dynamic blocks which have certain standardized dynamic block properties.
We are discontinuing 3 of the properties so my goal is to hide them from displaying in the properties palette (not delete them entirely). This is easily done in the block editor by opening the Parameters Manager and selecting the show column and toggling the value for the property in question from Yes to No. Of course, that would take about half a day for all those blocks.
So, I'm trying to write something to automate this process - either by working on a selection set in a drawing that I would insert them all into, or by opening them from the drive folder one by one in the block editor and accessing the properties there (seems harder, but maybe not).
I’d like to search for the property names in question, (they are not in each block, sometimes two are, sometimes only one, occasionally neither) if they are found, change the Show value to :vlax-false. This could be done by cycling through the various properties until a name is matched and then change the value. I have most of the functions written to cycle through properties and search for specific names and set different values, but this isn’t value setting, it is the Show property that needs setting…
Does anyone know the proper vla-put that will do this? I was hoping vla-put-show would work but it is not a defined function.
So I tried (vlax-put oSBReferenceProperty "Show" :vlax-false ) but this also is a FAIL. Does anyone know how is this method called?
vla-get-show works but vla-put-show, not so much...
Any help greatly appreciated..