<?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: Rename Button Macro in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11577176#M37853</link>
    <description>&lt;P&gt;Hi Sea-Haven,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its a big macro, it has lots of steps to do.&lt;/P&gt;&lt;P&gt;Using a lisp? Actually no, I'm still not confortable to doing a Lisp.&lt;/P&gt;&lt;P&gt;But, If u said that is possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to see on it.&lt;/P&gt;&lt;P&gt;But mean time, let's see if someone can crack the code!&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 07:43:47 GMT</pubDate>
    <dc:creator>PedroMSilva22</dc:creator>
    <dc:date>2022-11-25T07:43:47Z</dc:date>
    <item>
      <title>Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11572680#M37848</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I’m working on a macro, simple Rename a name of a Layer.&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;NX91NE$0$L_101_TEXT and Rename to Z-Zz_20_10_90-M_Land.Text&lt;/P&gt;&lt;P&gt;The difficulty I’m having is I just want to put on the macro part of the name to be change. I’m working with coordinates and the first part of the name is the coordinate.&lt;/P&gt;&lt;P&gt;Instead of putting all name of the layer:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NX91NE$0$&lt;/STRONG&gt;L_101_TEXT&lt;/P&gt;&lt;P&gt;Just put part of the layer name :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;L_101_TEXT&lt;/STRONG&gt; (C^C_-rename;LA;L_101_TEXT;Z-Zz_20_10_90-M_Land.Text;^C^C)&lt;/P&gt;&lt;P&gt;Is there a way to only put on a macro part of the name to be change?&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 11:39:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11572680#M37848</guid>
      <dc:creator>PedroMSilva22</dc:creator>
      <dc:date>2022-11-23T11:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11572959#M37849</link>
      <description>&lt;P&gt;Not, it seems in a RENAME command in a command macro.&amp;nbsp; The RENAME dialog box would let you do that with a * wildcard:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1669210525734.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1143414i9843BED79FB0D387/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1669210525734.png" alt="Kent1Cooper_0-1669210525734.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;which results in the Layer name that matches [BC between anything else] being changed:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_1-1669210611011.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1143416iA2C2E096ED87F4CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_1-1669210611011.png" alt="Kent1Cooper_1-1669210611011.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BUT unfortunately, the command-line version of RENAME such as would be used in a command macro won't accept the wildcard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be done easily enough with an AutoLisp routine, if you are not using LT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 13:36:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11572959#M37849</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-11-23T13:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11575770#M37850</link>
      <description>&lt;P&gt;Hi Ken, thank you for the help,&lt;/P&gt;&lt;P&gt;The thing is :&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to divide the macro command in 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1-First part:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;^C^C_xref;bind;*;^C^C_Purge;a;*;N;;;^C^C-layer _E;*;;^C^C_xplode;_all;;^C^C_xplode;_all;;;^C^C_'_zoom _e;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;2-Second part:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;^C^C_-LAYMRG;N;L_105_WATER_P;;N;L_104_WATER;Y;;^C^C_-rename;LA;L_103_TOPO;Z-En_32_10_40-M_Land;^C^C_-rename;LA;L_102_BUILDING;Z-En_32_10_39-M_Buildings;^C^C_-rename;LA;L_101_TEXT;Z-Zz_20_10_90-M_Land.Text;^C^C_-rename;LA;L_104_WATER;Z-Co_32_65_72-M_Rivers;^C^C-layer;_color 253;Z-En_32_10_40-M_Land;^C^C-layer;_color 6;Z-En_32_10_39-M_Buildings;^C^C-layer;_color 9;Z-Zz_20_10_90-M_Land.Text;^C^C-layer;_color 140;Z-Co_32_65_72-M_Rivers;;^C^C_SETBYLAYER;all;;Yes;Yes;^C^C_copybase;0,0,0;_all;;^C^C_erase;all;;^C^C_pasteblock;0,0,0;;^C^C_-layer;n;Z-Zz_30_30-M_CadExternalReferences;;^C^C_-layer;_color 253;Z-Zz_30_30-M_CadExternalReferences;^C^C_chprop;_all;;_p;_la;Z-Zz_30_30-M_CadExternalReferences;; ;;^C^C_-layer;LO;Z-Zz_30_30-M_CadExternalReferences;; ^C^C_Purge;a;*;N;;;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Everything is working and doing what I want. Actually I want to put more stuff in this macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be only one button, But like I said, the first part of the layer name:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;NX91NE$0$&lt;/STRONG&gt;&lt;STRONG&gt;L_101_TEXT&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;NX91NE$0$ &lt;/STRONG&gt;I have to remove by hand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I can use only &lt;STRONG&gt;L_101_TEXT&lt;/STRONG&gt;, that would be great.&lt;/P&gt;&lt;P&gt;Because all the GIS coordinates started &lt;STRONG&gt;NX91NE$0$ or SD84SW0$ or NY10NW$0$. Etc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you once again Ken&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 14:05:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11575770#M37850</guid>
      <dc:creator>PedroMSilva22</dc:creator>
      <dc:date>2022-11-24T14:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11575775#M37851</link>
      <description>&lt;P&gt;Hi Ken, thank you for the help,&lt;/P&gt;&lt;P&gt;The thing is :&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to divide the macro command in 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1-First part:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;^C^C_xref;bind;*;^C^C_Purge;a;*;N;;;^C^C-layer _E;*;;^C^C_xplode;_all;;^C^C_xplode;_all;;;^C^C_'_zoom _e;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;2-Second part:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;^C^C_-LAYMRG;N;L_105_WATER_P;;N;L_104_WATER;Y;;^C^C_-rename;LA;L_103_TOPO;Z-En_32_10_40-M_Land;^C^C_-rename;LA;L_102_BUILDING;Z-En_32_10_39-M_Buildings;^C^C_-rename;LA;L_101_TEXT;Z-Zz_20_10_90-M_Land.Text;^C^C_-rename;LA;L_104_WATER;Z-Co_32_65_72-M_Rivers;^C^C-layer;_color 253;Z-En_32_10_40-M_Land;^C^C-layer;_color 6;Z-En_32_10_39-M_Buildings;^C^C-layer;_color 9;Z-Zz_20_10_90-M_Land.Text;^C^C-layer;_color 140;Z-Co_32_65_72-M_Rivers;;^C^C_SETBYLAYER;all;;Yes;Yes;^C^C_copybase;0,0,0;_all;;^C^C_erase;all;;^C^C_pasteblock;0,0,0;;^C^C_-layer;n;Z-Zz_30_30-M_CadExternalReferences;;^C^C_-layer;_color 253;Z-Zz_30_30-M_CadExternalReferences;^C^C_chprop;_all;;_p;_la;Z-Zz_30_30-M_CadExternalReferences;; ;;^C^C_-layer;LO;Z-Zz_30_30-M_CadExternalReferences;; ^C^C_Purge;a;*;N;;;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Everything is working and doing what I want. Actually I want to put more stuff in this macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be only one button, But like I said, the first part of the layer name:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;NX91NE$0$&lt;/STRONG&gt;&lt;STRONG&gt;L_101_TEXT&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;NX91NE$0$&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;I have to remove by hand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I can use only&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;L_101_TEXT&lt;/STRONG&gt;, that would be great.&lt;/P&gt;&lt;P&gt;Because all the GIS coordinates started&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;NX91NE$0$ or SD84SW0$ or NY10NW$0$. Etc.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 14:06:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11575775#M37851</guid>
      <dc:creator>PedroMSilva22</dc:creator>
      <dc:date>2022-11-24T14:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11576894#M37852</link>
      <description>&lt;P&gt;Have you looked at using a lisp ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could write a lisp with a few defuns in it that accept a list of values like oldname newname, new layer, rename layer, layer lock, chprops and so on then it could be used in other code you write.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a does layer exist that I use often it makes the layer, sets color and linetype as an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading the button macro takes a bit of thought.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 03:34:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11576894#M37852</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-11-25T03:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11577176#M37853</link>
      <description>&lt;P&gt;Hi Sea-Haven,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its a big macro, it has lots of steps to do.&lt;/P&gt;&lt;P&gt;Using a lisp? Actually no, I'm still not confortable to doing a Lisp.&lt;/P&gt;&lt;P&gt;But, If u said that is possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to see on it.&lt;/P&gt;&lt;P&gt;But mean time, let's see if someone can crack the code!&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 07:43:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11577176#M37853</guid>
      <dc:creator>PedroMSilva22</dc:creator>
      <dc:date>2022-11-25T07:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11577559#M37854</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6073717"&gt;@PedroMSilva22&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1-First part:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;^C^C_xref;bind;*;^C^C&lt;/FONT&gt;_Purge;a;*;N;;;&lt;FONT color="#0000FF"&gt;^C^C&lt;/FONT&gt;-layer _E;*;;&lt;FONT color="#0000FF"&gt;^C^C&lt;/FONT&gt;_xplode;_all;;&lt;FONT color="#0000FF"&gt;^C^C&lt;/FONT&gt;_xplode;_all;;;&lt;FONT color="#0000FF"&gt;^C^C&lt;/FONT&gt;_'_zoom _e;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Sorry to say this but you on your own hands damaging your drawings and than looking for solutions to fix.&lt;/P&gt;&lt;P&gt;it is wrong to bind all xrefs + exploding all blocks. instead of spending time &lt;SPAN&gt;disassembling&lt;/SPAN&gt;&amp;nbsp;all, learn how to handle them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you aware that binding all xrefs is the cause of this?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;NX91NE$0$&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;L_101_TEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this does not ends on layers name but creating damage to other AutoCAD tables (text styles, dimension styles, linetypes and blocks name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here's an FLN command to fix drawing layers that has been damaged. if the result still leaves $0$ layers, that means that it can not be renamed (cause a layer by that name is already exist).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;enjoy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Moshe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;; Fix Layer Name
