<?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: Command line command to move to layout and do other commands in AutoCAD LT Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079552#M46204</link>
    <description>&lt;P&gt;I added "" around the layout name and it still wouldnt work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;layout set "Layout (01)" ms zoom window 5.5 200.200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] &amp;lt;set&amp;gt;: set&lt;BR /&gt;Enter layout to make current &amp;lt;Layout (01)&amp;gt;: "Layout (01)" ms zoom window 5.5 200.200&lt;BR /&gt;Cannot find layout ""Layout (01)" ms zoom window 5.5 200.200".&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 09:56:24 GMT</pubDate>
    <dc:creator>AutoDesk_222</dc:creator>
    <dc:date>2017-05-12T09:56:24Z</dc:date>
    <item>
      <title>Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077217#M46192</link>
      <description>&lt;P&gt;I have a drawing which does not have any printing intelligence inside it. In the drawings modelspace there are almost 100 sheets that needs to be printed. These drawings are located with same pattern. Now, I have created "zoom window command generator" with excel for zooming these areas to viewports inside each layout. Here is example of what my excel already does:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Zoom window 25.5,22.5 445.5,319.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Zoom window 25.5,337.5 445.5,634.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Zoom window 25.5,652.5 445.5,949.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Zoom window 25.5,967.5 445.5,1264.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Zoom window 466.5,22.5 886.5,319.5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This excel needs to know first sheet offset from origo (x and y coordinate), size of the windows and space between the windows. Thats all for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to make it work so that I can just copy these commands from my excel to autocad without having to be in the same layout which the command was created for and without being "inside" the viewport. I am aware of things that these commands lack at moment but I dont have enough knowledge to fullfill them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps that need to be added from my point of view are following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Set current layout (move to layout with its name, these names are added to my excel)&lt;/P&gt;&lt;P&gt;2. Choose the viewport inside the chosen layout (double click the viewport to be active, these layouts have only one viewport which was created with mview fit command)&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 13:06:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077217#M46192</guid>
      <dc:creator>AutoDesk_222</dc:creator>
      <dc:date>2017-05-11T13:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077269#M46193</link>
      <description>Q: why not have one template file with all of this already done ahead of time, then just start with that DWG file for new projects?</description>
      <pubDate>Thu, 11 May 2017 13:19:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077269#M46193</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2017-05-11T13:19:09Z</dc:date>
    </item>
    <item>
      <title>Betreff: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077277#M46194</link>
      <description>Do you have or create the Layout(names)?&lt;BR /&gt;Ok&lt;BR /&gt;command Layout Option Set&lt;BR /&gt;command mspace (and pspace)&lt;BR /&gt;&lt;BR /&gt;?</description>
      <pubDate>Thu, 11 May 2017 13:21:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077277#M46194</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-05-11T13:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077286#M46195</link>
      <description>&lt;P&gt;To do what you ask add the following before each of the zoom commands&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LAYOUT;S:*Put your layout name here*;mspace;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 13:23:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077286#M46195</guid>
      <dc:creator>h_s_walker</dc:creator>
      <dc:date>2017-05-11T13:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077393#M46196</link>
      <description>&lt;P&gt;pendean: I'm creating this "tool" especially for old projects. My company already has templates and every other thing for starting new projects. Every now and then we get these "renovate" projects and the digital documentation we get with these projects is what it is. I allways have to do few tricks with the files before start modifying them. Especially ones that come from different CAD software.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when the customer changes - very often the reference changes too and can't apply same template everytime. Changes in the reference are sheet window size (sometimes A3, A4 or some other standard or no stardard at all) and distances between the windows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This excel I'm creating needs only offset from origo, sheet window size and offset between windows, also layout names (which are pretty standard for my uses Layout (01), ... , Layout (99). And I think with this tool it is easy to create layout viewports with automated zooming. After creating these to first drawing I can bring the settings from it to next 49 with import feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also just started to use autocad more so Im kind of trying to learn and understand. AutoCAD command line seems to be very usefull for automating things to happen. I just dont know yet how to use it effectively.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 13:54:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077393#M46196</guid>
      <dc:creator>AutoDesk_222</dc:creator>
      <dc:date>2017-05-11T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077426#M46197</link>
      <description>&lt;P&gt;Sorry, made a very tiny mistake. It should be a semicolon after the S. Like below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LAYOUT;S;*Put your layout name here*;mspace;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 14:05:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077426#M46197</guid>
      <dc:creator>h_s_walker</dc:creator>
      <dc:date>2017-05-11T14:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077470#M46198</link>
      <description>Thanks for the info: how about something like this &lt;A href="https://www.scriptsheets.com/" target="_blank"&gt;https://www.scriptsheets.com/&lt;/A&gt;</description>
      <pubDate>Thu, 11 May 2017 14:15:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077470#M46198</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2017-05-11T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077930#M46199</link>
      <description>&lt;P&gt;; is for Macros, not for Scripts,&lt;BR /&gt;&lt;BR /&gt;-&lt;BR /&gt;&lt;BR /&gt;Excel is cool for writing Scripts, but for &amp;lt;enter&amp;gt; Textstrings where [Space] are allowd,&lt;BR /&gt;you need a Line-Break for a real &amp;lt;enter&amp;gt;.&lt;BR /&gt;This is without (VBA) programming then not so funny, Because you have to leave the elegant ONE-LINE formatting&lt;BR /&gt;The link from Pendean is certainly a good thing, there everything is necessary in an ExtraProgramm prepared (dll)&lt;BR /&gt;to create the finished script.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;If you are not allowed to install any programs:&lt;/STRONG&gt;&lt;BR /&gt;Then you look for an Excel VBA solution or you can do it yourself in VBA.&lt;BR /&gt;If a VBA solution is not allowed, maybe it can be your text editor. (TextPAD, NotePAD++..)&lt;BR /&gt;Insert a special string as Enter, for example ";"&lt;BR /&gt;Copies everything into a good text editor and serach% replace. Search ";" And replace with "&amp;lt;newLine&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Script for: [create new Layout], set active, [create MVIEW], going into, Zoom, going back to Paperspace.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;before Excel:&lt;BR /&gt;_.OSNAPCOORD 1&lt;BR /&gt;_.PSPACE&lt;BR /&gt;_.MODEL&lt;BR /&gt;_.UCS _world&lt;BR /&gt;_.VTENABLE 2&lt;BR /&gt;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_new&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout3;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_set&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout3;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.MVIEW&amp;nbsp;&amp;nbsp; &amp;nbsp;0,0&amp;nbsp;&amp;nbsp; &amp;nbsp;290,200&amp;nbsp;&amp;nbsp; &amp;nbsp;_.MSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_.ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;480,0&amp;nbsp;&amp;nbsp; &amp;nbsp;680,180&amp;nbsp;&amp;nbsp; &amp;nbsp;_.PSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_.ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;_e&lt;BR /&gt;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_new&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout4;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_set&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout4;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.MVIEW&amp;nbsp;&amp;nbsp; &amp;nbsp;0,0&amp;nbsp;&amp;nbsp; &amp;nbsp;290,200&amp;nbsp;&amp;nbsp; &amp;nbsp;_.MSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_.ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;720,0&amp;nbsp;&amp;nbsp; &amp;nbsp;920,180&amp;nbsp;&amp;nbsp; &amp;nbsp;_.PSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_.ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;_e&lt;BR /&gt;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_new&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout5;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_set&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout5;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.MVIEW&amp;nbsp;&amp;nbsp; &amp;nbsp;0,0&amp;nbsp;&amp;nbsp; &amp;nbsp;290,200&amp;nbsp;&amp;nbsp; &amp;nbsp;_.MSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_.ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;960,0&amp;nbsp;&amp;nbsp; &amp;nbsp;1160,180&amp;nbsp;&amp;nbsp; &amp;nbsp;_.PSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_.ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;_e&lt;BR /&gt;_.VTENABLE 3&lt;BR /&gt;&lt;BR /&gt;after Copy to Texteditor(TextPAD,Notepad++ aso), search$replace:&lt;BR /&gt;_.OSNAPCOORD 1&lt;BR /&gt;_.PSPACE&lt;BR /&gt;_.MODEL&lt;BR /&gt;_.UCS _world&lt;BR /&gt;_.VTENABLE 2&lt;BR /&gt;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_new&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout3&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_set&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout3&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.MVIEW&amp;nbsp;&amp;nbsp; &amp;nbsp;0,0&amp;nbsp;&amp;nbsp; &amp;nbsp;290,200&amp;nbsp;&amp;nbsp; &amp;nbsp;_MSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;480,0&amp;nbsp;&amp;nbsp; &amp;nbsp;680,180&amp;nbsp;&amp;nbsp; &amp;nbsp;_.PSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_.ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;_e&lt;BR /&gt;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_new&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout4&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_set&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout4&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.MVIEW&amp;nbsp;&amp;nbsp; &amp;nbsp;0,0&amp;nbsp;&amp;nbsp; &amp;nbsp;290,200&amp;nbsp;&amp;nbsp; &amp;nbsp;_MSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;720,0&amp;nbsp;&amp;nbsp; &amp;nbsp;920,180&amp;nbsp;&amp;nbsp; &amp;nbsp;_.PSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_.ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;_e&lt;BR /&gt;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_new&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout5&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.LAYOUT&amp;nbsp;&amp;nbsp; &amp;nbsp;_set&amp;nbsp;&amp;nbsp; &amp;nbsp;Layout5&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;_.MVIEW&amp;nbsp;&amp;nbsp; &amp;nbsp;0,0&amp;nbsp;&amp;nbsp; &amp;nbsp;290,200&amp;nbsp;&amp;nbsp; &amp;nbsp;_MSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;960,0&amp;nbsp;&amp;nbsp; &amp;nbsp;1160,180&amp;nbsp;&amp;nbsp; &amp;nbsp;_.PSPACE&amp;nbsp;&amp;nbsp; &amp;nbsp;_.ZOOM&amp;nbsp;&amp;nbsp; &amp;nbsp;_e&lt;BR /&gt;_.VTENABLE 3&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 16:34:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7077930#M46199</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-05-11T16:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7078006#M46200</link>
      <description>&lt;P&gt;Just so we are all clear on this it would be helpfull if you could post an example of what you are trying to achieve, I read this in two ways, is it 100 print areas in modelspace to be automatically printed, using an offset for each or is it 100 named paperspace layouts that each have 1 single "viewport" that needs activating and then zoom to a diferent location in modelspace with a know offset. And then the paperspace layout printed.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 17:00:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7078006#M46200</guid>
      <dc:creator>steven-g</dc:creator>
      <dc:date>2017-05-11T17:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7078397#M46201</link>
      <description>&lt;P&gt;&lt;EM&gt;1. Set current layout (move to layout with its name, these names are added to my excel)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;2. &lt;STRONG&gt;Choose the viewport&lt;/STRONG&gt; inside the chosen layout (double click the viewport to be active, these layouts have only one viewport &lt;STRONG&gt;which was created&lt;/STRONG&gt; with mview fit command)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Layout and Mview exist, ok:&lt;/P&gt;
