<?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>Lazy Drafter &#187; AutoCAD Tips</title>
	<atom:link href="http://www.lazydrafter.com/category/autocad-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lazydrafter.com</link>
	<description>AutoCAD tips for the lazy drafter.</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:03:21 +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>How to Draw a Line Tangent to Two Circles</title>
		<link>http://www.lazydrafter.com/autocad-tips/how-to-draw-a-line-tangent-to-two-circles</link>
		<comments>http://www.lazydrafter.com/autocad-tips/how-to-draw-a-line-tangent-to-two-circles#comments</comments>
		<pubDate>Wed, 01 Feb 2012 20:03:21 +0000</pubDate>
		<dc:creator>Josh Jones</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[Drafting]]></category>
		<category><![CDATA[OSNAP]]></category>

		<guid isPermaLink="false">http://www.lazydrafter.com/?p=1006</guid>
		<description><![CDATA[Hope, one of my readers, asked me how to draw a line tangent to two circles. This is a great question because it isn&#8217;t very obvious at first. Here&#8217;s how you do it. Start the LINE command and type TAN to start the tangent object snap. Click on the first circle near where you expect [...]]]></description>
			<content:encoded><![CDATA[<p>Hope, one of my readers, asked me how to draw a line tangent to two circles. This is a great question because it isn&#8217;t very obvious at first. Here&#8217;s how you do it. <span id="more-1006"></span> </p>
<p>Start the LINE command and type TAN to start the tangent object snap. Click on the first circle near where you expect the line to be tangent to.</p>
<p><a href="http://www.lazydrafter.com/stuff/2012/02/tangent-1.png"><img src="http://www.lazydrafter.com/stuff/2012/02/tangent-1-300x174.png" alt="" title="tangent-1" width="300" height="174" class="alignnone size-medium wp-image-1007" /></a></p>
<p>Then type TAN again and click on the second circle.</p>
<p><a href="http://www.lazydrafter.com/stuff/2012/02/tangent-2.png"><img src="http://www.lazydrafter.com/stuff/2012/02/tangent-2-300x145.png" alt="" title="tangent-2" width="300" height="145" class="alignnone size-medium wp-image-1008" /></a></p>
<p>AutoCAD will draw a line between the two circles perfectly tangent to both of them.</p>
<p><a href="http://www.lazydrafter.com/stuff/2012/02/tangent-3.png"><img src="http://www.lazydrafter.com/stuff/2012/02/tangent-3-300x159.png" alt="" title="tangent-3" width="300" height="159" class="alignnone size-medium wp-image-1009" /></a></p>
<p>Great question Hope!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydrafter.com/autocad-tips/how-to-draw-a-line-tangent-to-two-circles/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Burst!</title>
		<link>http://www.lazydrafter.com/autocad-tips/burst</link>
		<comments>http://www.lazydrafter.com/autocad-tips/burst#comments</comments>
		<pubDate>Wed, 01 Feb 2012 00:44:55 +0000</pubDate>
		<dc:creator>Josh Jones</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[Blocks]]></category>
		<category><![CDATA[Commands]]></category>

		<guid isPermaLink="false">http://www.lazydrafter.com/?p=1003</guid>
		<description><![CDATA[Due to limited time and because I&#8217;m feeling lazy today, this is going to be a short post. Ever wonder how to properly explode a block that contains attributes without having the text revert to the attribute tag? Try the BURST command. It a special &#8220;explode&#8221; command made for blocks with attributes. See, I told [...]]]></description>
			<content:encoded><![CDATA[<p>Due to limited time and because I&#8217;m feeling lazy today, this is going to be a short post. </p>
<p>Ever wonder how to properly explode a block that contains attributes without having the text revert to the attribute tag? Try the BURST command. It a special &#8220;explode&#8221; command made for blocks with attributes.</p>
<p>See, I told you this was short.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydrafter.com/autocad-tips/burst/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Automatic Barcodes on Drawings</title>
		<link>http://www.lazydrafter.com/autocad-tips/automatic-barcodes-on-drawings</link>
		<comments>http://www.lazydrafter.com/autocad-tips/automatic-barcodes-on-drawings#comments</comments>
		<pubDate>Tue, 13 Dec 2011 17:55:27 +0000</pubDate>
		<dc:creator>Josh Jones</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[Fields]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[Sheet Set Manager]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.lazydrafter.com/?p=991</guid>
		<description><![CDATA[I&#8217;m a design drafter. I create contract plans for construction. After the final plan sets are made, I hand the prints off to our archival team to put the drawings in their final home. Part of this process is printing a unique barcode sticker for each sheet. I didn&#8217;t realize that they went through such [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a design drafter. I create contract plans for construction. After the final plan sets are made, I hand the prints off to our archival team to put the drawings in their final home. Part of this process is printing a unique barcode sticker for each sheet. I didn&#8217;t realize that they went through such a tedious process to get this done until an associate at work came to me with an idea: why not print barcodes directly on the plan sheets? <span id="more-991"></span></p>
<p>How? I learned that it was simple: there are barcode fonts. So I asked around and found out that they use a &#8220;3 of 9&#8243; barcode. After a quick search I found a free one here: <a href="http://www.dafont.com/3of9-barcode.font" title="3 of 9 barcode font" target="_blank">http://www.dafont.com/3of9-barcode.font</a></p>
<p>Of course the next question was what information went into the barcode. I found out that each barcode that goes on our drawing sheets is made up of a combination of something we call a &#8220;Vault Plan Number&#8221; and the sheet number surrounded by asterisks. Since we already have this infomation on our sheets, I thought, this should be easy!</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/12/Barcode-Source.png"><img src="http://www.lazydrafter.com/stuff/2011/12/Barcode-Source-300x130.png" alt="" title="Barcode-Source" width="300" height="130" class="alignnone size-medium wp-image-997" /></a></p>
<p>Here&#8217;s how I set it up:</p>
<p><strong>STEP 1</strong><br />
Download and install the <a href="http://www.dafont.com/3of9-barcode.font" title="3 of 9 barcode font" target="_blank">3 of 9 barcode font</a> (this is what we use but your system may use a different kind of barcode).</p>
<p><strong>STEP 2</strong><br />
Create a barcode text style in AutoCAD.</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/12/Barcode-Text-Style.png"><img src="http://www.lazydrafter.com/stuff/2011/12/Barcode-Text-Style-300x200.png" alt="" title="Barcode-Text-Style" width="300" height="200" class="alignnone size-medium wp-image-998" /></a></p>
<p><strong>STEP 3</strong><br />
Start the MTEXT command and type an asterisk (*) because this is one of the barcode requirements. Then insert an &#8220;object&#8221; field, select the &#8220;Vault Plan Number&#8221; text object, choose the &#8220;contents&#8221; property and hit OK. </p>
<p><a href="http://www.lazydrafter.com/stuff/2011/12/Barcode-Insert-Field.png"><img src="http://www.lazydrafter.com/stuff/2011/12/Barcode-Insert-Field-300x259.png" alt="" title="Barcode-Insert-Field" width="300" height="259" class="alignnone size-medium wp-image-994" /></a></p>
<p>After that field I added a hyphen, then inserted another field for the sheet number. Finally I added another asterisk at the end.</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/12/Barcode-MTEXT-Creation.png"><img src="http://www.lazydrafter.com/stuff/2011/12/Barcode-MTEXT-Creation-300x89.png" alt="" title="Barcode-MTEXT-Creation" width="300" height="89" class="alignnone size-medium wp-image-995" /></a></p>
<p>Make sure you set the barcode text style.</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/12/Barcode-MTEXT-Final.png"><img src="http://www.lazydrafter.com/stuff/2011/12/Barcode-MTEXT-Final-300x91.png" alt="" title="Barcode-MTEXT-Final" width="300" height="91" class="alignnone size-medium wp-image-996" /></a></p>
<p><strong>STEP 4</strong><br />
Place the barcode in an appropriate place in the sheet template.</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/12/Barcode-Final.png"><img src="http://www.lazydrafter.com/stuff/2011/12/Barcode-Final-300x77.png" alt="" title="Barcode-Final" width="300" height="77" class="alignnone size-medium wp-image-993" /></a></p>
<p>This just saved us a couple of tedious steps in printing and placing barcode labels on each sheet!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydrafter.com/autocad-tips/automatic-barcodes-on-drawings/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Create a Block the Lazy Way</title>
		<link>http://www.lazydrafter.com/autocad-tips/create-a-block-the-lazy-way</link>
		<comments>http://www.lazydrafter.com/autocad-tips/create-a-block-the-lazy-way#comments</comments>
		<pubDate>Mon, 03 Oct 2011 18:08:18 +0000</pubDate>
		<dc:creator>Josh Jones</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[Blocks]]></category>

		<guid isPermaLink="false">http://www.lazydrafter.com/?p=979</guid>
		<description><![CDATA[This has got to be the easiest way to create a block out of existing linework. The first step is to select some linework: Then right-click and hold anywhere you want the base point to be until you see a cursor that looks like this: You could right-click and hold on a grip or anywhere [...]]]></description>
			<content:encoded><![CDATA[<p>This has got to be the easiest way to create a block out of existing linework. The first step is to select some linework:</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/10/drag-select-objects.jpg"><img src="http://www.lazydrafter.com/stuff/2011/10/drag-select-objects-220x300.jpg" alt="" title="drag-select-objects" width="220" height="300" class="alignnone size-medium wp-image-981" /></a></p>
<p><span id="more-979"></span> Then right-click and hold anywhere you want the base point to be until you see a cursor that looks like this:</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/10/drag-cursor.jpg"><img src="http://www.lazydrafter.com/stuff/2011/10/drag-cursor.jpg" alt="" title="drag-cursor" width="50" height="51" class="alignnone size-full wp-image-982" /></a></p>
<p>You could right-click and hold on a grip or anywhere else &#8211; it doesn&#8217;t matter. </p>
<p>Move your cursor while holding down the right button on your mouse and you will see that AutoCAD copies the linework.</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/10/drag-cursor2.jpg"><img src="http://www.lazydrafter.com/stuff/2011/10/drag-cursor2-236x300.jpg" alt="" title="drag-cursor2" width="236" height="300" class="alignnone size-medium wp-image-983" /></a></p>
<p>Let go of the right mouse button and AutoCAD will present you with a short menu.</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/10/drag-paste-as-block.jpg"><img src="http://www.lazydrafter.com/stuff/2011/10/drag-paste-as-block-263x300.jpg" alt="" title="drag-paste-as-block" width="263" height="300" class="alignnone size-medium wp-image-984" /></a></p>
<p>Simply select &#8220;paste as block&#8221; and your new block will be created. The base point is the place you selected with your mouse. </p>
<p><em>UPDATE: Then, as one of my subscribers pointed out, use the <a href="http://www.lazydrafter.com/autocad-tips/rename-things-the-lazy-way" title="RENAME command">RENAME command</a> to give the block a logical name. Thank you for pointing this out Tommy!</em></p>
<p>So lazy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydrafter.com/autocad-tips/create-a-block-the-lazy-way/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Match Text Properties Without Affecting Rotation and Size</title>
		<link>http://www.lazydrafter.com/autocad-tips/match-text-properties-without-affecting-rotation-size</link>
		<comments>http://www.lazydrafter.com/autocad-tips/match-text-properties-without-affecting-rotation-size#comments</comments>
		<pubDate>Thu, 01 Sep 2011 15:55:41 +0000</pubDate>
		<dc:creator>Josh Jones</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>

		<guid isPermaLink="false">http://www.lazydrafter.com/?p=958</guid>
		<description><![CDATA[When you match the properties from one piece of text to another by default it matches the rotation angle and text size. If you simply want to match the layer of one piece of text to another without affecting other text properties such as rotation angle and text size, follow these simple steps: Click the [...]]]></description>
			<content:encoded><![CDATA[<p>When you match the properties from one piece of text to another by default it matches the rotation angle and text size. If you simply want to match the layer of one piece of text to another without affecting other text properties such as rotation angle and text size, follow these simple steps: <span id="more-958"></span></p>
<p>Click the Match Properties button (or type the MATCHPROP command) and select the source text. Then before you select anything, type S on the command line and uncheck the &#8220;Text&#8221; checkbox in the Property Settings dialog box.</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/09/PropertySettings.png"><img src="http://www.lazydrafter.com/stuff/2011/09/PropertySettings-300x241.png" alt="" title="PropertySettings" width="300" height="241" class="alignnone size-medium wp-image-959" /></a></p>
<p>Then select other text objects and only the layer name will be matched.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydrafter.com/autocad-tips/match-text-properties-without-affecting-rotation-size/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Layers&#8221; Toolbar Not in Alphabetical Order</title>
		<link>http://www.lazydrafter.com/autocad-tips/layers-toolbar-in-alaphabetical-order</link>
		<comments>http://www.lazydrafter.com/autocad-tips/layers-toolbar-in-alaphabetical-order#comments</comments>
		<pubDate>Wed, 17 Aug 2011 19:16:05 +0000</pubDate>
		<dc:creator>Josh Jones</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[Layers]]></category>
		<category><![CDATA[System Variables]]></category>
		<category><![CDATA[Toolbars]]></category>

		<guid isPermaLink="false">http://www.lazydrafter.com/?p=950</guid>
		<description><![CDATA[When you have a drawing with a lot of XREFs in it, the amount of layers shown in the &#8220;Layers&#8221; toolbar drop-down can increase dramatically. I started noticing as the amount of layers in the drawing increased, at some point they started being displayed in random order. This is frustrating! Yes, it is possible to [...]]]></description>
			<content:encoded><![CDATA[<p>When you have a drawing with a lot of XREFs in it, the amount of layers shown in the &#8220;Layers&#8221; toolbar drop-down can increase dramatically. I started noticing as the amount of layers in the drawing increased, at some point they started being displayed in random order. </p>
<p><a href="http://www.lazydrafter.com/stuff/2011/08/out-of-order.png"><img src="http://www.lazydrafter.com/stuff/2011/08/out-of-order-234x300.png" alt="" title="out of order" width="234" height="300" class="alignnone size-medium wp-image-951" /></a></p>
<p><span id="more-950"></span> This is frustrating! Yes, it is possible to address the problem by purging the drawings to get rid of the extra unnecessary layers, but that didn&#8217;t fix the problem in all cases. Then I discovered the MAXSORT variable. It was set to 1000 in my drawing, so I increased it to 2000 and it worked! The layers were instantly sorted in alphabetical order.</p>
<p><a href="http://www.lazydrafter.com/stuff/2011/08/back-in-order.png"><img src="http://www.lazydrafter.com/stuff/2011/08/back-in-order-236x300.png" alt="" title="back in order" width="236" height="300" class="alignnone size-medium wp-image-952" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydrafter.com/autocad-tips/layers-toolbar-in-alaphabetical-order/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drag and Drop to Publish Drawings</title>
		<link>http://www.lazydrafter.com/autocad-resources/drag-and-drop-to-publish-drawings</link>
		<comments>http://www.lazydrafter.com/autocad-resources/drag-and-drop-to-publish-drawings#comments</comments>
		<pubDate>Wed, 01 Jun 2011 17:29:17 +0000</pubDate>
		<dc:creator>Josh Jones</dc:creator>
				<category><![CDATA[AutoCAD Resources]]></category>
		<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[Publishing]]></category>

		<guid isPermaLink="false">http://www.lazydrafter.com/?p=946</guid>
		<description><![CDATA[Mohamed Haris from CADing &#038;&#038; Coding posted a tip last year showing us how easy it is to publish drawings using a drag and drop method. It&#8217;s very simple. Read the full post here&#8230;]]></description>
			<content:encoded><![CDATA[<p>Mohamed Haris from <a href="http://cadingandcoding.blogspot.com">CADing &#038;&#038; Coding</a> posted a tip last year showing us how easy it is to publish drawings using a drag and drop method. It&#8217;s very simple. <a href="http://cadingandcoding.blogspot.com/2010/10/easy-way-to-publish-drawings-from.html">Read the full post here&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydrafter.com/autocad-resources/drag-and-drop-to-publish-drawings/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Text Below a Dimension Line</title>
		<link>http://www.lazydrafter.com/autocad-tips/add-text-below-a-dimension-line</link>
		<comments>http://www.lazydrafter.com/autocad-tips/add-text-below-a-dimension-line#comments</comments>
		<pubDate>Mon, 07 Feb 2011 18:32:40 +0000</pubDate>
		<dc:creator>Josh Jones</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>

		<guid isPermaLink="false">http://www.lazydrafter.com/?p=943</guid>
		<description><![CDATA[Cadalyst sent out a tip today on adding text below a dimension line. This is a great tip! I thought I would add some clarification. The tip says: &#8220;One of my all-time favorite techniques that I still use today is placing text below a dimension line so that it is part of the dimension object [...]]]></description>
			<content:encoded><![CDATA[<p>Cadalyst sent out a tip today on <a href="http://cadtips.cadalyst.com/edit-dimension/edit-dimension-text">adding text below a dimension line</a>. This is a great tip! I thought I would add some clarification. <span id="more-943"></span></p>
<p>The tip says:</p>
<blockquote><p>&#8220;One of my all-time favorite techniques that I still use today is placing text below a dimension line so that it is part of the dimension object itself. Enter either the DDEdit or TEdit command and select the dimension object. While in the text editor, place your cursor at the end of the dimension value and enter the code switch X followed by the desired text string. For example, if you want the word TYPICAL to appear below the dimension line, the code should read: XTYPICAL (note: the letter X must be uppercase).</p></blockquote>
<p>The trick to make this work is that you must add a back slash (\) before the uppercase X.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydrafter.com/autocad-tips/add-text-below-a-dimension-line/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Jeff Bartels offers handy AutoCAD tips on Twitter</title>
		<link>http://www.lazydrafter.com/autocad-tips/jeff-bartels-offers-handy-autocad-tips-on-twitter</link>
		<comments>http://www.lazydrafter.com/autocad-tips/jeff-bartels-offers-handy-autocad-tips-on-twitter#comments</comments>
		<pubDate>Sat, 05 Feb 2011 01:15:58 +0000</pubDate>
		<dc:creator>Josh Jones</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>

		<guid isPermaLink="false">http://www.lazydrafter.com/autocad-tips/jeff-bartels-offers-handy-autocad-tips-on-twitter</guid>
		<description><![CDATA[Just a quick note; if you&#8217;re interested in subscribing to some handy AutoCAD tips, follow on Jeff Bartels Twitter: @JeffBartels. Good stuff for a lazy drafter like me. Have a good weekend!]]></description>
			<content:encoded><![CDATA[<p>Just a quick note; if you&#8217;re interested in subscribing to some handy AutoCAD tips, follow on Jeff Bartels Twitter: <a href="http://twitter.com/JeffBartels">@JeffBartels</a>. Good stuff for a lazy drafter like me.</p>
<p>Have a good weekend!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydrafter.com/autocad-tips/jeff-bartels-offers-handy-autocad-tips-on-twitter/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Map 3D Query Macro and Script</title>
		<link>http://www.lazydrafter.com/autocad-tips/map-3d-query-macro-and-script</link>
		<comments>http://www.lazydrafter.com/autocad-tips/map-3d-query-macro-and-script#comments</comments>
		<pubDate>Wed, 02 Feb 2011 20:47:25 +0000</pubDate>
		<dc:creator>Josh Jones</dc:creator>
				<category><![CDATA[AutoCAD Map 3D Tips]]></category>
		<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[AutoLISP]]></category>
		<category><![CDATA[Macros]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.lazydrafter.com/?p=934</guid>
		<description><![CDATA[Here is a macro combined with a couple of scripts that I wrote this week. What it does is import data from another drawing (containing street names in this case) with a Map 3D query based on a rectangular area. The Macro: ^C^Cscript;P:/GIS/XREF-CITY-MAP.scr;(alert "Pick two diagonal points to define the import area.");(setq firstp (getpoint "Pick [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a macro combined with a couple of scripts that I wrote this week. What it does is import data from another drawing (containing street names in this case) with a Map 3D query based on a rectangular area.</p>
<p><strong>The Macro:</strong></p>
<pre>^C^Cscript;P:/GIS/XREF-CITY-MAP.scr;(alert "Pick two diagonal points to define the import area.");(setq firstp (getpoint "Pick first point: "));\(setq secondp (getpoint "Pick second point: "));\script;P:/GIS/IMPORT-STREETNAMES.scr;</pre>
<p>I&#8217;ll break it down for you. <span id="more-934"></span></p>
<p>The first part of the macro&#8230;</p>
<pre>script;P:/GIS/XREF-CITY-MAP.scr;</pre>
<p>&#8230;XREFs a map into the drawing so you can visually pan and zoom to your location. Here is the contents of &#8220;XREF-CITY-MAP.scr&#8221;:</p>
<pre>
-layer
n
X-BASE
s
X-BASE

-xref
a
P:\GIS\City-Map.dwg
0,0,0
1
1
0
</pre>
<p>The middle part of the macro&#8230;</p>
<pre>(alert "Pick two diagonal points to define the import area.");(setq firstp (getpoint "Pick first point: "));\(setq secondp (getpoint "Pick second point: "));\</pre>
<p>&#8230;creates an alert box telling the user to pick two diagonal points to define a rectangular area which will be used in the query. Notice that I am defining the coordinates for &#8220;firstp&#8221; and &#8220;secondp&#8221; and using back slashes (\) to pause for user input.</p>
<p>The last part of the macro&#8230;</p>
<pre>script;P:/GIS/IMPORT-STREETNAMES.scr;</pre>
<p>&#8230;defines and executes the Map 3D query. Here is the contents of &#8220;IMPORT-STREETNAMES.scr&#8221;:</p>
<pre>
-xref
d
*
ADEDRAWINGS
al
d
P
a
P
P:
x
at
P:\GIS\Street_Names.dwg
x
adequery
c
p
c
x
d
l
w
c
!firstp
!secondp
p
and
la
*
x
e
d
ADEDRAWINGS
de
Street_Names.dwg
x
</pre>
<p>Notice that I used &#8220;!firstp&#8221; and &#8220;!secondp&#8221; in the script to input the coordinates defined earlier in the macro.</p>
<p>I hope this helps you see the power of macros and scripts. If this is foreign to you, take some time to <a href="http://www.lazydrafter.com/autocad-resources/create-a-custom-toolbar-in-autocad">learn the basics of creating macros.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydrafter.com/autocad-tips/map-3d-query-macro-and-script/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

