<?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: Lisp to change attribute of block in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468738#M113145</link>
    <description>&lt;P&gt;Is there any way to do it without vl-load-com? I also tried to edit the code so its not asking for a bunch of stuff. The only thing having to be entered will be the starting number. Please let me see the revised code when you're done. Thank you.&lt;/P&gt;&lt;PRE&gt;(defun c:NumTag ( / num blk )

  (vl-load-com)


  (initget 7)
  (setq num (getint "\nSpecify starting number of attribute : "))
  (while
    (vl-cmdf "_.-INSERT" UtilityTag "")
    (while (&amp;lt; 0 (getvar 'cmdactive)) (vl-cmdf "\\"))
    (setq blk (entlast))
    (foreach att (vlax-invoke (vlax-ename-&amp;gt;vla-object blk) 'getattributes)
      (if (= (vla-get-tagstring att) Number)
        (vla-put-textstring att (itoa num))
      )
    )
    (setq num (1+ num))
  )
  (princ)
)&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 Oct 2017 20:36:57 GMT</pubDate>
    <dc:creator>christianbaileypaulsen1</dc:creator>
    <dc:date>2017-10-17T20:36:57Z</dc:date>
    <item>
      <title>Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7467616#M113140</link>
      <description>&lt;P&gt;I have a block that has a attribute "number." When putting in this block it gets really only having to go back and number each one of them 1 by 1. Is there any way to make a lisp that inserts this block and automatically changes the number by +1 every time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(setq startnumber getint("Enter starting number")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for (a=startnumber,1&amp;gt;999,a+1)&lt;/P&gt;&lt;P&gt;(InsertBlock "Utility tag" Number=a)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that inst proper syntax but i hope it can give a bit of an idea of what im trying to accomplish. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:18:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7467616#M113140</guid>
      <dc:creator>christianbaileypaulsen1</dc:creator>
      <dc:date>2017-10-17T15:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7467726#M113141</link>
      <description>&lt;P&gt;&lt;A href="http://www.lee-mac.com/numinc.html" target="_blank"&gt;http://www.lee-mac.com/numinc.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:41:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7467726#M113141</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2017-10-17T15:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468091#M113142</link>
      <description>&lt;P&gt;Will these insertions all be made in the same session, or do you want to be able to continue in another session (of the same drawing)?&amp;nbsp; Meaning that if you start with 1 and make 100 insertions, then save and close the drawing, do you want to continue the numbering at 101 at a later time?&amp;nbsp; What if say the last 5 insertions were erased... do you want to continue from the highest number remaining in the drawing?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 17:22:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468091#M113142</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-10-17T17:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468113#M113143</link>
      <description>&lt;P&gt;I want to be able to start from any number. Thats why in my example i put in the get integer for a variable called startnumber. We use all numbers from 0-999. 100-200 is electrical, 200-300 is rigging, 300-400 is network, 400-500 is water, 500-600 is data, 600-700 is points, and the rest are for overflow if theres too much in one group. So i need to set a starting number depending on what is being used, also incase i exited the command and needed to continue where i left off.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 17:30:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468113#M113143</guid>
      <dc:creator>christianbaileypaulsen1</dc:creator>
      <dc:date>2017-10-17T17:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468258#M113144</link>
      <description>&lt;PRE&gt;(defun c:blkincins ( / blkn num tag blk )

  (vl-load-com)

  (setq blkn (getstring "\nSpecify block name to insert and increment its attribute : "))
  (initget 7)
  (setq num (getint "\nSpecify starting number of attribute : "))
  (setq tag (strcase (getstring "\nSpecify TAG name : ")))
  (while (getstring "\nENTER TO CONTINUE... ESC TO FINISH...")
    (vl-cmdf "_.-INSERT" blkn "")
    (while (&amp;lt; 0 (getvar 'cmdactive)) (vl-cmdf "\\"))
    (setq blk (entlast))
    (foreach att (vlax-invoke (vlax-ename-&amp;gt;vla-object blk) 'getattributes)
      (if (= (vla-get-tagstring att) tag)
        (vla-put-textstring att (itoa num))
      )
    )
    (setq num (1+ num))
  )
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2017 18:12:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468258#M113144</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2017-10-17T18:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468738#M113145</link>
      <description>&lt;P&gt;Is there any way to do it without vl-load-com? I also tried to edit the code so its not asking for a bunch of stuff. The only thing having to be entered will be the starting number. Please let me see the revised code when you're done. Thank you.&lt;/P&gt;&lt;PRE&gt;(defun c:NumTag ( / num blk )

  (vl-load-com)


  (initget 7)
  (setq num (getint "\nSpecify starting number of attribute : "))
  (while
    (vl-cmdf "_.-INSERT" UtilityTag "")
    (while (&amp;lt; 0 (getvar 'cmdactive)) (vl-cmdf "\\"))
    (setq blk (entlast))
    (foreach att (vlax-invoke (vlax-ename-&amp;gt;vla-object blk) 'getattributes)
      (if (= (vla-get-tagstring att) Number)
        (vla-put-textstring att (itoa num))
      )
    )
    (setq num (1+ num))
  )
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2017 20:36:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468738#M113145</guid>
      <dc:creator>christianbaileypaulsen1</dc:creator>
      <dc:date>2017-10-17T20:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468817#M113146</link>
      <description>&lt;P&gt;If you don't want to use vl-load-com you could try&amp;nbsp;something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(command "._attedit" "_N" "_N" "Title Block" "REV" "*" "Rev" num)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just change:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Title Block to whatever the name of the block you are using&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - REV&amp;nbsp; to the attribute name being changed&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Rev to what is currently in that attribute (default)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 20:58:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468817#M113146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T20:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468884#M113147</link>
      <description>&lt;P&gt;This is just something that will be used by people other than myself and i dont know if they would be on a MAC or not. So using non windows specific commands would be preferred.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 21:20:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468884#M113147</guid>
      <dc:creator>christianbaileypaulsen1</dc:creator>
      <dc:date>2017-10-17T21:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468892#M113148</link>
      <description>&lt;P&gt;There are various things around to do that -- &lt;A href="http://cadtips.cadalyst.com/attributed-blocks/incrementing-attribute-values-blocks" target="_blank"&gt;here&lt;/A&gt; is another possibility [I haven't tried it], and I think there are others just on that Cadalyst CAD Tips site [including Lee Mac's "numinc" one linked to in another Post here].&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 21:23:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7468892#M113148</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-10-17T21:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7470350#M113149</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4892295"&gt;@christianbaileypaulsen1&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Is there any way to do it without vl-load-com? I also tried to edit the code so its not asking for a bunch of stuff. The only thing having to be entered will be the starting number. Please let me see the revised code when you're done. Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, it was late yesterday and I went to sleep... Here is vanilla version, but you must modify it also to avoid not needed block name and TAG name inputs... I wrote it more generally so I left those inputs...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:blkincins ( / blkn num tag blk att )
  (setq blkn (getstring t "\nSpecify block name to insert and increment its attribute : "))
  (setq tag (strcase (getstring "\nSpecify TAG name : ")))
  (initget 7)
  (setq num (getint "\nSpecify starting number of attribute : "))
  (if (and (snvalid blkn) (snvalid tag))
    (while (getstring "\nENTER TO CONTINUE... ESC TO FINISH...")
      (vl-cmdf "_.-INSERT" blkn "")
      (while (&amp;lt; 0 (getvar 'cmdactive)) (vl-cmdf "\\"))
      (setq blk (entlast))
      (setq att (entnext blk))
      (while att
        (if (= (cdr (assoc 0 (entget att))) "ATTRIB")
          (if (= (cdr (assoc 2 (entget att))) tag)
            (entupd (cdr (assoc -1 (entmod (subst (cons 1 (itoa num)) (assoc 1 (entget att)) (entget att))))))
          )
        )
        (setq att (entnext att))
      )
      (setq num (1+ num))
    )
    (prompt "\nSpecified block name or TAG name invalid... Restart routine next time with valid string inputs...")
  )
  (princ)
)&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 11:42:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7470350#M113149</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2017-10-18T11:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471114#M113150</link>
      <description>&lt;P&gt;So after trying to adjust it so that i dont have to put in the block name and attribute name, the lisp ended up not working any more. When the lisp was working i had an issue with the fact that it would ask for a scale of the block and rotation. The scale will always be 1 and rotation will always be 0. Here is the code i came up with. Please let me know a way to fix it.&lt;/P&gt;&lt;PRE&gt;(defun c:UtilityNumber ( / num blk att )
  (setq num (getint "\nSpecify starting number : "))
  (while (T = T)
      (command "_.-INSERT" UtilityTag 1 1 0)
      (setq blk (entlast))
      (setq blk (entnext blk))
      (while blk
        (if (= (cdr (assoc 0 (entget blk))) "ATTRIB")
          (if (= (cdr (assoc 2 (entget blk))) Number)
            (entupd (cdr (assoc -1 (entmod (subst (cons 1 (itoa num)) (assoc 1 (entget blk)) (entget blk))))))
          )
        )
      )
      (setq num (1+ num))
    )
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:10:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471114#M113150</guid>
      <dc:creator>christianbaileypaulsen1</dc:creator>
      <dc:date>2017-10-18T15:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471434#M113151</link>
      <description>&lt;P&gt;Does this work for you ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:UtilityNumber ( / num blk att )
  (initget 7)
  (setq num (getint "\nSpecify starting number of attribute : "))
  (while (getstring "\nENTER TO CONTINUE... ESC TO FINISH...")
    (command "_.-INSERT" UtilityTag 1 1 0)
    (setq blk (entlast))
    (setq att (entnext blk))
    (while att
      (if (= (cdr (assoc 0 (entget att))) "ATTRIB")
        (if (= (cdr (assoc 2 (entget att))) "NUMBER")
          (entupd (cdr (assoc -1 (entmod (subst (cons 1 (itoa num)) (assoc 1 (entget att)) (entget att))))))
        )
      )
      (setq att (entnext att))
    )
    (setq num (1+ num))
  )
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 16:39:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471434#M113151</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2017-10-18T16:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471914#M113152</link>
      <description>&lt;P&gt;No. I had to insert the Utility tag block somehwere in the drawing so that it exists in my file. But the command you gave me just increases the number attribute of the block thats already in the drawing. Also is there a way to not have to click enter between each insertion, so that i can just left click the insertion points without a pause to press enter every time?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:41:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471914#M113152</guid>
      <dc:creator>christianbaileypaulsen1</dc:creator>
      <dc:date>2017-10-18T18:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471946#M113153</link>
      <description>&lt;P&gt;Sorry, I've pasted your line as i thought it worked for you well... The problem is this line :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(command "_.-INSERT" UtilityTag 1 1 0)&lt;/PRE&gt;
&lt;P&gt;I think you should do it this way :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(command "_.-INSERT" UtilityTag "" "\\" 1 1 0)&lt;BR /&gt;(while (&amp;lt; 0 (getvar 'cmdactive)) (command ""))&lt;/PRE&gt;
&lt;P&gt;With this mod, you should be able to pick insertion point where you want to place your block... The next (while ... ) line is to ensure INSERT command is finished correctly as you should provide attributes strings specifications after (command "_.-INSERT" UtilityTag "" "\\" 1 1 0 ...)... Note that "\\" character token is actually replacement of pause token, but it's better written this way as you don't need to worry about things like assignations of some value to possible pause variable if token is used that way... &lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:57:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471946#M113153</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2017-10-18T18:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471962#M113154</link>
      <description>&lt;P&gt;And no, you have to press enter key each time you want to insert, as while loop will be not possible to cancel if specified t argument for infinite loop...&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 19:01:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471962#M113154</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2017-10-18T19:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471990#M113155</link>
      <description>&lt;P&gt;Command: UTILITYNUMBER&lt;BR /&gt;Specify starting number of attribute : 400&lt;BR /&gt;ENTER TO CONTINUE... ESC TO FINISH... Unknown command "UTILITYNUMBER". Press F1 for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting this error and it still doesnt insert a new block, just changes the number on the old block.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 19:11:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7471990#M113155</guid>
      <dc:creator>christianbaileypaulsen1</dc:creator>
      <dc:date>2017-10-18T19:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7472038#M113156</link>
      <description>Are you sure variable UtilityTag is defined as string... According to your previous codes you seem that you forget to slecify quottes and you assume that this is string... CAD recognizes those tokens as variables that have values assigned and not token strings... So I suppose that you have to sppecify token as "UtilityTag" and not just UtilityTag as CAD will see that as some variable and not block name&lt;BR /&gt;...&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Oct 2017 19:31:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7472038#M113156</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2017-10-18T19:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7472039#M113157</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4892295"&gt;@christianbaileypaulsen1&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;PRE&gt;....
  (while (T = T)
      (command "_.-INSERT" UtilityTag 1 1 0)
....&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That one has no designation for the&amp;nbsp;insertion point, and &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt;'s in Post 14:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(command "_.-INSERT" UtilityTag &lt;FONT color="#ff0000"&gt;""&lt;/FONT&gt; "\\" 1 1 0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;has an &lt;FONT color="#ff0000"&gt;extraneous Enter&lt;/FONT&gt; between the Block name and the insertion-point pause.&amp;nbsp; Compromise between the two would be in order....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 19:31:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7472039#M113157</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-10-18T19:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7474907#M113158</link>
      <description>&lt;P&gt;So "" means enter? And "\\" means what?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 16:21:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7474907#M113158</guid>
      <dc:creator>christianbaileypaulsen1</dc:creator>
      <dc:date>2017-10-19T16:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change attribute of block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7474953#M113159</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4892295"&gt;@christianbaileypaulsen1&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;So "" means enter? And "\\" means what?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, an empty text string [&lt;FONT color="#0000ff"&gt;""&lt;/FONT&gt;]&amp;nbsp;is &lt;FONT color="#0000ff"&gt;Enter&lt;/FONT&gt; in AutoLisp functions.&amp;nbsp; &lt;FONT color="#ff00ff"&gt;"\\"&lt;/FONT&gt; is equivalent to \ in a command macro, and is a pause for User input [in this case for the insertion point].&amp;nbsp; As &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt;&amp;nbsp;mentioned in Post 14, that could be the explicit symbol&amp;nbsp;&lt;FONT color="#ff00ff"&gt;pause&lt;/FONT&gt;&amp;nbsp;instead, as you will often see it done:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(command "_.-INSERT" UtilityTag&amp;nbsp;&lt;FONT color="#ff00ff"&gt;pause&lt;/FONT&gt; 1 1 0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Since a backslash is a special-code trigger for certain things, such as \n for a new-line in a prompt, to have it read the \&amp;nbsp;as itself, it needs to special-code-ify itself, which is why there are two of them.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And since 1 is the default scale factor, and 0 is the default rotation angle, in Insert commands, those last three numbers could instead be &lt;FONT color="#0000ff"&gt;Enters&lt;/FONT&gt; to accept those defaults, which you will also often see:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(command "_.-INSERT" UtilityTag&amp;nbsp;&lt;FONT color="#000000"&gt;pause&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;"" "" ""&lt;/FONT&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are often a variety of ways to do things....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And as &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt;&amp;nbsp;mentioned in Post 17, if "UtilityTag" is the &lt;EM&gt;Block name&lt;/EM&gt;, and not a &lt;EM&gt;variable containing&lt;/EM&gt;&amp;nbsp; the Block name, then it needs to be in the form of a text string, that is, wrapped in&amp;nbsp;&lt;FONT color="#ff0000"&gt;double-quotes&lt;/FONT&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(command "_.-INSERT" &lt;FONT color="#ff0000"&gt;"&lt;/FONT&gt;UtilityTag&lt;FONT color="#ff0000"&gt;"&lt;/FONT&gt;&amp;nbsp;&lt;FONT color="#000000"&gt;pause "" "" "")&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 16:38:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-attribute-of-block/m-p/7474953#M113159</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-10-19T16:38:34Z</dc:date>
    </item>
  </channel>
</rss>

