<?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: Help Fix Attribute Fields Association in AutoCAD Blocks in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-fix-attribute-fields-association-in-autocad-blocks/m-p/12938882#M10653</link>
    <description>&lt;P&gt;When you insert a block with fields you are correct must update the say attribute Id's, for the current block. I use this in put sum of two attributes into a 3rd attribute. A lisp looks at current block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not what I was looking for but close.&amp;nbsp;&amp;nbsp;Modify to suit. Rather than select attribute do it via tag name.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:att2 (/ obj objID area hname content units)
	(setq obj (vlax-ename-&amp;gt;vla-object (car (nentsel "\nSelect attribute "))))
	(setq objID (rtos (vla-get-objectid obj) 2 0))
	(setq atname (strcat "%&amp;lt;\\AcObjProp Object(%&amp;lt;\\_ObjId " objID "&amp;gt;%).Textstring&amp;gt;%"))
	(setq obj (vlax-ename-&amp;gt;vla-object (car (nentsel "\nSelect attribute 2 "))))
	(vlax-put obj 'Textstring atname)
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Modify to suit.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 00:44:08 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2024-08-05T00:44:08Z</dc:date>
    <item>
      <title>Help Fix Attribute Fields Association in AutoCAD Blocks</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-fix-attribute-fields-association-in-autocad-blocks/m-p/12938389#M10651</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm facing an issue with attribute blocks in AutoCAD where the fields within these attributes are incorrectly associated with data from other blocks. I need the fields to only read data from the block they are in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I have a large number of blocks affected by this problem, and manually cutting and pasting each block&amp;nbsp;individually into a new file will fix it (the bad field will appear as "####") but is not feasible due to the volume of blocks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to automate this process. Is there a script, command, or any method in AutoCAD that can help fix the associations of these attribute fields so they only read data from their own block?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or guidance would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 15:35:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-fix-attribute-fields-association-in-autocad-blocks/m-p/12938389#M10651</guid>
      <dc:creator>mmawad</dc:creator>
      <dc:date>2024-08-04T15:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help Fix Attribute Fields Association in AutoCAD Blocks</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-fix-attribute-fields-association-in-autocad-blocks/m-p/12938558#M10652</link>
      <description>&lt;P&gt;Please post a sample drawing, along with the expected results, or an explanation of what is expected.&lt;/P&gt;&lt;P&gt;I'm sure someone here can help you out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 18:49:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-fix-attribute-fields-association-in-autocad-blocks/m-p/12938558#M10652</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-08-04T18:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help Fix Attribute Fields Association in AutoCAD Blocks</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-fix-attribute-fields-association-in-autocad-blocks/m-p/12938882#M10653</link>
      <description>&lt;P&gt;When you insert a block with fields you are correct must update the say attribute Id's, for the current block. I use this in put sum of two attributes into a 3rd attribute. A lisp looks at current block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not what I was looking for but close.&amp;nbsp;&amp;nbsp;Modify to suit. Rather than select attribute do it via tag name.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:att2 (/ obj objID area hname content units)
	(setq obj (vlax-ename-&amp;gt;vla-object (car (nentsel "\nSelect attribute "))))
	(setq objID (rtos (vla-get-objectid obj) 2 0))
	(setq atname (strcat "%&amp;lt;\\AcObjProp Object(%&amp;lt;\\_ObjId " objID "&amp;gt;%).Textstring&amp;gt;%"))
	(setq obj (vlax-ename-&amp;gt;vla-object (car (nentsel "\nSelect attribute 2 "))))
	(vlax-put obj 'Textstring atname)
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Modify to suit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 00:44:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-fix-attribute-fields-association-in-autocad-blocks/m-p/12938882#M10653</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-08-05T00:44:08Z</dc:date>
    </item>
  </channel>
</rss>

