ATTOUT / ATTIN for Dynamic Blocks on Multiple Layouts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Background:
Our title block has multiple attributes, and we used a modified ATTOUT command to export attributes from multiple layouts to quickly modify them (Using the advice from https://cadtips.cadalyst.com/attributed-blocks/access-block-attributes-across-multiple-file-tabs to create the modification). After making the mass changes, we bring the attributes in using the standard ATTIN command.
Recently, we have updated our Title block to use visibility states (for a few different reasons). In doing so, the visibility states makes the title block a dynamic block.
The issue:
I attempted to use the original ATTOUT modification (from Cadalyst ) and was prompted with "No valid objects selected." in the command line. I realized this was most likely because the title block is now a dynamic block due to the visibility state and the selection set is not properly selecting the block.
Searching the forums, I found a previous post about exporting and importing dynamic block attributes, a modified Attin/Attout code by Brice Studer. ( https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attin-attout-with-dynamic-blocks/m-p...). This works great when all the dynamic block attributes are in the same space/layout.
I tried to apply the same Cadalyst tip to Brice's code, however when I change the selection, the same command line comments of "No valid objects selected." occurs when i attempt to select the title block.
Question:
Is there a way to modify Brice's code to export the attribute data for dynamic blocks across multiple layouts/spaces by only selecting one block? If not is there another way, that is almost as quick as ATTOUT and ATTIN, to modify attributes values for a title block across multiple layouts in a drawing?
I have just started to learn how to deal with dynamic blocks in LISP/coding and sometimes it feels like they are more trouble than they are worth.