Dynamic Block to Static Block - Renamed after Visibility State

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
This post sort of follows on from an existing forum post but I wanted a new post to get some attention. The original post relates to a LISP code that turns Dynamic Blocks into Static Blocks, renamed to: STATIC_*sequential number*.
The post can found here: https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-dynamic-block-to-regular-bloc...
The above post addressed naming the new static blocks after the Dynamic Block name, followed by a sequential number (i.e.).
What I would like to achieve is the same process but with a static block name matching the visibility state (ideally with the sequential number suffix removed) of the dynamic block when the LISP is run.
I've attached the existing .lsp using the block name setup from the previous post linked above.
I have very limited LISP/VLISP experience and knowledge and have only ever done a tiny bit of basic AutoCAD scripting.
If anyone could help it would be greatly appreciated and if anyone needs any additional information of details please let me know!
Thanks in advance,
Jack