<?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: Press &amp;quot;ENTER&amp;quot; from command line in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7473992#M206190</link>
    <description>&lt;P&gt;(command "")&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2017 12:38:28 GMT</pubDate>
    <dc:creator>DannyNL</dc:creator>
    <dc:date>2017-10-19T12:38:28Z</dc:date>
    <item>
      <title>Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7473987#M206189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to "press enter" from command line?&lt;/P&gt;&lt;P&gt;similar to "(command)" for escape&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:36:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7473987#M206189</guid>
      <dc:creator>AIR_123</dc:creator>
      <dc:date>2017-10-19T12:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7473992#M206190</link>
      <description>&lt;P&gt;(command "")&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:38:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7473992#M206190</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-10-19T12:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474023#M206191</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3144455"&gt;@DannyNL&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;(command "")&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks, that worked, but not solved what I expected to solve. I have to rephrase...&lt;/P&gt;&lt;P&gt;Is there a way to confirm INSERT dialog from command line?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:46:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474023#M206191</guid>
      <dc:creator>AIR_123</dc:creator>
      <dc:date>2017-10-19T12:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474068#M206192</link>
      <description>&lt;P&gt;No, that's not possible. AutoCAD will keep waiting until you close the dialogue with one of the buttons and commandline input is disabled.&lt;/P&gt;&lt;P&gt;When using scripts or LISP therefore code is always written to use the INSERT command without the dialogue box, like eg.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(command "-insert" "test" pause 1 1 0)&lt;/PRE&gt;&lt;P&gt;In this case the minus before the INSERT command isn't really necessary as AutoCAD will normally suppress the dialogue box automatically as it detects the command is run from a LISP command. But as a script just mimics keyboard input, there it will be necessary to prefix INSERT with the minus else your script will show the dialogue box and wait until this is closes before proceeding.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:59:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474068#M206192</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-10-19T12:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474099#M206193</link>
      <description>&lt;P&gt;I'm not 100% clear on what you are asking, but if I understand, you want to close a pop up window with return? You can tab until the O.K. button is high lighted and hit enter if you are trying to close it without the mouse click.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:05:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474099#M206193</guid>
      <dc:creator>gotphish001</dc:creator>
      <dc:date>2017-10-19T13:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474124#M206194</link>
      <description>&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;I'm trying to implement something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;-insert
"path" ;block loaded into memory
esc ;escape
blockreplace
block A
block B
y&lt;/PRE&gt;&lt;P&gt;Could you please fix my logic here? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:13:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474124#M206194</guid>
      <dc:creator>AIR_123</dc:creator>
      <dc:date>2017-10-19T13:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474406#M206195</link>
      <description>&lt;P&gt;I think I'm seeing what you are trying to do.&lt;/P&gt;&lt;P&gt;You are inserting the block and only want to import the block into the drawing but not actually place it. After importing you want to replace an existing block with the new imported block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But are you actually trying to redefine an existing block A in your drawing with a modified block A somewhere in a folder or do you really want to replace block A with a different block B?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But to make this work you will need to complete the INSERT command as an escape will stop your script. After inserting delete it immediately, before using BLOCKREPLACE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this in scripting&lt;/P&gt;&lt;PRE&gt;-INSERT
"c:\\folder\\block A.dwg"
0,0
1
1
0
ERASE
L
&lt;BR /&gt;-BLOCKREPLACE&lt;BR /&gt;"BLOCK A"&lt;BR /&gt;"BLOCK B"&lt;BR /&gt;Y&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating a LISP for this would be even better as it will provide you with a custom command in AutoCAD and is more powerful than scripting.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:14:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474406#M206195</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-10-19T14:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474551#M206196</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3144455"&gt;@DannyNL&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I think I'm seeing what you are trying to do.&lt;/P&gt;&lt;P&gt;You are inserting the block and only want to import the block into the drawing but not actually place it. After importing you want to replace an existing block with the new imported block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But are you actually trying to redefine an existing block A in your drawing with a modified block A somewhere in a folder or do you really want to replace block A with a different block B?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But to make this work you will need to complete the INSERT command as an escape will stop your script. After inserting delete it immediately, before using BLOCKREPLACE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this in scripting&lt;/P&gt;&lt;PRE&gt;-INSERT
"c:\\folder\\block A.dwg"
0,0
1
1
0
ERASE
L
&lt;BR /&gt;-BLOCKREPLACE&lt;BR /&gt;"BLOCK A"&lt;BR /&gt;"BLOCK B"&lt;BR /&gt;Y&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating a LISP for this would be even better as it will provide you with a custom command in AutoCAD and is more powerful than scripting.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Danny, many thanks. Indeed logic is as you described. I'm replacing block A with block B.&lt;/P&gt;&lt;P&gt;My knowledge of LISP is limited therefore I'm trying to implement scripting here.&lt;/P&gt;&lt;P&gt;One more thing. How I can skip requests to fill in attributes in inserted block? Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:47:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7474551#M206196</guid>
      <dc:creator>AIR_123</dc:creator>
      <dc:date>2017-10-19T14:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7476622#M206197</link>
      <description>&lt;P&gt;Glad I could help&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To disable the request for attribute values after inserting a block, you need to set the system variable ATTREQ to 0. So your script would look something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ATTREQ