; this command will remove dependent xref name from layers
(defun c:fln (/ flag tbl p Lname Cname elist)
 (setq flag t) 
 (while flag
  (mapcar 'set '(flag tbl) '(nil nil))
  (while (setq tbl (tblnext "layer" (not tbl)))
   (if (and
	 (/= (logand (cdr (assoc '70 tbl)) 16)) ; not xref dependent
	 (setq p (vl-string-position (ascii "$") (setq Lname (cdr (assoc '2 tbl)))))
	 (wcmatch (substr Lname (1+ p) 3) "$[0-9]$")
         (null (tblsearch "layer" (setq Cname (substr Lname (+ p 4))))) ; can layer be rename?
         (setq elist (entget (tblobjname "layer" Lname)))
       )
    (setq flag (entmod (subst (cons '2 Cname) (assoc '2 elist) elist)))
   ); if
  ); while
 ); while

 (princ "\nDone.") 
 (princ)
); c:fln&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 10:40:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11577559#M37854</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2022-11-25T10:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11581775#M37855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Moshe,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for the comment. Much apreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actually, I didn't know!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grimacing_face:"&gt;😬&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Doing the Xref and then Bind into the drawing, was the cause of the&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;NX91NE$0$&lt;/STRONG&gt;&lt;/FONT&gt;L_101_TEXT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It has me all along.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I always try to rename the layers, cus they have all the information like u said.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I see things diferents. Honest I didnt know. (that's why we have some very good help from the Forum)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But one question, Why create a block in a block and sometimes in another block?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the FLN comand and the help!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 09:37:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11581775#M37855</guid>
      <dc:creator>PedroMSilva22</dc:creator>
      <dc:date>2022-11-28T09:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11582229#M37856</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6073717"&gt;@PedroMSilva22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Doing the Xref and then Bind into the drawing, was the cause of the&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;NX91NE$0$&lt;/STRONG&gt;&lt;/FONT&gt;L_101_TEXT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you don't want that result, always use the Bind Type "&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;Insert&lt;/STRONG&gt;&lt;/FONT&gt;" option, not the "&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;Bind&lt;/FONT&gt;&lt;/STRONG&gt;" option, in Xref-binding:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1669641032410.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1145117i925C014C9ADA7F47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1669641032410.png" alt="Kent1Cooper_0-1669641032410.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 13:12:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11582229#M37856</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-11-28T13:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11584324#M37857</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6073717"&gt;@PedroMSilva22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6073717"&gt;@PedroMSilva22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Moshe,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for the comment. Much apreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actually, I didn't know!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grimacing_face:"&gt;😬&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Doing the Xref and then Bind into the drawing, was the cause of the&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;NX91NE$0$&lt;/STRONG&gt;&lt;/FONT&gt;L_101_TEXT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It has me all along.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I always try to rename the layers, cus they have all the information like u said.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I see things diferents. Honest I didnt know. (that's why we have some very good help from the Forum)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;But one question, Why create a block in a block and sometimes in another block?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the FLN comand and the help!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Well, i assume users may do this by mistake unaware of what the results.&amp;nbsp; there is a PASTEBLOCK command that let folks copy and paste as block with &lt;SPAN&gt;nonsense name. also you can see users creates blocks with&amp;nbsp;nonsense name&amp;nbsp;knowingly&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Moshe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 06:39:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11584324#M37857</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2022-11-29T06:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Button Macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11798514#M37858</link>
      <description>I just ran into exactly this. I have pre-populated model space views (for use in SSM). They are designated with "X_" as a placeholder for the eventual room number for each drawing. I want a lisp that I could type in the right room number and have it do a find and replace on the model view name. You say it can be done easily enough. I'm new to Lisp, but trying to learn.&lt;BR /&gt;&lt;BR /&gt;Here is what I had, up until I read your post.&lt;BR /&gt;&lt;BR /&gt;(defun C:rv (/ RmName)&lt;BR /&gt;(Setq RmNbr (getstring "\n Room Number: "))&lt;BR /&gt;(Command "-Rename" "View" "101_*" "RmNbr_*")&lt;BR /&gt;&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Now I realize this can't work. What should I be calling instead of rename?&lt;BR /&gt;</description>
      <pubDate>Sat, 04 Mar 2023 18:41:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rename-button-macro/m-p/11798514#M37858</guid>
      <dc:creator>Gbalcom</dc:creator>
      <dc:date>2023-03-04T18:41:51Z</dc:date>
    </item>
  </channel>
</rss>