&lt;P&gt;Example File - &lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;Without additional programming&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 19:39:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7078397#M46201</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-05-11T19:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079447#M46202</link>
      <description>&lt;P&gt;I attached now an example. There are 3 drawing files from which 2 are external references. I also added 3 missing autocad fonts (.shx). These files are originally Micro Station .dgn so you need to set these 3 files to your AutoCAD font folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My skills are not good enough yet for creating script for autocad. I've used AutoCAD LT officially just for 1 month. I started creating these printing layouts by hand and after that got idea that couldnt this all be done with certain command chain. So I'm now creating officially my first tool to help me in future projects and the outcome will be most likely the same as everyones first tool they ever created for helping themselves &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Its not gonna be perfect or rocket science but its a start. I dont know how to code VBA or if my AutoCAD has support it or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not very important for this tool to create these layouts since its very easy to create 1 layout with certain viewport (fit) and then copy it as 2, 4, 8, 16, 32, 64. So there is no big victory in time by importing this feature. The real time goes surfing between multiple layouts, picking the viewport, zooming the window by hand. Since my knowledge is pretty low, I thought the best feature for me is to start creating these command chains which should look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;layout set Layout (01) ms zoom window 5.5 200.200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When this command is written to command line, following message appears: Command: layout&lt;BR /&gt;Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] &amp;lt;set&amp;gt;: set&lt;BR /&gt;Enter layout to make current &amp;lt;Layout (01)&amp;gt;: Layout (01) ms zoom window 5.5 200.200&lt;BR /&gt;Cannot find layout "Layout (01) ms zoom window 5.5 200.200".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize that there is not "press enter" after the layout pick "Layout (01)". How can the "press enter" be applied to here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And after my excel creates these chains I would like to apply them to autocad all at once. How would that be possible? Now the only way I know is copy the chains one by one from excel and paste it to command line and press enter.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 08:55:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079447#M46202</guid>
      <dc:creator>AutoDesk_222</dc:creator>
      <dc:date>2017-05-12T08:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079478#M46203</link>
      <description>&lt;P&gt;If your layout has spaces you need to need to put the layout name in speech marks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg. "This is a layout name which has spaces in it"&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 09:15:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079478#M46203</guid>
      <dc:creator>h_s_walker</dc:creator>
      <dc:date>2017-05-12T09:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079552#M46204</link>
      <description>&lt;P&gt;I added "" around the layout name and it still wouldnt work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;layout set "Layout (01)" ms zoom window 5.5 200.200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] &amp;lt;set&amp;gt;: set&lt;BR /&gt;Enter layout to make current &amp;lt;Layout (01)&amp;gt;: "Layout (01)" ms zoom window 5.5 200.200&lt;BR /&gt;Cannot find layout ""Layout (01)" ms zoom window 5.5 200.200".&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 09:56:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079552#M46204</guid>
      <dc:creator>AutoDesk_222</dc:creator>
      <dc:date>2017-05-12T09:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079610#M46205</link>
      <description>&lt;P&gt;Change MS to MSPACE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also make sure the layout name is exactly the same as what is written between the speech marks". No double spaces between words. No spaces before LAYOUT or after (01)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command: SCR&lt;BR /&gt;SCRIPT&lt;BR /&gt;Command: layout&lt;BR /&gt;Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] &amp;lt;set&amp;gt;: set&lt;BR /&gt;Enter layout to make current &amp;lt;A2_&amp;gt;: "Layout (01)" Regenerating layout.&lt;BR /&gt;Regenerating model.&lt;/P&gt;
