<?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: Using lisp to insert block with attribute then change the value of the attribute (PROBLEM) in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697841#M53792</link>
    <description>Thank you, it worked!</description>
    <pubDate>Tue, 19 Oct 2021 09:01:37 GMT</pubDate>
    <dc:creator>Kevin.Soares.Coutinho</dc:creator>
    <dc:date>2021-10-19T09:01:37Z</dc:date>
    <item>
      <title>Using lisp to insert block with attribute then change the value of the attribute (PROBLEM)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697158#M53788</link>
      <description>&lt;P&gt;I'm facing a problem with an autolisp code, that used to work just fine before changing my computer, the line of code is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(command "-insert" "C:/Users/Kevin/Documents/AutoCAD/block.dwg" "s" "1" "0,0" "0" VARIABLE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This command inserts a specific block from a directory, then set the scale to 1, the position to 0,0, the rotation to 0 and then sets the value of the attribute to the value contained in the variable, the problem is that after changing my computer, i cannot change the value of the attribute like this anymore, everytime i run this line, after placing the block, a window open asking me to input the value of the attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is probably a problem about the configuration, not the code, since it was working just fine after changing my computer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 00:47:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697158#M53788</guid>
      <dc:creator>Kevin.Soares.Coutinho</dc:creator>
      <dc:date>2021-10-19T00:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using lisp to insert block with attribute then change the value of the attribute (PROBLEM)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697224#M53789</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;the problem is that after changing my computer, i cannot change the value of the attribute like this anymore, every time I run this line, after placing the block, a window open asking me to input the value of the attribute.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Check this link about variable &lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2021/ENU/AutoCAD-Core/files/GUID-DD7AE7D3-D9D7-49E7-948E-079D8451FFA2-htm.html" target="_blank" rel="noopener"&gt;ATTDIA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Run same name command and set it to 0&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 01:52:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697224#M53789</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-10-19T01:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using lisp to insert block with attribute then change the value of the attribute (PROBLEM)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697370#M53790</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9270389"&gt;@Kevin.Soares.Coutinho&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm facing a problem with an autolisp code, that used to work just fine ..&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ensure ATTREQ is 1 and ATTIDA is 0 by including this line on the lisp code&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(setq atr (getvar 'Attreq) atd (getvar 'Attdia))
(setvar 'Attreq 1)
(setvar 'Attdia 0)
...
(command "-insert" "block" "s" "1" "0,0" "0" VARIABLE)
...
(setvar 'Attreq atr)
(setvar 'Attdia atd)&lt;/LI-CODE&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 03:54:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697370#M53790</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-10-19T03:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using lisp to insert block with attribute then change the value of the attribute (PROBLEM)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697838#M53791</link>
      <description>Thank you, it worked!</description>
      <pubDate>Tue, 19 Oct 2021 09:01:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697838#M53791</guid>
      <dc:creator>Kevin.Soares.Coutinho</dc:creator>
      <dc:date>2021-10-19T09:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using lisp to insert block with attribute then change the value of the attribute (PROBLEM)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697841#M53792</link>
      <description>Thank you, it worked!</description>
      <pubDate>Tue, 19 Oct 2021 09:01:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-lisp-to-insert-block-with-attribute-then-change-the-value/m-p/10697841#M53792</guid>
      <dc:creator>Kevin.Soares.Coutinho</dc:creator>
      <dc:date>2021-10-19T09:01:37Z</dc:date>
    </item>
  </channel>
</rss>

