<?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: editing commands in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697235#M195123</link>
    <description>&lt;P&gt;civil 3d; which is built on top of full autocad &amp;amp; map 3d&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 14:04:15 GMT</pubDate>
    <dc:creator>M_c3d</dc:creator>
    <dc:date>2018-01-17T14:04:15Z</dc:date>
    <item>
      <title>editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7696708#M195119</link>
      <description>&lt;P&gt;I am editing some commands at the moment to set the layers etc before they are done, so for qleaders, i want this to be on the layer 'Dim'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've changed the macro to;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-layer;set;Dim;^C^C_qleader&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this works fine, exactly the way I want it to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only problem is it only works for the command fro the ribbon, it doesnt work when typing the qleader command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to apply it for both?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 10:48:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7696708#M195119</guid>
      <dc:creator>M_c3d</dc:creator>
      <dc:date>2018-01-17T10:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7696786#M195120</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; it doesnt work when typing the qleader command&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You might try to create a small LISP function which does the layer setting + the leader command start for you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun C:QL()
   (command "_-LAYER" "_MAKE" "XXX" "")&lt;BR /&gt;   (command "_.QLEADER")
)&lt;/PRE&gt;
&lt;P&gt;This small part gives you a new command "QL" (you can name it as you like as long as it's not a already existing command name).&lt;BR /&gt;This command can be used in the menu as well as by typing using your keyboard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 11:22:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7696786#M195120</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2018-01-17T11:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697219#M195121</link>
      <description>Button macros do not automagically become typable commands: you will need to convert your macro to a LISP, load the LISP, then use that LISP instead.&lt;BR /&gt;&lt;BR /&gt;Are you actually using AutoCAD, or just LT?</description>
      <pubDate>Wed, 17 Jan 2018 14:01:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697219#M195121</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2018-01-17T14:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697232#M195122</link>
      <description>&lt;P&gt;Basic AutoCAD has an option for always putting Dimensions on a Layer of your choice, whatever the current Layer, but apparently not Leaders.&amp;nbsp; But I think some of the overlay programs have that kind of option for more things -- whether Civil3D [my assumption, from your avatar image] does, and if so whether Leaders are included, I don't know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can &lt;STRONG&gt;make a new definition&lt;/STRONG&gt; of the command to do it for you.&amp;nbsp; Put this into acaddoc.lsp, so it will be loaded in every drawing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(command "_&lt;STRONG&gt;.undefine&lt;/STRONG&gt;" "QLEADER")&lt;/P&gt;
&lt;P&gt;(defun C:&lt;STRONG&gt;QLEADER&lt;/STRONG&gt; () (setvar 'clayer "Dim") (command "_&lt;STRONG&gt;.&lt;/STRONG&gt;qleader"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, no matter how you call up the command [from the ribbon, type in, other menu item, &lt;FONT color="#999999"&gt;&lt;STRIKE&gt;alias&lt;/STRIKE&gt;&lt;/FONT&gt;&lt;FONT color="#ff6600"&gt;*&lt;/FONT&gt;, etc.], it will go to that Layer.&amp;nbsp; You can do the same for LEADER, for when you want the "slow" variety.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be enhanced to save the current Layer when it's called, and set that current again after you're done, if you like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff6600"&gt;*EDIT:&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp; I tried it, and I find that with the native QLEADER command undefined, the standard LE alias for it does not work, so if you want that, you'd have to make that a command, too:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(defun C:&lt;STRONG&gt;LE&lt;/STRONG&gt; () (setvar 'clayer "Dim") (command "_&lt;STRONG&gt;.&lt;/STRONG&gt;qleader"))&lt;/P&gt;
&lt;P&gt;or with the earlier QLEADER new definition, just:&lt;/P&gt;
&lt;P&gt;(defun C:&lt;STRONG&gt;LE&lt;/STRONG&gt; () (C:QLEADER))&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:30:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697232#M195122</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-01-17T14:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697235#M195123</link>
      <description>&lt;P&gt;civil 3d; which is built on top of full autocad &amp;amp; map 3d&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:04:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697235#M195123</guid>
      <dc:creator>M_c3d</dc:creator>
      <dc:date>2018-01-17T14:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697268#M195124</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; (setvar 'clayer "Dim")&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Just to add .. for that statement the layer "Dim" has already to exist in your drawing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:11:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697268#M195124</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2018-01-17T14:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697283#M195125</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/389680"&gt;@Alfred.NESWADBA&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; (setvar 'clayer "Dim")&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Just to add .. for that statement the layer "Dim" has already to exist in your drawing.&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;True, and I assume it does, since the macro in Post 1 only sets it, and "works fine" for the OP.&amp;nbsp; But if it might not always, forcing it&amp;nbsp;to, as in Post 2, can be included.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:15:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697283#M195125</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-01-17T14:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697331#M195126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; True, and I assume it does, since the macro in Post 1 only sets it, and "works fine"&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;;)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:26:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697331#M195126</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2018-01-17T14:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697363#M195127</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all the replies &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt; solution does the job, it means I don't need to edit the cui and forces the standard for all commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all the suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This only applies to 2d qleaders etc, its going to be applied to dims, hatches, viewports etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Civil 3d has the label and leader as one layer and the colour defined within the label.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Civil 3d is my main software, but I am also responsible for building a new set of cad standards for autocad users that work with both civil 3d and autocad (hence the question of forcing layer management)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:34:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7697363#M195127</guid>
      <dc:creator>M_c3d</dc:creator>
      <dc:date>2018-01-17T14:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7715686#M195128</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hoping for some additional help in this regard, setting default layer for hatches;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;(command "_.undefine" "Hatch")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;(defun C:Hatch () (setvar 'clayer "Hatch") (command "_.Hatch"))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That bit works fine, but it runs the hatch command with &lt;FONT color="#FF0000"&gt;HPDLGMODE&lt;/FONT&gt; set to 0 rather than the 1 that it is set to, so in effect it does not open the dialog box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any way to fix this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 11:26:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7715686#M195128</guid>
      <dc:creator>M_c3d</dc:creator>
      <dc:date>2018-01-24T11:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7715729#M195129</link>
      <description>&lt;P&gt;You know about HPLAYER and DIMLAYER or do you have an old version?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 11:43:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7715729#M195129</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-01-24T11:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7715740#M195130</link>
      <description>&lt;P&gt;Nope I did not know of these! Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I knew of XREFLAYER but didn't know of the others.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any others?&amp;nbsp; One for viewports perhaps?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 11:48:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7715740#M195130</guid>
      <dc:creator>M_c3d</dc:creator>
      <dc:date>2018-01-24T11:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: editing commands</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7715811#M195131</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;.... it runs the hatch command with &lt;FONT color="#ff0000"&gt;HPDLGMODE&lt;/FONT&gt; set to 0 rather than the 1 that it is set to, so in effect it does not open the dialog box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any way to fix this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
....&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;(command "_.undefine" "Hatch")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;(defun C:Hatch () (setvar 'clayer "Hatch") &lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;(initdia)&lt;/FONT&gt;&lt;/STRONG&gt; (command "_.Hatch"))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 12:10:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/editing-commands/m-p/7715811#M195131</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-01-24T12:10:59Z</dc:date>
    </item>
  </channel>
</rss>

