adding a attribute to an existing dynamic block

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I ran into a strange problem with an attribute in a dynamic block. First I made a dynamic block, containing lines, a (symbol) block, text and text with fields. After defining, I added a single attribute. Using attsync, the block works fine in that drawing. I WBLOCK the block to the BIB-directory.
Now, when I insert the block in a new drawing, it comes with the attribute, working fine. BUT: when I use a LISP-routine to insert the block, it comes with the block without the attribute. In the LISP-routine there's no path or whatsoever for the block. When the block isn't already inserted, the LISP-routine shows me the message "Block 'a-glas' not found in this drawing...". When the block (including the attribute) is already inserted in the drawing, the LISP returns the block without the attribute.
Even more weird: In the same drawing, when I doubleclick the attributed block, it comes up with the attribute editor, when I doubleclick the block without the attribute, it comes up with the edit block definition pop-up. When I type ATTSYNC, AutoCAD gives me the message: "This drawing contains no attributed blocks."
I now have the attributed block added to my drawing template, but this makes no difference. The block in itself works fine. When inserted using the LISP-routine, it again comes without the attribute.
For a better understanding, I added a screenshot (showing the blocks and the prop-manager), the LISP I use and the drawing with the two 'identical' blocks.
Any thoughts (other than not using the LISP-routine anymore....)?