<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AutoCAD Tips Blog &#187; shortcuts</title>
	<atom:link href="http://www.ellenfinkelstein.com/acadblog/tag/shortcuts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ellenfinkelstein.com/acadblog</link>
	<description>AutoCAD tips &#38; tutorials to help you work faster &#38; smarter</description>
	<lastBuildDate>Sun, 29 Jan 2012 20:18:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Create a custom keyboard shortcut</title>
		<link>http://www.ellenfinkelstein.com/acadblog/create-a-custom-keyboard-shortcut/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/create-a-custom-keyboard-shortcut/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 13:41:00 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=445</guid>
		<description><![CDATA[
			
				
			
		


<p>Would  you like to create a keyboard shortcut to your favorite command-option  combination? For example, I would like a version of the COPY command that doesn&#8217;t repeat, that is, that ends after one copy operation. Here are the steps:</p>

Enter cui to open the Customize User Interface dialog box.
In the Command List pane, click [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fcreate-a-custom-keyboard-shortcut%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fcreate-a-custom-keyboard-shortcut%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<div>
<div style="overflow: hidden; color: #000000; background-color: transparent; text-align: left; text-decoration: none; border: medium none;">
<p>Would  you like to create a keyboard shortcut to your favorite command-option  combination? For example, I would like a version of the COPY command that doesn&#8217;t repeat, that is, that ends after one copy operation. Here are the steps:</p>
<ol>
<li>Enter <span>cui</span> to open the Customize User Interface dialog box.</li>
<li>In the Command List pane, click the New button.</li>
<li>In the Properties pane, you can now specify your new command. Enter a name and a macro. If the macro is long, click the Ellipsis button at the right side of the Macro text box to open the Long String Editor. My macro was<span> </span>^C^C_select;\_copy;_previous;;\\;;</li>
<p><img class="aligncenter" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/autocad_tips-custom-keyboard-shortcut-copy1-2.PNG" alt="" width="364" height="255" /></p>
<li>In  the Customizations In All Files pane at the top, expand Partial CUI Files, then  Custom, then Keyboard Shortcuts, so you can see the Shortcut Keys item.</li>
</ol>
<p><img class="aligncenter" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/autocad_tips-custom-keyboard-shortcut-copy1-3.PNG" alt="" width="405" height="455" /></p>
<ol>
<li>Find your new command in the Command List pane (it&#8217;s listed  under the name you gave it and a tip is to choose Custom Commands from the drop-down list in that pane) and drag it to the Shortcut Keys item in the  top pane.</li>
<li>Click the command where it appears in the top pane. Its  Properties pane now shows a Key(s) item. Click that item and then click  its Ellipsis button. The Shortcut Keys dialog box opens.</li>
<p><img class="aligncenter" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/autocad_tips-custom-keyboard-shortcut-copy1-1.PNG" alt="" width="258" height="190" /></p>
<li>Press  the shortcut key combination you want to use and you can see if it&#8217;s  unassigned &#8212; or assigned to something you never use. Generally, it has to start with Ctrl, Ctrl+Shift, or Shift. Click OK.</li>
<li>Click OK to close the Customize User Interface dialog box.</li>
<li>Try out your new shortcut!</li>
</ol>
<p><strong>Note:</strong> For information on how to create a custom command, <a href="http://www.ellenfinkelstein.com/acadblog/tutorial-create-a-custom-command/">see this tip.</a></p>
<p>What keyboard shortcuts do you use? Leave a comment! Please also explain what they do, in case it isn&#8217;t obvious to everyone.</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/create-a-custom-keyboard-shortcut/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Productivity boost ideas</title>
		<link>http://www.ellenfinkelstein.com/acadblog/productivity-boost-ideas/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/productivity-boost-ideas/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 15:47:33 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[AutoLISP]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=62</guid>
		<description><![CDATA[
			
				
			
		
<p>Note: This is an article by Fran Golding, Senior Drafter at Parsons Brinckerhoff, a large planning, environment and infrastructure firm with offices in Australia and New Zealand. Perhaps you can add your own productivity boost ideas.</p>
<p>When I first started to drive a car, I had the feeling that I was not the one in control. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fproductivity-boost-ideas%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fproductivity-boost-ideas%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><em>Note: This is an article by Fran Golding, Senior Drafter at Parsons Brinckerhoff, a large planning, environment and infrastructure firm with offices in Australia and New Zealand. Perhaps you can add your own productivity boost ideas.</em></p>
<p>When I first started to drive a car, I had the feeling that I was not the one in control. The car was controlling me. It took some</p>
<div class="wp-caption alignright" style="width: 346px"><img title="Out of control" src="http://www.ellenfinkelstein.com/autocadtips/images/acadtips_productivity_boost-3.jpg" alt="Out of control" width="336" height="252" /><p class="wp-caption-text">Out of control</p></div>
<p>time and practice before that changed. Likewise, when I started to use AutoCAD, I had the same feeling. All sorts of things happened which I did not understand. With time and practice (quite a lot of time and practice, I might add), that changed. As with driving a car, I did the same functions, the same way in which I was taught. It wasn’t until I had more confidence in what I was doing that I branched out and tried new ways of doing things. Thence came the beginning of my productivity boost!</p>
<p>Unlike driving a car, AutoCAD performs the same functions in many different ways. You can start the PLOT command by typing plot at the command line, choosing a toolbar or ribbon icon, or choosing File&gt; Print from the drop-down menu (with variations depending on your release and workspace). Any of these will perform the same result. When you are first learning to “drive” AutoCAD, chances are you will generally follow the exact method which you were taught. It’s not until you understand how the program works that you can speed up what you do by creating shortcuts.</p>
<p>I am always surprised to find that users with many years experience still perform functions the long way. Often it depends on what (or who) they have been exposed to at their jobs. It rings true for any trade – if you have an innovative mentor, you will be more innovative! With the technological information super highway we have so much information at our finger tips. There is just no need to plod along doing the same things, the same way, year after year, after year!</p>
<p>“How much difference can it make?” I hear you asking. If we measure key strokes performed in a day, then reduce them by only one key stroke, it compounds to a staggering saving in a year.</p>
<p>To increase your productivity, you don’t need to reinvent the wheel. If you don’t know where to start and you don’t have a resident CAD guru in your office, don’t despair! An Internet search will return countless results. Don’t be put off. Start your journey with that one step. It will lead to the next in a very short time.</p>
<h3>Create aliases</h3>
<p>The very first step which I took was to add some command aliases to my ACAD.PGP file. Aliases allow you to type one letter at the command line instead of the full word, such as E for Erase, C for Copy or M for Move. They cut out many key strokes. <strong>Editors note:</strong> In AutoCAD 2010, go to Manage tab&gt; Customization panel&gt; Edit Aliases to customize acad.pgp. You can also open acad.pgp from Windows in a text editor; its location varies according to your release and Windows version.</p>
<div class="wp-caption aligncenter" style="width: 331px"><img title="Part of the acad.pgp file" src="http://www.ellenfinkelstein.com/autocadtips/images/acadtips_productivity_boost-2.png" alt="Part of the acad.pgp file" width="321" height="440" /><p class="wp-caption-text">Part of the acad.pgp file</p></div>
<h3>Write simple AutoLISP routines</h3>
<p>The next step which I took was to write some very simple AutoLISP routines. I began my own AutoLISP file which I added to the Startup Suite. This means you do not need to load the routines individually each time you start AutoCAD. <strong>Editors note:</strong> To add a .lsp file to the Startup Suite, use the APPLOAD command. In the Load/Unload Applications dialog box, locate the file and drag it to the Startup Suite icon.</p>
<div class="wp-caption aligncenter" style="width: 275px"><img title="Drag AutoLISP files to the Startup Suite" src="http://www.ellenfinkelstein.com/autocadtips/images/acadtips_productivity_boost-1.png" alt="Drag AutoLISP files to the Startup Suite" width="265" height="269" /><p class="wp-caption-text">Drag AutoLISP files to the Startup Suite</p></div>
<p>Some examples of these very simple routines are getting distance measurements with selected object snaps. For example, I sometimes need to obtain a distance nearest an object or line, then perpendicular to an object or line. The coding for this looks like: <span class="prompt">(defun C:DNP () (command “DIST” “NEA” pause “PER”))</span></p>
<p>Then, typing DNP at the command line allows me get the information I need. You might say that you can easily set OSNAPS and achieve the same thing, but the above coding ensures that the correct object snap is used every time. This can often be critical.</p>
<p><strong>Editor&#8217;s note:</strong> The syntax is <span class="prompt">(defun C:[name] () (command &#8220;DIST&#8221; &#8220;[osnap]&#8221; pause &#8220;[osnap]&#8220;))</span> where <span class="prompt">[name]</span> is the name of the custom command you are creating and what you type to execute it and <span class="prompt">[osnap]</span> is any object snap you want to use. The pause command stops the execution of the routine for user input, in this case, specifying a point.</p>
<p>From here there are many more such command combinations that you can write using the same syntax, and substituting different object snaps, such as:</p>
<ul>
<li>DII (distance from intersection to intersection):<br />
<span class="prompt">(defun C:Dii () (command “DIST” “INTERSECTION” pause “INTERSECTION”))</span></li>
<li>DEE (distance from endpoint to endpoint)<br />
<span class="prompt">(defun C:DEE () (command “DIST” “ENDPOINT” pause “ENDPOINT”))</span></li>
<li>DEP (distance from endpoint to perpendicular)<br />
<span class="prompt">(defun C:DEP () (command “DIST” “ENDPOINT” pause “PERPENDICULAR”))</span></li>
</ul>
<p>Likewise, you can write many AutoLISP routines to draw lines using selected object snaps:</p>
<ul>
<li>LINE command from Nearest, then Perpendicular to an object or line:<br />
<span class="prompt">(defun C:LNP () (command “LINE” “NEA” pause “PER”))</span></li>
<li>LEE (line from endpoint to endpoint):<br />
<span class="prompt">(defun C:LEE () (command “LINE” “ENDPOINT” pause “ENDPOINT”))</span></li>
<li>LME (line midpoint to endpoint):<br />
<span class="prompt">(defun C:LME () (command “LINE” “MIDPOINT” pause “ENDPOINT”))</span></li>
</ul>
<p><strong>Editor&#8217;s note: </strong>Here, the syntax is similar, but uses the LINE command instead of the DIST command.</p>
<p>Once you start writing these, you can easily add others. Even slightly more complex AutoLISP <ins datetime="2009-08-30T16:27" cite="mailto:ellen"> </ins>routines will become easy to write. For example, you can write AutoLISP routines to change system variables such as turning wipe out frames on or off.</p>
<ul>
<li>To turn wipe out frames on:<br />
<span class="prompt">(defun C:WF1 () (command &#8220;WIPEOUT&#8221; &#8220;FRAME&#8221; “ON&#8221;))</span></li>
<li>To turn wipe out frames off:<br />
<span class="prompt">(defun C:WF01 () (command &#8220;WIPEOUT&#8221; &#8220;FRAME&#8221; &#8220;OFF&#8221;))</span></li>
</ul>
<p>If you look closely at the coding, you will notice that the text inside the inverted commas [quotation marks] is what you would normally type at the command line.</p>
<p>Another series of handy AutoLISP routines is creating frequently used layers, setting their colour and setting them to current. For example, the company I work for specifies that all dimensions are drawn on a layer called “DIMS” which has the color 2 (yellow). The AutoLISP to create this layer looks like: <span class="prompt">(defun C:D2 () (command “-LAYER” “N” “DIMS” “S” “DIMS” “C” “2” “”))</span></p>
<p>You can then write extras to add many more layers such as a layer to draw hatches would look exactly the same as for DIMS with the appropriate substitutes. For example: <span class="prompt">(defun C:H2 () (command “-LAYER” “N” “HATCHES” “S” “DIMS” “C” “2” “”))</span></p>
<p>My company also has a dedicated layer for inserting external reference drawings called XREF. So, the code to create this and set it current looks like: <span class="prompt">(defun C:X2 () (command “-LAYER” “N” “XREF” “S” “DIMS” “C” “2” “”))</span></p>
<p>Here are some more of my favourites:</p>
<ul>
<li>To lock or unlock viewports:<br />
<span class="prompt">(defun C:V0 () (command  “MVIEW”      “LOCK” “OFF” pause “”))<br />
(defun C:V1 () (command  “MVIEW”      “LOCK” “ON” pause “”))</span></li>
<li>To fillet lines using a zero radius:<br />
<span class="prompt">(defun C:F0 () (command  “FILLET”      “R” “0”) (command “FILLET”))</span></li>
<li>To fillet using a supplied radius:<br />
<span class="prompt">(defun C:FR () (setq rad (getstring “\n Enter Radius:”))<br />
(command  “FILLET” “R” rad)<br />
(command      “FILLET” pause pause)<br />
(princ))</span></li>
</ul>
<p><strong>Editor&#8217;s note:</strong> This last routine uses the setq AutoLISP command to set a variable named rad to the result of user input in response to the Enter Radius: prompt. It then uses the result to set the fillet radius.</p>
<p>The key to successfully boosting your productivity is to keep on learning. You will be surprised how much greater satisfaction you will get out of increasing your learning. Greater productivity leads to a win-win situation. Your employer will be pleased, and who knows — that may lead to greater remuneration. In this article, I want to encourage all users to embrace the latest and strive to be more productive each day!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/productivity-boost-ideas/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Keyboard shortcuts</title>
		<link>http://www.ellenfinkelstein.com/acadblog/keyboard-shortcuts/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/keyboard-shortcuts/#comments</comments>
		<pubDate>Wed, 17 Oct 2001 14:41:56 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Drawing]]></category>
		<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=758</guid>
		<description><![CDATA[
			
				
			
		
<p>Keyboard shortcuts can make your work go much faster. You can use the default keyboard shortcuts and create your own.</p>
<p>Here are the defaults that come with AutoCAD:</p>
<p>F1: Displays Help</p>
<p>F2: Toggles the Text Window</p>
<p>F3: Toggles OSNAP</p>
<p>F4: Toggles Tablet mode</p>
<p>F5: Toggles ISOPLANE</p>
<p>F6: Toggles Dynamic UCS</p>
<p>F7: Toggles GRID mode</p>
<p>F8: Toggles ORTHO mode</p>
<p>F9: Toggles SNAP mode</p>
<p>F10: Toggles Polar Tracking</p>
<p>F11: [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fkeyboard-shortcuts%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fkeyboard-shortcuts%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Keyboard shortcuts can make your work go much faster. You can use the default keyboard shortcuts and <span id="IL_AD7">create</span> your own.</p>
<p>Here are the defaults that come with <span id="IL_AD2">AutoCAD</span>:</p>
<p>F1: Displays Help</p>
<p>F2: Toggles the Text Window</p>
<p>F3: Toggles OSNAP</p>
<p>F4: Toggles Tablet mode</p>
<p>F5: Toggles ISOPLANE</p>
<p>F6: Toggles Dynamic UCS</p>
<p>F7: Toggles GRID mode</p>
<p>F8: Toggles ORTHO mode</p>
<p>F9: Toggles SNAP mode</p>
<p>F10: Toggles Polar Tracking</p>
<p>F11: Toggles Object Snap Tracking</p>
<p>F12: Toggles Dynamic Input</p>
<p>CTRL+0:    Toggles Clean Screen</p>
<p>CTRL+1:    Toggles the Properties palette</p>
<p>CTRL+2:    Toggles the DesignCenter palette</p>
<p>CTRL+3:    Toggles the Tool Palettes Window</p>
<p>CTRL+4:    Toggles the <span id="IL_AD6">Sheet Set</span> Manager</p>
<p>CTRL+6:    Toggles the dbConnect Manager</p>
<p>CTRL+7:    Toggles the Markup Set Manager</p>
<p>CTRL+8:    Toggles the QuickCalc calculator palette</p>
<p>CTRL+9:    Toggles the command window</p>
<p>CTRL+A:    Selects all objects in the drawing</p>
<p>CTRL+SHIFT+A:    Toggles Groups</p>
<p>CTRL+B:    Toggles Snap mode</p>
<p>CTRL+C:    Copies objects to Clipboard</p>
<p>CTRL+SHIFT+C:    Copies objects to Clipboard with Base Point</p>
<p>CTRL+D:    Toggles Dynamic UCS</p>
<p>CTRL+E:    Cycles through isometric planes</p>
<p>CTRL+F:    Toggles running object snaps</p>
<p>CTRL+G:    Toggles the grid</p>
<p>CTRL+H:    Toggles PICKSTYLE</p>
<p>CTRL+I:    Toggles COORDS</p>
<p>CTRL+J; CTRL+M:    <span id="IL_AD4">Repeats</span> the last command (<span id="IL_AD3">pressing</span> Enter does the same)</p>
<p>CTRL+L:    Toggles Ortho mode</p>
<p>CTRL+N:    Creates a new drawing</p>
<p>CTRL+O:    Opens an existing drawing</p>
<p>CTRL+P:    Prints/plots thecurrent drawing</p>
<p>CTRL+R:    Cycles through layout viewports</p>
<p>CTRL+S:    Saves the current drawing</p>
<p>CTRL+SHIFT+S:    Opens the Save As dialog box</p>
<p>CTRL+T:    Toggles TABLET mode</p>
<p>CTRL+V:    Pastes data from the Clipboard</p>
<p>CTRL+SHIFT+V:    Pastes data from the Clipboard as a Block</p>
<p>CTRL+X:    Cuts objects to Clipboard</p>
<p>CTRL+Y:    Cancels the preceding Undo action</p>
<p>CTRL+Z:    Reverses the last action</p>
<p>CTRL+[;   CTRL+\:    Cancels the current command (pressing Esc does the same)</p>
<p>CTRL+PAGE UP:    Moves to the next layout tab to the left of the current tab</p>
<p>CTRL+PAGE DOWN:    Moves to the next layout tab to <span id="IL_AD5">the right</span> of the current tab</p>
<p>ALT+F11:    Displays the <span id="IL_AD1">Visual Basic</span> Editor</p>
<p>ALT+F8: Displays the Macros dialog box</p>
<p>You can create your own keyboard shortcuts. See my tip, &#8220;<a href="../../../AutoCAD_tips_custom_shortcut.html">Create a custom keyboard shortcut</a>&#8221; for the detailed steps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/keyboard-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Automate tasks with a script file</title>
		<link>http://www.ellenfinkelstein.com/acadblog/tutorial-automate-tasks-with-a-script-file/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/tutorial-automate-tasks-with-a-script-file/#comments</comments>
		<pubDate>Wed, 07 Mar 2001 16:26:01 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=579</guid>
		<description><![CDATA[
			
				
			
		
<p>A script is a macro,  a list of commands that you can run all at once, and as many times as  necessary, allowing you to automate tasks that would take a long time if  you did them manually. Scripts can be very powerful and you can run them on objects in one [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Ftutorial-automate-tasks-with-a-script-file%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Ftutorial-automate-tasks-with-a-script-file%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A <span id="IL_AD8">script</span> is a <span id="IL_AD3">macro</span>,  a list of commands that you can run all at once, and as many times as  necessary, allowing you to automate tasks that would take a long time if  you did them manually. <span id="IL_AD9">Scripts</span> can be very powerful and you can run them on objects in one drawing, or on many drawings. Scripts have been around for many years and many people have a library of many scripts that they use.</p>
<p>See my tip, <a href="../../../autocadtips/AutoCAD_tips_action_recorder.html">Record Actions with the Action Recorder</a>, for a way to record your actions in <span id="IL_AD1">AutoCAD</span> 2009 and later.</p>
<p>Here are 3 important points that you need to know about scripts:</p>
<ol>
<li>Scripts are text-only (ASCII) files. You usually create them in <span id="IL_AD2">Notepad</span>.</li>
<li>They have an SCR filename extension, so be sure to save them that way.</li>
<li>Scripts use command-line syntax only. They can&#8217;t access dialog boxes, toolbar buttons, etc.</li>
</ol>
<p>Follow these steps to create a script file:</p>
<ol>
<li>Set the FILEDIA system variable to 0, to stop dialog boxes that access files from opening.</li>
<li>Run through the steps that you want to automate, using the command line only. Write down (or type in Notepad) the steps. You can copy your command line entry directly to Notepad. Press F2 to open the AutoCAD Text Window for that purpose.</li>
<li> Press Enter at the end of each command or use a blank space, which is the equivalent of pressing Enter. The script reads every space, so you need to get it exactly right! The script is easier to read if you put each command on its own line.</li>
<li>Enclose layer names or files names (and file paths) that contain spaces in quotation marks.</li>
<li>Insert comments periodically for explanation. To insert a comment, precede the text with a semicolon.</li>
<li>Save the file with an SCR filename extension, by typing <em>.scr</em> after the file name.</li>
<li>Set FILEDIA back to 1.</li>
</ol>
<p>To run and test the script file from within a drawing, use the SCRIPT command. A dialog box opens, where you can choose your script file. Click Open and the script runs.</p>
<p>Let&#8217;s say that you want to run a script file on more than one  drawing. You can use the OPEN, CLOSE, and QSAVE commands to open  drawings, run some commands, save the drawings, and then close them. You  can still start the script from within the 1st drawing, but you can also start a script file as you open AutoCAD.</p>
<p>To do so, you change the expression that Windows uses to open AutoCAD. The best way to do this is to use the <span id="IL_AD6">shortcut</span> on your <span id="IL_AD5">Desktop</span>. Follow these steps:</p>
<ol>
<li>Right-click the shortcut and choose Properties.</li>
<li>Click the Shortcut tab.</li>
<li>At the end of the existing expression (which reads something like C:\Program Files\AutoCAD 2009\acad.exe) add a space and then the following:</li>
<p align="center">/b script_name</p>
<li>Click OK.</li>
<li>Double-click the shortcut to open AutoCAD and run the script.</li>
</ol>
<p>Autodesk provides a <span id="IL_AD4">free program</span> for running script files on <span id="IL_AD7">multiple</span> drawings, called <a href="http://usa.autodesk.com/adsk/servlet/item?siteID=123112&amp;id=4091678&amp;linkID=9240618">ScriptPro.  The file is called scriptpro.exe</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/tutorial-automate-tasks-with-a-script-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Speed up your work with command aliases</title>
		<link>http://www.ellenfinkelstein.com/acadblog/speed-up-your-work-with-command-aliases/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/speed-up-your-work-with-command-aliases/#comments</comments>
		<pubDate>Wed, 07 Feb 2001 15:44:26 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[polyline]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=567</guid>
		<description><![CDATA[
			
				
			
		
<p>When I give instructions, I usually provide menu, toolbar, or ribbon access for commands, but  the quickest way to work is to type command aliases on the command line.  You just need to know them. Print out this list and keep it by your computer for a couple of weeks until  you [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fspeed-up-your-work-with-command-aliases%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fspeed-up-your-work-with-command-aliases%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>When I give instructions, I usually provide menu, toolbar, or ribbon access for commands, but  the quickest way to work is to type command aliases on the command line.  You just need to know them. <span id="IL_AD6">Print</span> out this list and keep it by your computer for a couple of weeks until  you learn them. You&#8217;ll be amazed at how much faster you work.</p>
<table border="1" width="200" align="center">
<tbody>
<tr>
<td width="95">ARC</td>
<td width="89">a</td>
</tr>
<tr>
<td>BLOCK</td>
<td>b</td>
</tr>
<tr>
<td>CIRCLE</td>
<td>c</td>
</tr>
<tr>
<td>COPY</td>
<td>co</td>
</tr>
<tr>
<td>ERASE</td>
<td>e</td>
</tr>
<tr>
<td>EXPLODE</td>
<td>x</td>
</tr>
<tr>
<td>EXTEND</td>
<td>ex</td>
</tr>
<tr>
<td>FILLET</td>
<td>f</td>
</tr>
<tr>
<td>HATCH</td>
<td>h</td>
</tr>
<tr>
<td>INSERT</td>
<td>i</td>
</tr>
<tr>
<td>LAYER</td>
<td>la</td>
</tr>
<tr>
<td>LINE</td>
<td>l</td>
</tr>
<tr>
<td>MOVE</td>
<td>m</td>
</tr>
<tr>
<td>MEXT</td>
<td>t</td>
</tr>
<tr>
<td>OPTIONS</td>
<td>op</td>
</tr>
<tr>
<td>PLINE</td>
<td>pl</td>
</tr>
<tr>
<td height="25">PROPERTIES</td>
<td>pr</td>
</tr>
<tr>
<td>ROTATE</td>
<td>ro</td>
</tr>
<tr>
<td>TABLE</td>
<td>tb</td>
</tr>
<tr>
<td>TOOLPALETTES</td>
<td>tp</td>
</tr>
<tr>
<td>TRIM</td>
<td>tr</td>
</tr>
<tr>
<td>UNDO</td>
<td>u</td>
</tr>
<tr>
<td>XREF</td>
<td>xr</td>
</tr>
<tr>
<td>ZOOM</td>
<td>z</td>
</tr>
</tbody>
</table>
<p><span id="IL_AD2">AutoCAD</span> comes with a  large number of aliases already made for you. You edit the acad.pgp file  to add to these, or change them. The  acad.pgp file is a <span id="IL_AD1">text file</span> and you can edit it directly, but the  easiest way is to use the Express Tools ALIASEDIT command.</p>
<p><span>John Palmer</span> wrote in: &#8220;I use PE (polyline edit) when I want to turn a line into a polyline.&#8221;</p>
<p><span>Brian A. Glover</span> wrote in: &#8220;Here are a few of the keyboard aliases that I use all of the time:</p>
<p>AS    Align Space<br />
CS    Change Space<br />
CC    Circle (I changed &#8216;C&#8217; to copy because I copy 100 times a day, and <span id="IL_AD5">draw</span> maybe 10 circles a week)<br />
CB    Copy Base<br />
ET    Enclose Text<br />
XX    Extrim<br />
QQ   Quick Leader<br />
TTF   Text-to-Front</p>
<p>I try to use keys <span id="IL_AD4">close</span> together on the keyboard, or use the same key so I don&#8217;t have to take my eyes off the screen when I&#8217;m working.&#8221;</p>
<p><span><span id="IL_AD3">Gerald</span> Goodlander</span> wrote in: &#8220;I changed the following because Copy is used much more than Circle:</p>
<p>CI Circle<br />
C Copy</p>
<p>Do you have your own favorites? Leave a comment and share them with others!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/speed-up-your-work-with-command-aliases/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Manage the user interface&#8211;the ribbon and the menu bar</title>
		<link>http://www.ellenfinkelstein.com/acadblog/manage-the-user-interface-in-2009/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/manage-the-user-interface-in-2009/#comments</comments>
		<pubDate>Wed, 06 Dec 2000 11:48:19 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[ribbon]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=497</guid>
		<description><![CDATA[
			
				
			
		


<p>AutoCAD 2009 introduced  the ribbon, a completely different way of specifying commands. Some  people like it; some don&#8217;t. However, if you want to use the ribbon (and  it&#8217;s not going away), you can create a hybrid user interface that gives you the best of all worlds.</p>
<p>One reason to continue with menus is [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fmanage-the-user-interface-in-2009%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fmanage-the-user-interface-in-2009%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<div>
<div style="overflow: hidden; color: #000000; background-color: transparent; text-align: left; text-decoration: none; border: medium none;">
<p><span id="IL_AD2">AutoCAD</span> 2009 introduced  the ribbon, a completely different way of specifying commands. Some  people like it; some don&#8217;t. However, if you want to use the ribbon (and  it&#8217;s not going away), you can create a hybrid user <span id="IL_AD1">interface</span> that gives you the best of all worlds.</p>
<p>One reason to continue with menus is if you have third-party or customized menus that you need to continue using.</p>
<p><span>Vivian Takagaki</span> wrote: &#8220;I made a big jump from 2002 to 2009 and I still have vendor <span id="IL_AD4">toolbars</span> that haven&#8217;t upgraded to ribbons.  To get both ribbons and toolbars I did the following: (Saved my current settings to a Profile &#8211; just in case) Switched to Acad Classic and set up all my toolbars I used. Typed <span>_Ribbon</span> to get the new interface. And now I have both. I can also minimize the ribbon interface to save space to Tabs or Panel Titles. (And saved my new settings to a Profile &#8211; just in case)&#8221;</p>
<p>Once you have the view you like, click the Workspace <span id="IL_AD5">Switching</span> button on the status bar and choose Save Current As to save the new workspace.</p>
<p>Another option is to turn the menu bar on and off as needed. In  this way, you can work with the ribbon, but return to the menu when  necessary. The system variable is <strong>menubar</strong> and 0 turns it off, while 1 turns it on.</p>
<p><span>Russ Green</span> wrote a DIESEL expression that toggles the menu bar on and off and assigned it to a keyboard shortcut (Sift+Z). Here it is:</p>
<p>$M=$(if,$(eq,$(getvar,menubar),0),^C^Cmenubar;1;,^C^Cmenubar;0;)</p>
<p>Here&#8217;s how to create that keyboard shortcut:</p>
<ol>
<li>Enter <span>cui</span> on the command line to open the Custom User Interface <span id="IL_AD3">dialog box</span>.</li>
<li>In the Command List pane, click the Create a New Command button.</li>
<li>In the Properties pane, enter a name and description for the command.</li>
<li>Click in the Macro box, and then click the Ellipsis button at the right to open the Long String Editor dialog box.</li>
<li>Enter the expression shown above.</li>
<li>Back in the Command List, choose Custom Commands from the  drop-down list of commands to more easily find the new command and  choose it.</li>
<li>In the customizations in All CUI Files pane, expand the Keyboard Shortcuts item.</li>
<li>Drag the new command to the Shortcut Keys item under Keyboard Shortcuts.</li>
<li>In the Properties pane, expand the Access section if necessary  and click in the Keys Section. Click the Ellipsis button to open the  Shortcut Keys dialog box</li>
<li>Press the desired shortcut key combination on your keyboard. Click OK.</li>
<li>Click Apply, then click OK to return to your drawing.</li>
</ol>
<p>Now, you can just press your keyboard shortcut to toggle the menu bar on and off.</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/manage-the-user-interface-in-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create a shortcut to a template and workspace</title>
		<link>http://www.ellenfinkelstein.com/acadblog/create-a-shortcut-to-a-template-and-workspace/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/create-a-shortcut-to-a-template-and-workspace/#comments</comments>
		<pubDate>Wed, 13 Sep 2000 08:56:07 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=466</guid>
		<description><![CDATA[
			
				
			
		


<p>You probably have a shortcut to AutoCAD on your desktop. If you do, you can customize how that shortcut works. You can even create several shortcuts and tell them to open AutoCAD in different ways. This is called using command-line switches.</p>
<p>First, select the shortcut and press Ctrl+C. Then press Ctrl+V to create a duplicate. Let&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fcreate-a-shortcut-to-a-template-and-workspace%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fcreate-a-shortcut-to-a-template-and-workspace%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<div>
<div style="overflow: hidden; color: #000000; background-color: transparent; text-align: left; text-decoration: none;">
<p>You probably have a shortcut to <span id="IL_AD1">AutoCAD</span> on your desktop. If you do, you can customize how that shortcut works. You can even create several shortcuts and tell them to open AutoCAD in different ways. This is called using <em>command-line switches</em>.</p>
<p>First, select the shortcut and press Ctrl+C. Then press Ctrl+V to create a duplicate. Let&#8217;s say you want the new shortcut to create a new drawing with a specific template and workspace. Name the shortcut something like <strong>AutoCAD 2007 acad3d.dwt</strong>. (Acad3d.dwt is the default 3D template.)</p>
<p>Right-click the new shortcut and choose Properties to open its Properties dialog box.</p>
<p><img class="aligncenter" title="the Properties dialog box" src="http://www.ellenfinkelstein.com/images/acadtips_shortcut2template-1.jpg" alt="" width="275" height="376" /></p>
<div>
<div style="overflow: hidden; color: #000000; background-color: transparent; text-align: left; text-decoration: none;">
<p>The Target <span id="IL_AD3">text box</span> contains the current command. This is what <span id="IL_AD5">Windows</span> executes when you double-click the shortcut. Notice the quotation marks around it; these are necessary whenever any part of the command has spaces. In this case the <span id="IL_AD2">Program</span> Files and AutoCAD folders have a space.</p>
<p>Click to the right of the last quotation mark and press the Spacebar. Then you add your switches.</p>
<p>Here&#8217;s a list of all the possible switches you can use:</p>
<ul>
<li>/b opens a drawing and runs a script on it. You need the full drawing path. Example: /b &#8220;c:\drawings\clients and odd jobs\Jones&#8221; /b setup. Notice the quotation marks around the path because of the spaces.</li>
<li>/ld loads an ARX or DBX file. For example, /ld compare.dbx</li>
<li>/nohardware disables hardware acceleration.</li>
<li>/nologo opens AutoCAD without displaying the splash screen. This saves you at least a second.</li>
<li>/nossm opens AutoCAD without the Sheet Set Manager.</li>
<li>/p opens AutoCAD with a saved profile. Example: /p ellen. You need to have saved the profile.</li>
<li>/pl publishes a drawing set description (DSD) file</li>
<li>/r resets AutoCAD to the default configuration file.</li>
<li>/s specifies support folders (when you want to use support files that aren&#8217;t in AutoCAD&#8217;s support file search path). Separate folders with a semi-colon (;) without spaces between them.</li>
<li>/set opens AutoCAD and the named sheet set. For example, /set sanchez-house</li>
<li>/t opens a new drawing based on a template. Example: /t b-arch. This is the one we want for our example.</li>
<li>/v opens a drawing with a specified named view. Example: c:\drawings\3479a.dwg /v elevation. Of course, the view needs to exist.</li>
<li>/w opens AutoCAD with the specified worksheet. Example: /w ab3d. This is the other one we want to use for our example.</li>
</ul>
<p>So, I changed the command line to the following:</p>
<p>&#8220;C:\Program Files\AutoCAD 2007\acad.exe&#8221; /t acad3d.dwt /w ab3d</p>
<p>This opens AutoCAD with the acad3d.dwt template and in the ab3d workspace.</p>
<p><img class="aligncenter" title="AutoCAD with the acad3d.dwt template" src="http://www.ellenfinkelstein.com/images/acadtips_shortcut2template-2.jpg" alt="" width="324" height="234" /></p>
<p>Ready to roll!</p>
</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/create-a-shortcut-to-a-template-and-workspace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transparently enter 3D Orbit in 2007</title>
		<link>http://www.ellenfinkelstein.com/acadblog/transparently-enter-3d-orbit-in-2007/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/transparently-enter-3d-orbit-in-2007/#comments</comments>
		<pubDate>Wed, 19 Apr 2000 15:24:23 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[new features]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=374</guid>
		<description><![CDATA[
			
				
			
		


<p>One of the nicest new features of 2007 is the ease with which you can change your viewpoint using a poorly-documented keyboard shortcut for 3D Orbit. Press and hold Shift and press your mouse&#8217;s wheel (or  middle button) to temporarily and transparently enter 3D Orbit.</p>
<p>While doing this, use that wheel to drag in any [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Ftransparently-enter-3d-orbit-in-2007%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Ftransparently-enter-3d-orbit-in-2007%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<div>
<div style="overflow: hidden; color: #000000; background-color: transparent; text-align: left; text-decoration: none; border: medium none;">
<p>One of the nicest new features of 2007 is the ease with which you can change your viewpoint using a poorly-documented keyboard <span id="IL_AD1">shortcut</span> for 3D Orbit. Press and hold Shift and press your mouse&#8217;s wheel (or  middle button) to temporarily and transparently enter 3D Orbit.</p>
<p>While doing this, use that wheel to drag in any direction and  your viewpoint changes. When you&#8217;re done, just release the Shift key and  mouse wheel.</p>
<p>This is so fast and easy, you won&#8217;t believe that you once entered  a 3D Orbit mode, changed your viewpoint and then exited. No more  entering and exiting. Just use the keyboard combination and change your  viewpoint. You&#8217;ll find yourself doing this many times as you work,  completely intuitively.</p>
<p>Even better, you can still use the trick of selecting an object  to orbit just that object. This is a great technique when you have a  large drawing but want to focus on one object.</p>
<p>This little keyboard shortcut ranks up there as one of my favorite 2007 features.</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/transparently-enter-3d-orbit-in-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

