<?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>CAD Notes&#187; AutoCAD Tips</title>
	<atom:link href="http://cad-notes.com/category/autocad/autocad-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://cad-notes.com</link>
	<description>CAD Tutorials and Best Practices for professionals and students</description>
	<lastBuildDate>Mon, 06 Feb 2012 00:46:22 +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>3 Construction or Reference Objects We Rarely Use</title>
		<link>http://cad-notes.com/2012/01/3-construction-or-reference-objects-we-rarely-use/</link>
		<comments>http://cad-notes.com/2012/01/3-construction-or-reference-objects-we-rarely-use/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 07:43:30 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[autolisp]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[point]]></category>
		<category><![CDATA[RAY]]></category>
		<category><![CDATA[XLINE]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4415</guid>
		<description><![CDATA[If you often need to create construction or reference objects in AutoCAD, have you tried XLINE, RAY, and point? XLINE and RAY are very useful to create construction lines quickly. And points, can help you to snap to a point quickly in crowded drawings!<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linkedin.com/groups/Im-looking-AutoCAD-tips-share-2131397.S.71704994">I posted a request</a> in <a href="http://www.linkedin.com/groups/AutoCAD-Exchange-2131397">AutoCAD Exchange group on LinkedIn</a>, asking the members to share their AutoCAD tips.</p>
<p><a href="http://nl.linkedin.com/pub/harold-reuvers/8/b87/744">Harold Reuvers</a> shares he loves XLINE and he created a macro to create horizontal and vertical XLINE quickly. <a href="http://www.linkedin.com/pub/al-popovich/41/925/898">Al Popovich</a> shares his favorite object: point.</p>
<p>They remind me about AutoCAD entities/objects I rarely use. I often create elevation views by projecting a floor plan, but I don’t use XLINE! I literally draw lines by clicking a point from referenced object and another point at where I want the line ends.</p>
<p>Let’s see these objects/entities that we can use for creating quick reference or construction.</p>
<h1>The 3 objects</h1>
<h2>XLINE</h2>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="XLINE" src="http://cad-notes.com/wp-content/uploads/2012/01/XLINE.png" alt="XLINE" width="228" height="171" border="0" /></p>
<p>You can activate XLINE by typing it or accessing from home tab of your ribbon. It’s on draw panel. You have to expand it before you can see this tool.</p>
<p>XLINE will create infinite line that you can use as reference or construction. It’s much better than if you click two points to create a reference line!</p>
<p>You can use it to trim objects too. And if you trim an XLINE, it will convert to a line.</p>
<p>This is very useful for creating elevation/section view from a floor plan. Or other drawing that’s created by referencing from other drawing.</p>
<h2>RAY</h2>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="ray" src="http://cad-notes.com/wp-content/uploads/2012/01/ray.png" alt="ray" width="225" height="70" border="0" /></p>
<p>Ray is similar with XLINE. The difference is, you define two points: start point and direction. I prefer XLINE to help me complete my task. But if you need to create several infinite lines from a point with different angles, this is the right tool for you.</p>
<h2>POINT</h2>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="point" src="http://cad-notes.com/wp-content/uploads/2012/01/point.png" alt="point" width="226" height="70" border="0" /></p>
<p>Point is point. We use it to create point references. In a very crowded drawing, you may find it’s not so easy to snap to end point or intersection. You need to some quite close until you can comfortably snap to a reference. If you place points in locations you are regularly snap to, you can quickly find a point by override <a href="http://cad-notes.com/2010/02/autocad-precise-input-drafting-tools/">your object snap</a> to node.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="snap_to_node" src="http://cad-notes.com/wp-content/uploads/2012/01/snap_to_node.png" alt="snap_to_node" width="219" height="151" border="0" /></p>
<h1>Bonus tip</h1>
<p>Those tools are already very useful as they are. Let’s see some tips so you can use them more efficiently.</p>
<h2>Macro to create horizontal/vertical XLINE quickly</h2>
<p>We, AutoCAD users always look for faster way to work. At least less key strokes to use AutoCAD tools.</p>
<p>This is the original tip from Harold Reuvers.</p>
<h3>Using AutoLISP program</h3>
<p>You can create an AutoLISP program using this code to create horizontal XLINE only by one character:</p>
<p><code>(defun c:H ()</code></p>
<p><code> (command "XLINE" "H" pause) </code></p>
<p><code>) </code></p>
<p><code></code>Not familiar with AutoLISP? You can <a href="http://cad-notes.com/2010/11/your-first-autolisp-program-zoom-to-origin/">try to create your first one by following this tutorial</a>. Use the code above for your program.</p>
<h3>Using macro for CUI or tool palettes</h3>
<p>If you prefer to use macro, you can use this code, and place it in toolbar or ribbon by modifying CUI. Or you can place it in tool palettes:</p>
<p><code>^C^C_XLINE;H; </code></p>
<p>If you want to place it in ribbon/toolbar, <a href="http://cad-notes.com/2009/08/creating-new-command-in-autocad/">learn how you can create new command in CUI</a>. And if you prefer to place it in tool palettes, <a href="http://cad-notes.com/2011/04/how-to-add-action-recorder-macro-to-tool-palettes/">read how you can do it here</a>.</p>
<p>For vertical XLINE, you can change H to V. Those two types of XLINE are the most used (at least for me). But I prefer to use XZ and XX instead of V and H. They will not replace default AutoCAD alias, and close to each other.</p>
<h2>Point style</h2>
<p>If you are not familiar with point yet, you may think it’s useless because it’s difficult to see. You can change point style for better visibility.</p>
<p>Type DDPTYPE then enter.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="point_style" src="http://cad-notes.com/wp-content/uploads/2012/01/point_style.png" alt="point_style" width="258" height="337" border="0" /></p>
<p>Choose the one that you think most suitable for you.</p>
<blockquote><p>Hint: Change point style to blank when you plot your drawing. AutoCAD will plot points as displayed on your screen.</p></blockquote>
<h1>Conclusion</h1>
<p>There are so many AutoCAD tools. Some of them are overlooked and we never use them. It’s not really necessary to know all the tools, but it would be great if we know the tools before deciding not to use them.</p>
<p>Do you use tools that people rarely use? And have you used these three tools above?</p>
<p>Thank you to Harold Reuvers and Al Popovich for sharing the tips!</p>
<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2012/01/3-construction-or-reference-objects-we-rarely-use/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Set default system variables in acaddoc.lsp</title>
		<link>http://cad-notes.com/2012/01/set-default-system-variables-in-acaddoc-lsp/</link>
		<comments>http://cad-notes.com/2012/01/set-default-system-variables-in-acaddoc-lsp/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 12:37:00 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[AutoLISP]]></category>
		<category><![CDATA[acaddoc.lsp]]></category>
		<category><![CDATA[filedia]]></category>
		<category><![CDATA[pickfirst]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4399</guid>
		<description><![CDATA[Do you find your system variables change often? Do you have to set it back to default regularly? Why not set them by default in acaddoc.lsp? Read how you can set system variables in acaddoc.lsp. And see some common variables listed here.<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://cad-notes.com/2011/10/automatically-execute-command-when-opencreate-new-file/" target="_blank">We covered about acaddoc.lsp</a> in <a href="http://cad-notes.com/contents/autolisp-articles/" target="_blank">AutoLISP tutorial</a>. Acaddoc.lsp will execute commands defined in it, every time AutoCAD open a file.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="acaddoc" src="http://cad-notes.com/wp-content/uploads/2012/01/acaddoc.png" alt="acaddoc" width="462" height="223" border="0" /></p>
<h2>What can we do with acaddoc.lsp?</h2>
<p>Now if you know you can run commands automatically when you open a file, what would you do?</p>
<ol>
<li>You can load AutoLISP file automatically.</li>
<li>You can define new command. In <a href="http://cad-notes.com/2011/10/automatically-execute-command-when-opencreate-new-file/" target="_blank">the tutorial</a>, we redefine PLOT command to update datalink before AutoCAD starts to plot.</li>
<li>You can run commands before you start working with your file.</li>
<li>You can set system variable before you start working.</li>
</ol>
<p>In this article, we are going to focus to the last one. I found that there are many users confused why their AutoCAD doesn’t work as usual. And they become regular questions. These are some samples of changed system variables.</p>
<h2>Common unexpected system variables change</h2>
<p>These are several common system variables that change regularly.</p>
<ol>
<li><a href="http://cad-notes.com/2009/06/file-dialog-box-is-missing/" target="_blank">File dialog box is missing</a>. You have to type file path and file name from command line. It’s because FILEDIA system variable has changed.</li>
<li><a href="http://cad-notes.com/2010/11/i-cant-select-objects-then-press-del-in-autocad/" target="_blank">AutoCAD default noun-verb selection becomes verb-noun selection</a>. It’s because PICKFIRST system variable has changed.</li>
<li>Single document interface is activated. It’s controlled by SDI system variable.</li>
<li>And more…</li>
</ol>
<p>There is a debate why they changed. Most people think that it was because routines in AutoLISP or other 3rd party applications. I used to be agree with it, until I saw this problem also happens in AutoCAD LT. So it remains a mystery to me.</p>
<h2>We can force to set the variables in acaddoc.lsp</h2>
<p><a href="http://nl.linkedin.com/pub/harold-reuvers/8/b87/744" target="_blank">Harold Reuvers</a> reminds me that we can set those variables in acaddoc.lsp. I prefer to <a href="http://cad-notes.com/2010/09/backup-and-restore-autocad-system-variables/" target="_blank">backup my system variables and restore them</a> when I have problem. We can’t remember all the variables, right?</p>
<p>However, if you have specific system variable that changes often, this is a good solution.</p>
<p>All you need is to create an acaddoc.lsp using notepad or visual LISP editor.</p>
<p>Just type these code:</p>
<p><code>(SETVAR "PICKFIRST" 1) </code></p>
<p>Feel free to add more lines or change system variables and values as you preferred.</p>
<p>If you want to learn how to use Visual LISP editor, <a href="http://cad-notes.com/2010/11/your-first-autolisp-program-zoom-to-origin/" target="_blank">see this basic AutoLISP tutorial</a>.</p>
<h2>What system variables do you find change often?</h2>
<p>Do you find system variables in your AutoCAD change often? What are they?</p>
<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2012/01/set-default-system-variables-in-acaddoc-lsp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The killer tool palette macros, download it here!</title>
		<link>http://cad-notes.com/2011/12/the-killer-tool-palette-macros-download-it-here/</link>
		<comments>http://cad-notes.com/2011/12/the-killer-tool-palette-macros-download-it-here/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 23:16:00 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[tool palettes]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4319</guid>
		<description><![CDATA[Have you tried the tip to create 11 killer macros for viewports? If you're too busy to follow all the steps, you can just download it here! <p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></description>
			<content:encoded><![CDATA[<p>Previously, Paul Munford wrote a great tip how you can use macros to <a href="http://cad-notes.com/2011/12/eleven-killer-tool-palette-macros-for-working-with-autocad-viewports/" target="_blank">conveniently work with AutoCAD layout and viewport</a>.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="ACME viewport" src="http://cad-notes.com/wp-content/uploads/2011/12/ACME-viewport.png" alt="ACME viewport" width="148" height="243" border="0" /></p>
<p>If you haven’t follow his tutorial, you really miss those great tools. If you don’t have time to follow the tutorial, Paul Munford shares his tool palette file, so you can just use them.</p>
<p>You can download the tool palettes and import it to your AutoCAD. <a href="http://cad-notes.com/download/ACME_Viewport_Palette.zip" target="_blank">Click here to download it</a>.</p>
<h2>How to: import tool palettes</h2>
<p>If you never import tool palettes before, you can follow this guide:</p>
<p>Download and extract the tool palette to your local drive.</p>
<p>In AutoCAD, open your tool palettes. Right click on palette title bar, or click properties button. Choose customize palette from contextual menu.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="customize palette" src="http://cad-notes.com/wp-content/uploads/2011/12/customize-palette.png" alt="customize palette" width="350" height="188" border="0" /></p>
<p>In customize palette dialog, right click inside palettes column. The left column. Click import.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="import tool palettes" src="http://cad-notes.com/wp-content/uploads/2011/12/import-tool-palettes.png" alt="import tool palettes" width="400" height="326" border="0" /></p>
<p>Find ACME VPORTS.xtp in folder you placed extracted file before. Click open.</p>
<p>This palette should be in the list now. Close this dialog and you should see it’s the active palette now.</p>
<p>Open layout and test those tools. You love it don’t you? I know I do!</p>
<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2011/12/the-killer-tool-palette-macros-download-it-here/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Eleven Killer Tool palette Macros for working with AutoCAD Viewports</title>
		<link>http://cad-notes.com/2011/12/eleven-killer-tool-palette-macros-for-working-with-autocad-viewports/</link>
		<comments>http://cad-notes.com/2011/12/eleven-killer-tool-palette-macros-for-working-with-autocad-viewports/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 12:02:00 +0000</pubDate>
		<dc:creator>Paul Munford</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[AutoCAD viewport]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[tool palettes]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4308</guid>
		<description><![CDATA[If you work with AutoCAD layout, these 11 killer macros will help you. For easier access, we put all the macros in tool palettes. A must read if you want to work with viewport faster! Another great post by Paul Munford.<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></description>
			<content:encoded><![CDATA[<p>If you enjoy tinkering with AutoCAD, you may have noticed how every command is triggered by a complicated looking bit of text. If you don’t know what I’m referring to – type ‘cui’ at the command line and select one of the commands in the bottom left window. You should see something like this:</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="An AutoCAD Command Macro in the CUI" src="http://cad-notes.com/wp-content/uploads/2011/12/An-AutoCAD-Command-Macro-in-the-CUI.png" alt="An AutoCAD Command Macro in the CUI" width="347" height="280" border="0" /></p>
<p>This command string:</p>
<p>‘^C^C_line’</p>
<p>Is known as a command Macro, and you can create your own command Macro’s to help speed up your workflow.</p>
<p>In this post I want to share some commands Macro’s that I use to help me speed things up when I’m working with AutoCAD’s paper space viewports, and I’ll show you how to set these up on a tool palette for easy access.</p>
<h2>Setting up.</h2>
<p>Before we start work, I want you to open up your company standard AutoCAD template DWG file. Navigate to paper space, make your company standard viewport layer active and create a viewport. I’ve used a layer called ‘VPORTS’ for this exercise, but you should use the appropriate standard layer.</p>
<blockquote><p><strong><em>Tip</em></strong><em>: If you don’t have a company standard template read Edwin’s </em><a href="http://cad-notes.com/2009/09/preparing-your-autocad-template/"><em>excellent post on templates here</em></a><em>.</em></p></blockquote>
<h2>Setting up a tool palette.</h2>
<p>In this post I am advising you to host your new tools on a tool palette, simply because tool palettes are easy to set up, maintain and migrate. You could apply these techniques in the CUI instead and build your custom commands into a tool bar or ribbon tab… but that’s for another time.</p>
<p>To open the tool palettes go to:</p>
<p>View Ribbon tab &gt; Palettes panel &gt; Tool Palettes</p>
<p>Or type ‘toolpalettes’ at the command line and hit Enter.</p>
<p>Now you have your tool palettes open, right click over any palette and choose ‘New Palette’.<em> </em>You can name your new palette anything you like; I’ve called mine ‘ACME VPORTS’.</p>
<p><strong><em>Note</em></strong><em>: Tool palettes are not saved until the drawing is closed.</em></p>
<h2>Creating a new tool</h2>
<p>The next part is the fun bit. Click on the viewport you created earlier and drag and drop it onto the tool palette. You have now created your first tool &#8211; that was easy!</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="Creating a new AutoCAD viewport tool on a tool pallette" src="http://cad-notes.com/wp-content/uploads/2011/12/Creating-a-new-AutoCAD-viewport-tool-on-a-tool-pallette.jpg" alt="Creating a new AutoCAD viewport tool on a tool pallette" width="402" height="216" border="0" /></p>
<p>&nbsp;</p>
<p><strong><em>Note</em></strong><em>: Left Click on the viewport once to select it. Now with the viewport selected, left click again and hold the left hand mouse button down. You can now drag the viewport onto the palette to create the tool.</em></p>
<p>To test your tool, click on it. You should be prompted to draw a viewport. Once you’ve created a viewport, click on it once to select it. Notice which layer it’s on? That’s right; your new tool has created a viewport, on your company standard layer and it didn’t even change the current layer while it did it.</p>
<p><strong><em>Note</em></strong><em>: This tool will also create the layer it needs if the layer does not already exist in the current drawing file.</em></p>
<p>I hope that you are already impressed – but we can do more.</p>
<h2>How does it work?</h2>
<p>To see what the tool is doing, right click over it and chose ‘Properties…’. I hope you notice the ‘Command string’ box, about half way down. The command string that this tool is running looks like this:</p>
<p>^C^C_vports</p>
<p>The ^C part of the macro is equivalent to pressing the ‘Esc’ key – it cancels the current command. This command uses ^C^C because some AutoCAD commands need two ‘escapes’ to completely cancel out of the currently command. It is good practice to start all your command Macro’s this way.</p>
<p><strong><em>Note</em></strong><em>: Can you think of an AutoCAD command that would need THREE ‘escapes’ to fully cancel out of it? Answers in the comments please…</em></p>
<p>The underscore before the command is used to ‘Internationalize’ the command. If you are not working with the English language version of AutoCAD the command names will have been translated. The underscore tells AutoCAD to use the default English version of the command.</p>
<p>The ‘vports’ part of the string is exactly the same as typing ‘vports’ at the command line.</p>
<p>I also want you to notice the boxes under the ‘General heading’. You can see that this tool will create a viewport on the ‘VPORTS’ layer, and you can also override some of the other properties here.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="AutoCAD Tool palette tool properties" src="http://cad-notes.com/wp-content/uploads/2011/12/AutoCAD-Tool-palette-tool-properties.jpg" alt="AutoCAD Tool palette tool properties" width="336" height="443" border="0" /></p>
<h2>Applying a little finesse.</h2>
<p>There are a number of ways that you can personalize your new tool. You can change the name to something that makes more sense to you. You can change the description (the description value becomes a handy little tool tip when you hover over the tool on the palette). You can also change the picture by right clicking over the picture and choosing ‘specify image’.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="Personalize your AutoCAD toolpallette tools" src="http://cad-notes.com/wp-content/uploads/2011/12/Personalize-your-AutoCAD-toolpallette-tools.jpg" alt="Personalize your AutoCAD toolpallette tools" width="369" height="178" border="0" /></p>
<h2>Back to the Macro.</h2>
<p>In this case the command string that has been created uses the ‘vports’ command by default. However, the vports command also has a purpose in Model space. Let’s change the tool to use the ‘mview’ command instead, which only works in paper space.</p>
<p>All you need to do is change:</p>
<p>^C^C_vports</p>
<p>To</p>
<p>^C^C_mview</p>
<h2>More viewport creation tools.</h2>
<p>To create more tools, just right click over the tool and chose ‘copy’ and then hover anywhere over the blank palette and choose ‘paste’.</p>
<p>Here is another example of an alternative command macro you could use:</p>
<p>^C^C_mview;f;</p>
<p>The semi-colon ‘;’ in this command strings is just like pressing ‘enter’ on your keyboard. So the macro could be read as:</p>
<p><em>Hit ‘esc’ twice, type ‘mview’ at the command line, hit ‘enter’, type ‘f’ at the command line and then hit ‘enter’ again.</em></p>
<p>Try it out. What do you get?</p>
<p>That’s right &#8211; a viewport, taking up all the available room on the drawing sheet. Writing this into a command Macro allows us to do all that with a single click!</p>
<p>How about this one:</p>
<p>^C^C_mview;2;v;</p>
<p>This command string launches the Mview command with the ‘Two viewports, vertically aligned’ options current. Just two clicks to create two viewports, on the right layer.</p>
<p>Here’s one more:</p>
<p>^C^C_mview;p</p>
<p>This command string uses the Mview command with the ‘Polygonal’ option to create an irregular shaped viewport.</p>
<p>The final one in this section gets a bit more complicated:</p>
<p>^C^C_circle;\\_mview;o;l</p>
<p>This command string creates a circular viewport. It does this by running the circle command, and then immediately afterward, running the Mview command using the option to create a viewport from the last object created, in this case our circle.</p>
<p>The two back slashes ‘\\’ are interpreted as pauses. In this case the user must pick the centre point and radius of the circle. This is two clicks – therefore two back slashes.</p>
<p><strong><em>Note</em></strong><em>: It is not easy to include error checking in a command macro. In this case the macro expects two clicks, if the user decides to choose a method of creating a circle other than ‘Centre radius’ the command will fail. If you need to include error checking in your Macro’s you may need to use Lisp.</em></p>
<h2>Locking and unlocking viewports globally.</h2>
<p>For the next example, I want you to copy your tool as you did before; but this time, open the tools’ properties and set all the values in the ‘General’ options to ‘use current’ except the layer control, which you should change to ‘0’. In this case, our macro won’t be creating any geometry, so we don’t want those properties set.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="AutoCAD tool palette tool default options" src="http://cad-notes.com/wp-content/uploads/2011/12/AutoCAD-tool-palette-tool-default-options.png" alt="AutoCAD tool palette tool default options" width="359" height="446" border="0" /></p>
<p>The next example will help us speed up locking and unlocking viewports:</p>
<p>^C^C_mview;l;on;all;;</p>
<p>Run the command and then hit F2 to bring up the AutoCAD text window. Have a look to see what commands the Macro is executing…</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="The AutoCAD command window - viewport locking" src="http://cad-notes.com/wp-content/uploads/2011/12/The-AutoCAD-command-window-viewport-locking.png" alt="The AutoCAD command window - viewport locking" width="630" height="329" border="0" /></p>
<p>&nbsp;</p>
<p>That’s right; this command string <em>locks</em> all the viewports in the current layout – very handy to run before you close down your drawing for the day.</p>
<p>The reciprocal is this, which <em>unlocks</em> all the viewports in the current layout:</p>
<p>^C^C_mview;l;off;all;;</p>
<h2>Turning the viewports layer on and off</h2>
<p>To turn the ‘VPORTS’ layer on and off, we need to use the ‘layer’ command. Copy and paste the tool as before, and add this command string to turn the ‘VPORTS’ layer on:</p>
<p>^C^C_-la;on;VPORTS;;</p>
<p>And this command to turn the ‘VPORTS’ layer off.</p>
<p>^C^C_-la;off;VPORTS;;</p>
<p>I hope by now that you can work out what these macros are doing. If you aren’t sure, click the button to run the macro, and then hit F2 to bring up the command window and see what’s happened.</p>
<p><strong><em>Note</em></strong><em>: Replace ‘VPORTS’ with your layer name. If you layer name contains a space, make sure that you put the layer name in quotes e.g. “VPORTS 1”. The layer name is not case sensitive</em>.</p>
<h2>Freezing and thawing the viewports layer</h2>
<p>If you would prefer to freeze or thaw the VPORTS layer, you can use these two macros instead.</p>
<p>To freeze the ‘VPORTS’ layer:</p>
<p>^C^C_-la;f;VPORTS;;</p>
<p>To thaw the ‘VPORTS’ layer:</p>
<p>^C^C_-la;t;VPORTS;;</p>
<h2>Round up and further reading</h2>
<p>I hope that you enjoyed this post and that you found it useful. If you have any questions, please leave a comment below.</p>
<p>If you’d like to know more about Tool palettes, Edwin has a great tutorial here:</p>
<p><a href="http://cad-notes.com/2009/09/creating-your-own-autocad-palette/">http://cad-notes.com/2009/09/creating-your-own-autocad-palette/</a></p>
<p>If you’d like to know more about command macros check out the developer help files. You can find the help files online here <a href="http://cadso.co/t17wRy">http://cadso.co/t17wRy</a>.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="The ACME AutoCAD viewport tool palette" src="http://cad-notes.com/wp-content/uploads/2011/12/The-ACME-AutoCAD-viewport-tool-palette.png" alt="The ACME AutoCAD viewport tool palette" width="211" height="504" border="0" /></p>
<p><a name="_GoBack"></a></p>
<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2011/12/eleven-killer-tool-palette-macros-for-working-with-autocad-viewports/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Command line only express tools: Have you used them?</title>
		<link>http://cad-notes.com/2011/12/command-line-only-express-tools-have-you-used-them/</link>
		<comments>http://cad-notes.com/2011/12/command-line-only-express-tools-have-you-used-them/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 13:14:46 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[express tools]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4295</guid>
		<description><![CDATA[Express tools are great to help us vanilla AutoCAD users. But do you know there are hidden tools, that we only can use them by typing the command in command line?<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></description>
			<content:encoded><![CDATA[<p>We all love AutoCAD express tools, aren’t we?</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="express tools" src="http://cad-notes.com/wp-content/uploads/2011/12/express-tools.png" alt="express tools" width="200" height="148" border="0" /></p>
<p>AutoCAD express tools has many handy tools, that can speed up your work significantly. They can do things that you can’t do just with default AutoCAD tools.</p>
<p>But do you know there are some tools that we can use… only by activating them using command line?</p>
<p>One popular tool in this category is BCOUNT. Speedy way to count how many blocks in your active drawing. I prefer <a href="http://cad-notes.com/2009/09/creating-schedule-from-your-autocad-drawing/" target="_blank">data extraction</a>, but BCOUNT can give quick result for review.</p>
<h2>Where can I find the rest of these tools?</h2>
<p>In express tools help, of course. Express tools help is separated with AutoCAD help file. If you are using AutoCAD menu (with or without classic workspace), you can open it from AutoCAD menu: express&gt; help.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="express tools help" src="http://cad-notes.com/wp-content/uploads/2011/12/express-tools-help.png" alt="express tools help" width="200" height="189" border="0" /></p>
<p>If you don’t use menu, I don’t know if there an access to open it. At least I can’t find it on express tools tab.</p>
<p>A less elegant way to open it if you don’t use menu is by activating any express tool, then press F1 (at least it works!)</p>
<h2>The hidden tools</h2>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="command line only express tools" src="http://cad-notes.com/wp-content/uploads/2011/12/command-line-only-express-tools.png" alt="command line only express tools" width="400" height="314" border="0" /></p>
<p>Expand categories in contents’ tree. Expand <strong>command line only</strong>. You will find the tools there.</p>
<p>There are many interesting tools here. Some that you may find it useful are: BSCALE, GATTE and TFRAMES.</p>
<p>GATTE can be very useful if you have many common values in your block attributes, but you prefer not to <a href="http://cad-notes.com/2011/10/linking-excel-external-data-to-autocad-data-extraction/" target="_blank">link your attributes to external excel file</a>. You can change all of them at once using GATTE.</p>
<p>You can use TFRAMES to quickly turn on/off wipeout and image frames.</p>
<p>There’s also SSX, similar to <a href="http://cad-notes.com/2009/10/autocad-quick-select/" target="_blank">QSELECT</a> but without dialog box.</p>
<p>Well, you may have your own favorite. You can share in comment section what it is!</p>
<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2011/12/command-line-only-express-tools-have-you-used-them/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AutoCAD Block Can&#8217;t be Inserted Using Non-uniform Scale</title>
		<link>http://cad-notes.com/2011/12/autocad-block-cant-be-inserted-using-non-uniform-scale/</link>
		<comments>http://cad-notes.com/2011/12/autocad-block-cant-be-inserted-using-non-uniform-scale/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 09:47:00 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[non-uniform scale]]></category>
		<category><![CDATA[scale uniformly]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4284</guid>
		<description><![CDATA[If you can't disable uniform scale option when inserting AutoCAD block, this is the guide how you can fix it. <p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></description>
			<content:encoded><![CDATA[<h2>Problem:</h2>
<p>Do you often to insert block with <a href="http://cad-notes.com/2009/08/how-to-modify-objects-with-non-uniform-scale/">non-uniform scale</a>? Sometimes I do.</p>
<p>Have you ever found that when you insert your block, you can’t disable uniform scale option?</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="uniform_scale_is_locked" src="http://cad-notes.com/wp-content/uploads/2011/12/uniform_scale_is_locked.png" alt="uniform_scale_is_locked" width="400" height="266" border="0" /></p>
<p>If you dig further, you will find that it’s a block specific. The same thing will happen if you try to insert the block on other computer. You will find other blocks you have don’t have this problem.</p>
<h2>Solution:</h2>
<p>This option is disabled because when you created the block, you activate <strong>scale uniformly</strong> in block definition dialog.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="scale_uniformly_active" src="http://cad-notes.com/wp-content/uploads/2011/12/scale_uniformly_active.png" alt="scale_uniformly_active" width="500" height="353" border="0" /></p>
<p>So what if you already created and placed several blocks? Do you have to explode and recreate the block?</p>
<p>No. You can open the block in block editor then open properties palette. Find scale uniformly parameter, and change it to no.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="scale_uniformly" src="http://cad-notes.com/wp-content/uploads/2011/12/scale_uniformly.png" alt="scale_uniformly" width="300" height="141" border="0" /></p>
<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2011/12/autocad-block-cant-be-inserted-using-non-uniform-scale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with shared contents: eliminating slow network performance</title>
		<link>http://cad-notes.com/2011/12/working-with-shared-contents-eliminating-slow-network-performance/</link>
		<comments>http://cad-notes.com/2011/12/working-with-shared-contents-eliminating-slow-network-performance/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 09:09:55 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[AutoCAD Troubleshoot]]></category>
		<category><![CDATA[AutoCAD tool palettes]]></category>
		<category><![CDATA[enterprise CUI]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[shared files]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4270</guid>
		<description><![CDATA[If you have problem with AutoCAD shared contents because of slow network connection, try this tip: set them as offline files!<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></description>
			<content:encoded><![CDATA[<p>This is not really an AutoCAD tip. It’s more how you can speed up access if you share your AutoCAD contents and customization over network.</p>
<p>The problem with sharing contents over network is performance. If you have good infrastructure, it might not be a problem. But if you share your contents over WAN or internet, with hundreds of users, it can be really painful. Even pulling a block from your server can take a while.</p>
<p>It is a good thing to centralize your company standard contents and customization, to force standards among your users. You can see some sample like <a href="http://www.thecadmasters.com/wordpress/index.php/2010/09/28/tool-palettes/">sharing tool palettes like describe here</a>, <a href="http://cadit.typepad.com/my_weblog/2007/06/managing_your_a_2.html">enterprise CUI like here</a>, or in this <a href="http://au.autodesk.com/?nd=class&amp;session_id=3071">AU archive about AutoCAD tool palettes</a>. But again, it may decreasing your productivity, not increasing it if you have problem with network connection.</p>
<h2>Set your offline files</h2>
<p>One thing that you can do to eliminate this problem is by working with offline files. You can set offline files, so your computer will copy files from your server and put them locally. This is pretty much like working with local files.</p>
<p>No, you don’t have to copy them to your local drive manually. All you need is to set a network folder to <strong>always available offline</strong>. Windows can sync your files by following a schedule or other events that you prefer.</p>
<p>See this <a href="http://windows.microsoft.com/en-US/windows7/Working-with-network-files-when-you-are-offline">Microsoft documentation how you can work with offline files</a>.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="always available offline" src="http://cad-notes.com/wp-content/uploads/2011/12/always-available-offline.jpg" alt="always available offline" width="286" height="287" border="0" /></p>
<p>Once you set it, you can click<strong> work offline</strong> in Windows Explorer. Even if you are connected to network, your Windows will not take those files from your server anymore!</p>
<p>It might be better if you set automatic sync in Windows Sync Center. Windows can sync your offline files daily if necessary, or you can sync them manually when you know there are changes have been made.</p>
<p>Just try it, and explore the options that will work for you.</p>
<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2011/12/working-with-shared-contents-eliminating-slow-network-performance/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using AutoCAD UNDO: It&#8217;s more than just one step back</title>
		<link>http://cad-notes.com/2011/12/using-autocad-undo-its-more-than-just-one-step-back/</link>
		<comments>http://cad-notes.com/2011/12/using-autocad-undo-its-more-than-just-one-step-back/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 03:17:45 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[undo]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4250</guid>
		<description><![CDATA[Do you know that there are more things AutoCAD UNDO command can do for you, than just one step back? See all the options it has here!<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></description>
			<content:encoded><![CDATA[<p>I received this tip from Murray Clack mentioning about setting a mark to undo AutoCAD commands. That reminds me that many AutoCAD may not know UNDO does have options. We usually just press U then [enter], press [ctrl] + Z, or click undo button. But if you type UNDO then [enter], you can see more options like below.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="undo_options" src="http://cad-notes.com/wp-content/uploads/2011/12/undo_options.png" alt="undo_options" width="367" height="252" border="0" /></p>
<p>If you are not familiar with these options, here is the explanation. Who knows, you need to use it.</p>
<p>To use this command options, you must type UNDO then [enter].</p>
<h2>Undo a number of commands</h2>
<p>You can undo several operations by typing a number here. Let’s say you want to undo 5 commands, just type 5 then [enter]. To be honest, I never use it except to undo everything. Typing 999 is faster than pressing U [enter] several times. I don’t think anyone will remember how many steps they want to go back.</p>
<h2>Auto option</h2>
<p>Auto is turned on by default. It will group commands in a macro, allows you to undo the commands in a single undo command.</p>
<h2>Control</h2>
<p>Control has sub options. In short, it allows you to control how UNDO command should behave.</p>
<h3>All</h3>
<p>All is the default UNDO options. It will behave just like how we use it today (if nothing goes wrong).</p>
<h3>None</h3>
<p>This will disable UNDO. AutoCAD will not record your commands and you simply can’t use it. Even undo button on quick access and modify toolbar is disabled.</p>
<h3>One</h3>
<p>This option will limit UNDO to one command only. Let’s say you activate 5 commands. You only can UNDO your last command, and AutoCAD doesn’t remember the other 4 commands.</p>
<h3>Combine and Layer</h3>
<p>Combine will combine screen navigation like zoom and pan. We zoom and pan many times to draw and modify our drawings. If disable this option, when you pan 5 times, to undo it you need to press undo five times. You only need to press one time if you activate it.</p>
<p>Layer option works similarly with combine, but it’s for combining layer operation.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="undo_redo" src="http://cad-notes.com/wp-content/uploads/2011/12/undo_redo.png" alt="undo_redo" width="284" height="94" border="0" /></p>
<h2>Mark and Back</h2>
<p>If you want to test creating some objects and think you may need to undo to certain point, you can mark before you start playing with your drawing. If you do need to undo your work, use BACK to restore it to your mark point.</p>
<h2>UNDO from quick access toolbar</h2>
<p>The most convenient way to undo, of course using undo button from quick access or modify toolbar. You can click the small down arrow and see the recent commands you use. Click at a point where you want to undo those commands.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="undo_from_quick_access" src="http://cad-notes.com/wp-content/uploads/2011/12/undo_from_quick_access.png" alt="undo_from_quick_access" width="350" height="164" border="0" /></p>
<p>Thank you to Murray Clack for bringing this up! Do you think any of these options can help you? Which one, and how do you use it?</p>
<p><hr />
<a href="http://www.bentley.com/cadnotes">
		<img src="http://cad-notes.com/images/7053_PW-en_HDR_468x60_0511.gif" alt="Are you ProjectWise?" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2011/12/using-autocad-undo-its-more-than-just-one-step-back/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

