<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b in Dynamic Blocks Forum</title>
    <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577449#M16487</link>
    <description>&lt;P&gt;I don't see a way to update the block without losing all the existing fields.&amp;nbsp; In the 'unupdated' version, if you run ATTSYNC before any other changes, the links are all lost and ATTSYNC must be used to add attributes to the block.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2019 16:35:36 GMT</pubDate>
    <dc:creator>Libbya</dc:creator>
    <dc:date>2019-02-06T16:35:36Z</dc:date>
    <item>
      <title>Text Fields unlinking from Dynamic Block when adding new attributes to the block</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577269#M16484</link>
      <description>&lt;P&gt;I created a block (picture attached) added attributes to it and then linked those attributes to a few text fields (picture attached). I needed to add a few new attributes to the block. So i opened the block and defined two new attributes. saved the block and then closed it. I clicked manage attributes and synced the new attributes I added and they updated and showed on the drawing (picture not attached, only able to attached three pictures). They I regened the drawing and all the text fields unlinked (picture attached).&lt;BR /&gt;&lt;BR /&gt;Any idea why this happened and how to fix it? I'd hate to have to link every text field again. That is so time consuming.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:42:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577269#M16484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-06T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577301#M16485</link>
      <description>&lt;P&gt;A posted file is worth 1,000 posted images.&amp;nbsp; Post the file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577301#M16485</guid>
      <dc:creator>Libbya</dc:creator>
      <dc:date>2019-02-06T15:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577355#M16486</link>
      <description>&lt;P&gt;I attached a file of both, pre and post attribute update issue.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 16:10:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577355#M16486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-06T16:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577449#M16487</link>
      <description>&lt;P&gt;I don't see a way to update the block without losing all the existing fields.&amp;nbsp; In the 'unupdated' version, if you run ATTSYNC before any other changes, the links are all lost and ATTSYNC must be used to add attributes to the block.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 16:35:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577449#M16487</guid>
      <dc:creator>Libbya</dc:creator>
      <dc:date>2019-02-06T16:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577551#M16488</link>
      <description>&lt;P&gt;Is it just me, or doesn't it seem ridiculous that if I add anything to my block it un-syncs all the text fields? I didn't change any of the previous attributes that were linked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:06:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577551#M16488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-06T17:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577592#M16489</link>
      <description>&lt;P&gt;All I can think of is to not run ATTSYNC after adding the new attribute, insert the block again based on the updated block definition and run a lisp to match the attribute values from the old inserted block to the new one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lisp below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;; matchblocks.lsp&lt;BR /&gt;;;&lt;BR /&gt;;;&lt;BR /&gt;(princ "\nType MB to Run")&lt;BR /&gt;(defun C:MB (/)&lt;BR /&gt;(setq baselist (list)) &lt;BR /&gt;(setq ename (car (entsel "\nSelect Base Block:")))&lt;BR /&gt;(while (= ename nil)&lt;BR /&gt;(princ "\nNothing Picked")&lt;BR /&gt;(setq ename (car (entsel "\nSelect Base Block:")))&lt;BR /&gt;);end while&lt;BR /&gt;(setq ename1 (car (entsel "\nSelect Block To Apply Changes:")))&lt;BR /&gt;(while (= ename1 nil)&lt;BR /&gt;(princ "\nNothing Picked")&lt;BR /&gt;(setq ename1 (car (entsel "\nSelect Block To Apply Changes:")))&lt;BR /&gt;);end while&lt;BR /&gt;(setq ename (entnext ename))&lt;BR /&gt;(setq elist (entget ename)) ;the entity list of the base border&lt;BR /&gt;(setq etype (cdr (assoc 0 elist))) ;should be attrib&lt;BR /&gt;(while (= etype "ATTRIB") ;puts all the attribute in a list&lt;BR /&gt;(setq tag (cdr (assoc 2 elist))) ;the attribute tag&lt;BR /&gt;(setq val (cdr (assoc 1 elist)));the attribute value&lt;BR /&gt;(setq baselist (append (list (list tag val)) baselist));put the attribute in list&lt;BR /&gt;(setq ename (entnext ename)) ;move onto the next attribute&lt;BR /&gt;(setq elist (entget ename))&lt;BR /&gt;(setq etype (cdr (assoc 0 elist)))&lt;BR /&gt;);end while&lt;BR /&gt;(setq ename1 (entnext ename1)) ;get the next entity, should be "ATTRIB"&lt;BR /&gt;(setq elist1 (entget ename1)) ;the entity list of the border&lt;BR /&gt;(setq etype1 (cdr (assoc 0 elist1))) ;should be attrib&lt;BR /&gt;(while (= etype1 "ATTRIB")&lt;BR /&gt;(setq attval nil)&lt;BR /&gt;(setq tag (cdr (assoc 2 elist1)));the attribute tag&lt;BR /&gt;(foreach item baselist&lt;BR /&gt;(if (= tag (nth 0 item))&lt;BR /&gt;(progn &lt;BR /&gt;(setq attval (nth 1 item))&lt;BR /&gt;);end then&lt;BR /&gt;(progn);else do nothing go to next in list till tag matches&lt;BR /&gt;);end if&lt;BR /&gt;);end foreach&lt;BR /&gt;(if (/= attval nil)&lt;BR /&gt;(progn (setq elist1 (subst (cons 1 attval) (assoc 1 elist1) elist1))&lt;BR /&gt;(entmod elist1));end then&lt;BR /&gt;(progn);end else&lt;BR /&gt;);end if&lt;BR /&gt;(setq ename1 (entnext ename1)) ;move onto the next attribute&lt;BR /&gt;(setq elist1 (entget ename1))&lt;BR /&gt;(setq etype1 (cdr (assoc 0 elist1)))&lt;BR /&gt;);end while&lt;BR /&gt;(command "REGEN")&lt;BR /&gt;);end defun&lt;BR /&gt;(princ)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:19:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577592#M16489</guid>
      <dc:creator>MMcCall402</dc:creator>
      <dc:date>2019-02-06T17:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577593#M16490</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is it just me, or doesn't it seem ridiculous that if I add anything to my block it un-syncs all the text fields? I didn't change any of the previous attributes that were linked.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;To be clear, editing a block and adding attributes does not unlink fields that are referencing attributes in that block.&amp;nbsp; You must have done something to edit the block definition even on the 'unupdated' version prior to saving it.&amp;nbsp; That version already has busted links, they just don't show up until you do an attsync and a regen.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:22:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577593#M16490</guid>
      <dc:creator>Libbya</dc:creator>
      <dc:date>2019-02-06T17:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577599#M16491</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3215587"&gt;@MMcCall402&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;All I can think of is to not run ATTSYNC after adding the new attribute, insert the block again based on the updated block definition and run a lisp to match the attribute values from the old inserted block to the new one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't see how that would possibly work.&amp;nbsp; The file uses a bunch of object fields within mtext referencing attributes within the block.&amp;nbsp; If you replace the block, the links will definitely all be broken.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:21:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577599#M16491</guid>
      <dc:creator>Libbya</dc:creator>
      <dc:date>2019-02-06T17:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577627#M16492</link>
      <description>&lt;P&gt;I may have misread the situation. It appeared like the attribute field values were linked to the mtext after they were inserted into the drawing.&amp;nbsp; Running ATTSYNC would bring in the new attributes but at the cost of resetting all the attribute values back to their original values.&amp;nbsp; Inserting a new block would use the current block definition with the new attributes.&amp;nbsp; The lisp would transfer the edited attribute values from the old inserted block to the new one.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:30:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577627#M16492</guid>
      <dc:creator>MMcCall402</dc:creator>
      <dc:date>2019-02-06T17:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577695#M16493</link>
      <description>&lt;P&gt;Yeah, the opposite is the case.&amp;nbsp; The mtext contains the fields referencing the attribute values, not the attribute values containing fields referencing mtext.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FWIW, ATTSYNC does not reset existing attribute values back to their default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that the broken fields are a result of having multiple attributes with the same tag in the block.&amp;nbsp; When attsync is run in that situation, all links are broken.&amp;nbsp; All tags should be unique and it is no surprise that it causes issues.&amp;nbsp; See the following screencast.&amp;nbsp; In it you can clearly see that I link an mtext field to a block attribute.&amp;nbsp; I then edit the attribute and update the field - works fine.&amp;nbsp; I then run attsync -field still works fine.&amp;nbsp; I then add another attribute with a unique tag, run attsync - mtext field still works fine.&amp;nbsp; Edit linked attribute value - field still works.&amp;nbsp; Add a couple attributes that have the same tag - BROKEN LINK!&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's just another of the many stories with the same moral - ALWAYS use unique tags for each attributes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/c1d35db4-e485-4756-97cb-db1b8a653820" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:52:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577695#M16493</guid>
      <dc:creator>Libbya</dc:creator>
      <dc:date>2019-02-06T17:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577710#M16494</link>
      <description>The tags with same names might be the issue. I'll test it out. This block&lt;BR /&gt;was created a while ago by another employee. I'm just trying to update the&lt;BR /&gt;file to new standards.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:58:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577710#M16494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-06T17:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577727#M16495</link>
      <description>&lt;P&gt;You should always use unique tags, but editing the attribute tags to all be unique at this point will not remedy the broken links.&amp;nbsp; I do not believe there is a remedy for the current file other than relinking each field.&amp;nbsp; I would make all tags unique first, though, so adding attributes in the future does not break all the links again.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 18:03:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577727#M16495</guid>
      <dc:creator>Libbya</dc:creator>
      <dc:date>2019-02-06T18:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Text Fields unlinking from Dynamic Block when adding new attributes to the b</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577878#M16496</link>
      <description>Thanks for the info. The ones I personally created are all unique so I&lt;BR /&gt;should run into that issue. It looks like I just need to put my head down&lt;BR /&gt;and update all the fields. Fun time await!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2019 18:45:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/text-fields-unlinking-from-dynamic-block-when-adding-new/m-p/8577878#M16496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-06T18:45:57Z</dc:date>
    </item>
  </channel>
</rss>