0
-INSERT
"c:\\folder\\block A.dwg"
0,0
1
1
0
ATTREQ
1
ERASE
L

-BLOCKREPLACE
"BLOCK A"
"BLOCK B"
Y&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Oct 2017 06:33:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/7476622#M206197</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-10-20T06:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8027592#M206198</link>
      <description>&lt;P&gt;I have&amp;nbsp;a true "press enter" problem,&amp;nbsp; with no solution found so far.&amp;nbsp; &amp;nbsp; This topic is similar so I hope someone here can answer without having to explain it in a new post.&lt;BR /&gt;&lt;BR /&gt;I'm pasting strings of commands into the commandline.&amp;nbsp; I need to set a layer to be current then draw a pline.&lt;/P&gt;&lt;P&gt;-LAYER SET mylayername PL 0,0 1,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... I need to 'press enter' after the layer name, or else it assumes everything after is part of the layer name.&amp;nbsp; Spaces are not sufficient because layer names can include spaces. Other typical 'enter' characters give an 'invalid layer name' error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 20:32:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8027592#M206198</guid>
      <dc:creator>suraky</dc:creator>
      <dc:date>2018-05-25T20:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8027793#M206199</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Put the layername in quotes. This also applies to paths and filenames with spaces. Remember to have 2 spaces after the layername to exit the layer command.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-LAYER SET "mylayername"&amp;nbsp; PL 0,0 1,1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Nancy&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5118935"&gt;@suraky&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I have&amp;nbsp;a true "press enter" problem,&amp;nbsp; with no solution found so far.&amp;nbsp; &amp;nbsp; This topic is similar so I hope someone here can answer without having to explain it in a new post.&lt;BR /&gt;&lt;BR /&gt;I'm pasting strings of commands into the commandline.&amp;nbsp; I need to set a layer to be current then draw a pline.&lt;/P&gt;&lt;P&gt;-LAYER SET mylayername PL 0,0 1,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... I need to 'press enter' after the layer name, or else it assumes everything after is part of the layer name.&amp;nbsp; Spaces are not sufficient because layer names can include spaces. Other typical 'enter' characters give an 'invalid layer name' error.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 00:48:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8027793#M206199</guid>
      <dc:creator>neaton</dc:creator>
      <dc:date>2018-05-26T00:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8027797#M206200</link>
      <description>&lt;P&gt;Thanks for the fast reply,&amp;nbsp; but having the layer name in quotes doesn't help,&amp;nbsp; neither does having two spaces after it.&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 01:02:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8027797#M206200</guid>
      <dc:creator>suraky</dc:creator>
      <dc:date>2018-05-26T01:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8027833#M206201</link>
      <description>&lt;P&gt;Interesting - I had to spell out PLINE instead of using the PL shortcut.&lt;/P&gt;&lt;P&gt;-layer set "layername"&amp;nbsp; pline 0,0 1,1&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nancy&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 02:39:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8027833#M206201</guid>
      <dc:creator>neaton</dc:creator>
      <dc:date>2018-05-26T02:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8028018#M206202</link>
      <description>&lt;P&gt;The attached script should work (delete the .txt-extension). Notice, that no spaces are at the end of the lines.&lt;/P&gt;&lt;P&gt;And - I used the MAKE option instead of SET. (If the layername doesn't exist it will be created automatically, if the name exists it works like SET).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cadder&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 09:08:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8028018#M206202</guid>
      <dc:creator>j.palmeL29YX</dc:creator>
      <dc:date>2018-05-26T09:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8028179#M206203</link>
      <description>&lt;P&gt;I missed that you were trying to copy and paste this into the command line. I can't get any combination to work that way but I can get it to work in a script, LISP or a Tool Palette.&lt;/P&gt;&lt;P&gt;Nancy&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5118935"&gt;@suraky&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I'm pasting strings of commands into the commandline.&amp;nbsp; I need to set a layer to be current then draw a pline.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sat, 26 May 2018 12:59:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8028179#M206203</guid>
      <dc:creator>neaton</dc:creator>
      <dc:date>2018-05-26T12:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8028257#M206204</link>
      <description>&lt;P&gt;Ok. I understand. A new try:&lt;BR /&gt;&lt;BR /&gt;Open the attached test.txt. Mark the complete content (Ctrl+A) and copy into the clipboard (Ctrl+C).&lt;BR /&gt;&lt;BR /&gt;In AutoCAD pick in the command line. Insert the clipbord with Ctrl+V. That's all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cadder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 16:02:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8028257#M206204</guid>
      <dc:creator>j.palmeL29YX</dc:creator>
      <dc:date>2018-05-26T16:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Press "ENTER" from command line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8030463#M206205</link>
      <description>&lt;P&gt;Thanks for the help! I have it working now, compiling my commands into a .scr file as you've indicated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 16:21:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/press-quot-enter-quot-from-command-line/m-p/8030463#M206205</guid>
      <dc:creator>suraky</dc:creator>
      <dc:date>2018-05-28T16:21:54Z</dc:date>
    </item>
  </channel>
</rss>