&lt;P&gt;Command: mspace&lt;BR /&gt;Command: zoom&lt;BR /&gt;Specify corner of window, enter a scale factor (nX or nXP), or&lt;BR /&gt;[All/Center/Dynamic/Extents/Previous/Scale/Window/Object] &amp;lt;real time&amp;gt;: window&lt;BR /&gt;Specify first corner: 5.5 Specify opposite corner: 200.200&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above was from a script containing the following&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;layout set "Layout (01)" mspace zoom window 5.5 200.200&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 10:29:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079610#M46205</guid>
      <dc:creator>h_s_walker</dc:creator>
      <dc:date>2017-05-12T10:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079637#M46206</link>
      <description>&lt;P&gt;You need to rethink the script a little, the problem is when Autocad encounters a command that expects a text input it takes anything following as text so in a script or copy paste from excel you have to format your code so that the text is the last item on the row, and then Autocad reads the end of line as the end of the text input. I have attached&amp;nbsp;a full working excel and text file (change the .txt to .scr), notice as well the subtle difference between script and excel copy paste, a script needs quotes. In both script and excel you use a space as &amp;lt;enter&amp;gt; in a macro everything changes again and ";" a semicolon can be used as &amp;lt;enter&amp;gt;&lt;/P&gt;
&lt;P&gt;The different first and last line of the attached make sure that the layout name is Always at&amp;nbsp;the end, and the extra 4 layouts in the script are to show that it doesn't cause any problems having a too long script as the last few lines just give the error message that a layout can't be found.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 10:36:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7079637#M46206</guid>
      <dc:creator>steven-g</dc:creator>
      <dc:date>2017-05-12T10:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7092851#M46207</link>
      <description>&lt;P&gt;First of all I would like to thank hwalker and steven-g for walking me through this. There is much for me to learn in AutoCAD since I've used it very little. AutoCAD has much functions which the users dont even know. Since I'm going to work with AutoCAD for ~38 years I really want to know how to get the most of the program. I think best way for me to start "automating" things is now to write these scripts since the input with the scripts is very much the same as with command line. Maybe in near future I will dig deeper into macros. I already have my first macro for sequential numbering and it didnt seem too hard to understand &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that since I started ot create this script, it could have also the missing parts in it which I first decided to do by hand but I became lazy. Things that need to be added:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. create layout with specific name&lt;/P&gt;&lt;P&gt;2. select the viewport inside created layout&lt;/P&gt;&lt;P&gt;3. delete selected viewport&lt;/P&gt;&lt;P&gt;4. create new viewport with option fit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is as far as I got:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;layout new "Layout (01)" "select viewport" "delete viewport" mview fit mspace zoom window 25.5,22.5 445.5,319.5 pspace&lt;BR /&gt;layout new "Layout (02)" "select viewport" "delete viewport" mview fit mspace zoom window 25.5,337.5 445.5,634.5 pspace&lt;/P&gt;&lt;P&gt;empty line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the default viewport is not "mview fit", I need to delete it and create new. Though, I think the default viewport form can be adjusted to be "fit" the paperspace?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;How to select the viewport inside layout which is created default by autocad?&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 13:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7092851#M46207</guid>
      <dc:creator>AutoDesk_222</dc:creator>
      <dc:date>2017-05-18T13:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7093079#M46208</link>
      <description>&lt;P&gt;You can switch off the creation of layout viewports for new layouts by doing the following&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the command line type OPTIONS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Choose the DISPLAY tab&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bottom left hand side says LAYOUT ELEMENTS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;untick CREATE VIEWPORT IN NEW LAYOUT&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 14:38:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7093079#M46208</guid>
      <dc:creator>h_s_walker</dc:creator>
      <dc:date>2017-05-18T14:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7094670#M46209</link>
      <description>&lt;P&gt;In my appendix above (05-11-2017 / 4Layoutworking.xlsx) in the third Excelsheet tab,&lt;BR /&gt;There I had given you some commands and variables on the subject., without a long explanation, as one learns more by own research for the terms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Complementary to hwalker way over the GUI, the way over the UI&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SysVar: LAYOUTCREATEVIEWPORT&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, 19 May 2017 06:24:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7094670#M46209</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-05-19T06:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Command line command to move to layout and do other commands</title>
      <link>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7094778#M46210</link>
      <description>&lt;P&gt;Seeing that in a new viewport the only thing is a layout (unless you turn it off as stated above), then by selecting and deleting everything you only delete the viewport.&lt;/P&gt;
&lt;PRE&gt;layout new "Layout (01)" layout set "Layout (01)" erase all  mview fit mspace zoom window 25.5,22.5 445.5,319.5 pspace&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 May 2017 07:34:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-lt-forum/command-line-command-to-move-to-layout-and-do-other-commands/m-p/7094778#M46210</guid>
      <dc:creator>steven-g</dc:creator>
      <dc:date>2017-05-19T07:34:58Z</dc:date>
    </item>
  </channel>
</rss>

