<?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: Script for Block with Multiple Attribute into Single Attribute Retaining Data in Dynamic Blocks Forum</title>
    <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/script-for-block-with-multiple-attribute-into-single-attribute/m-p/9801693#M11455</link>
    <description>&lt;P&gt;You can try &lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_blank" rel="noopener"&gt;ALTEXT&lt;/A&gt; to combine multiple attributes into 1.&lt;/P&gt;
&lt;P&gt;Original block has 3 attributes:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT 1-1.JPG" style="width: 481px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831112i257CAE3F7D25E25F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT 1-1.JPG" alt="ALTEXT 1-1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1. Save the code below as a *lsp file.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;;; This is an example formula for ALTEXT.vlx
;;; It combines Attribute 1 ~ Attribute 3 with symbols ":" and "-".
(defun ALTEXT_FORMULA ()
  (strcat ALTEXT_ATT_1 ":"  ALTEXT_ATT_2 "-" ALTEXT_ATT_3)
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 2. Use ALTEXT to select blocks and change the first attribute value. Select "Formula" and pick up the lsp file in Step 1 as the formula.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT 1-2.JPG" style="width: 954px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831115i48B88678A44DA507/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT 1-2.JPG" alt="ALTEXT 1-2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 3. Result of Step 2. Attribute No. 1 combined the value of all 3 attributes.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT 1-3.JPG" style="width: 471px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831119i2837CD4642073526/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT 1-3.JPG" alt="ALTEXT 1-3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 4. Delete the other 2 attribute definition in the block editor. Then use BATTMAN to synchronize the block inserts in the drawing.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT 1-4.JPG" style="width: 468px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831118iC4CEDE71666F95CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT 1-4.JPG" alt="ALTEXT 1-4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 5. Final result.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT 1-5.JPG" style="width: 483px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831120i7AD3D14B8C45BEF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT 1-5.JPG" alt="ALTEXT 1-5.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 07:54:50 GMT</pubDate>
    <dc:creator>3wood</dc:creator>
    <dc:date>2020-10-14T07:54:50Z</dc:date>
    <item>
      <title>Script for Block with Multiple Attribute into Single Attribute Retaining Data</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/script-for-block-with-multiple-attribute-into-single-attribute/m-p/9800772#M11453</link>
      <description>&lt;P&gt;We did a project for a customer that involved taking 30 floors of information, taking text, making it a dynamic block and giving it attributes. After we gave them 3 attributes, pertaining to 3 separate items they liked it and we went about doing this for 30 floors, each floor has 4 different blocks, maybe 40 inserts per floor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the customer was delivered CAD files, they sent it to their customer who now just wants 1 attribute per block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to convert a multiple attribute block to a single attribute block while retaining the information stored in the block?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per the example, Node, Network and Link are to be combined into 1 attribute and need to keep the same xx:xxx-xx&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 18:26:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/script-for-block-with-multiple-attribute-into-single-attribute/m-p/9800772#M11453</guid>
      <dc:creator>VinnieESPOENG</dc:creator>
      <dc:date>2020-10-13T18:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script for Block with Multiple Attribute into Single Attribute Retaining Data</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/script-for-block-with-multiple-attribute-into-single-attribute/m-p/9800813#M11454</link>
      <description>&lt;P&gt;I'm not sure of a script and if that is specifically what you are after, then you should ask on one of the Customization forums.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following screencast shows a way to combine the values of the existing attributes into the value of a single attribute using fields.&amp;nbsp; If the block definition is edited in that manner and then attsync run on a file, then all blocks would update accordingly in that file.&amp;nbsp; Redefine could be used on each file.&amp;nbsp; That alone might be good enough to satisfy the client.&amp;nbsp; If not then I imagine that code could be run (again ask on a customization forum) to do a batch conversion of fields to text.&amp;nbsp; After the fields are converted to text, the prior attributes individual attributes could be deleted with the end result being a single attribute per block that retains the combined value of the three attributes.&amp;nbsp; Hopefully that helps you toward a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 110.9375%;"&gt;&lt;IFRAME width="640" height="710" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/bd7feeba-802b-4b44-beb9-1d2c150e7ffd" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Oct 2020 18:42:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/script-for-block-with-multiple-attribute-into-single-attribute/m-p/9800813#M11454</guid>
      <dc:creator>Libbya</dc:creator>
      <dc:date>2020-10-13T18:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script for Block with Multiple Attribute into Single Attribute Retaining Data</title>
      <link>https://forums.autodesk.com/t5/dynamic-blocks-forum/script-for-block-with-multiple-attribute-into-single-attribute/m-p/9801693#M11455</link>
      <description>&lt;P&gt;You can try &lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_blank" rel="noopener"&gt;ALTEXT&lt;/A&gt; to combine multiple attributes into 1.&lt;/P&gt;
&lt;P&gt;Original block has 3 attributes:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT 1-1.JPG" style="width: 481px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831112i257CAE3F7D25E25F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT 1-1.JPG" alt="ALTEXT 1-1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1. Save the code below as a *lsp file.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;;; This is an example formula for ALTEXT.vlx
;;; It combines Attribute 1 ~ Attribute 3 with symbols ":" and "-".
(defun ALTEXT_FORMULA ()
  (strcat ALTEXT_ATT_1 ":"  ALTEXT_ATT_2 "-" ALTEXT_ATT_3)
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 2. Use ALTEXT to select blocks and change the first attribute value. Select "Formula" and pick up the lsp file in Step 1 as the formula.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT 1-2.JPG" style="width: 954px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831115i48B88678A44DA507/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT 1-2.JPG" alt="ALTEXT 1-2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 3. Result of Step 2. Attribute No. 1 combined the value of all 3 attributes.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT 1-3.JPG" style="width: 471px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831119i2837CD4642073526/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT 1-3.JPG" alt="ALTEXT 1-3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 4. Delete the other 2 attribute definition in the block editor. Then use BATTMAN to synchronize the block inserts in the drawing.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT 1-4.JPG" style="width: 468px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831118iC4CEDE71666F95CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT 1-4.JPG" alt="ALTEXT 1-4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 5. Final result.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT 1-5.JPG" style="width: 483px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831120i7AD3D14B8C45BEF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT 1-5.JPG" alt="ALTEXT 1-5.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 07:54:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/dynamic-blocks-forum/script-for-block-with-multiple-attribute-into-single-attribute/m-p/9801693#M11455</guid>
      <dc:creator>3wood</dc:creator>
      <dc:date>2020-10-14T07:54:50Z</dc:date>
    </item>
  </channel>
</rss>

