<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Nate Holt&#039;s Blog</title>
	<atom:link href="http://nateholt.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nateholt.wordpress.com</link>
	<description>Nate Holt&#039;s blog on electrical CAD, etc.</description>
	<lastBuildDate>Wed, 07 Dec 2011 13:09:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nateholt.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/a138105e55a0e3e86a4dd025f28f2790?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Nate Holt&#039;s Blog</title>
		<link>http://nateholt.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nateholt.wordpress.com/osd.xml" title="Nate Holt&#039;s Blog" />
	<atom:link rel='hub' href='http://nateholt.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Nate Holt &#8211; moving on</title>
		<link>http://nateholt.wordpress.com/2011/03/11/nate-holt-moving-on/</link>
		<comments>http://nateholt.wordpress.com/2011/03/11/nate-holt-moving-on/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 11:02:24 +0000</pubDate>
		<dc:creator>nateholt</dc:creator>
				<category><![CDATA[Musings]]></category>

		<guid isPermaLink="false">http://nateholt.wordpress.com/?p=1576</guid>
		<description><![CDATA[Out-of-the-blue phone call, another company wanting to recruit me. I initially resisted. But it has been pretty tough since the lay-off almost two years ago. And issues probably common to most entrepreneurs&#8230; providing high-quality services but in some cases waiting months to get  paid (and even finding that many months of high-quality services are not going to be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1576&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://nateholt.files.wordpress.com/2011/03/headshot1.png"><img class="alignleft size-full wp-image-1579" title="headshot" src="http://nateholt.files.wordpress.com/2011/03/headshot1.png" alt="" width="157" height="214" /></a><a href="http://nateholt.files.wordpress.com/2011/03/headshot.png"></a></p>
<p>Out-of-the-blue phone call, another company wanting to recruit me. I initially resisted.</p>
<p>But it has been pretty tough since the lay-off almost two years ago. And issues probably common to most entrepreneurs&#8230; providing high-quality services but in some cases waiting months to get  paid (and even finding that many months of high-quality services are not going to be paid at all!) give a certain appeal to a steady paycheck and company-paid health insurance. But the key thing was this&#8230; the new job sounds complex and challenging&#8230; something that seems to appeal to my DNA. I just can&#8217;t help it.</p>
<p>In the next week or so I will be moving on. It is with sadness I bid farewell to AutoCAD Electrical.</p>
<p><em>Note: with &#8220;moving on&#8221;, it is awkward for me to maintain AutoCAD Electrical-related postings. These had to be deleted. Very sorry&#8230;</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nateholt.wordpress.com/1576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nateholt.wordpress.com/1576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nateholt.wordpress.com/1576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nateholt.wordpress.com/1576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nateholt.wordpress.com/1576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nateholt.wordpress.com/1576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nateholt.wordpress.com/1576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nateholt.wordpress.com/1576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nateholt.wordpress.com/1576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nateholt.wordpress.com/1576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nateholt.wordpress.com/1576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nateholt.wordpress.com/1576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nateholt.wordpress.com/1576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nateholt.wordpress.com/1576/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1576&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nateholt.wordpress.com/2011/03/11/nate-holt-moving-on/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ce307a71203312e21d0821883622273?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">nateholt</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2011/03/headshot1.png" medium="image">
			<media:title type="html">headshot</media:title>
		</media:content>
	</item>
		<item>
		<title>Energy-absorbing mailbox 2, Snow-plows 0</title>
		<link>http://nateholt.wordpress.com/2011/02/03/energy-absorbing-mailbox-2-snow-plows-0/</link>
		<comments>http://nateholt.wordpress.com/2011/02/03/energy-absorbing-mailbox-2-snow-plows-0/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 18:31:26 +0000</pubDate>
		<dc:creator>nateholt</dc:creator>
				<category><![CDATA[Musings]]></category>

		<guid isPermaLink="false">http://nateholt.wordpress.com/?p=1433</guid>
		<description><![CDATA[It is looking like my modified mailbox may survive its second year against the county snow-plows. This is a tiny bright spot in an otherwise long and bitter Ohio winter. Here is what the mailbox across the road looks like after the latest blast of snow. Not a pretty sight. And here is my mailbox, still standing [so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1433&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is looking like my modified mailbox may survive its second year against the county snow-plows. This is a tiny bright spot in an otherwise long and bitter Ohio winter.</p>
<p>Here is what the mailbox across the road looks like after the latest blast of snow. Not a pretty sight.</p>
<p><a href="http://nateholt.files.wordpress.com/2011/02/mailbox01.png"><img class="alignnone size-full wp-image-1434" title="mailbox01" src="http://nateholt.files.wordpress.com/2011/02/mailbox01.png" alt="" width="672" height="600" /></a></p>
<p>And here is my mailbox, still standing [so far!]. The difference may be the energy-absorbing mechanism I added to the design.</p>
<p><a href="http://nateholt.files.wordpress.com/2011/02/mailbox02.png"><img class="alignnone size-full wp-image-1435" title="mailbox02" src="http://nateholt.files.wordpress.com/2011/02/mailbox02.png" alt="" width="677" height="554" /></a></p>
<p>The idea is that the mass of snow-plow generated ice and snow, travelling 45-55 mph and striking the mail box assembly, causes the large gray hinged part of the mailbox to swing with the blow. This does two things: 1) As the hinged mailbox part rotates, the cross-sectional area exposed to the flying wall of snow/ice is reduced (side versus back).  Some of the trailing part of the wall of snow/ice will &#8220;miss&#8221; hitting the mailbox because the box will have partially rotated out of the way &#8211; exposing the back of the box instead of its maximum broad side. 2) The movement/acceleration of  the box as it rotates on the hinges absorbs energy along with the increasing resistance provided by the stretching spring. </p>
<p>The net result is that the shock of a &#8221;broadside hit&#8221; is reduced and, &#8220;rolling with the punch&#8221;, the energy is dissipated over a longer period of time. The spring auto-resets the mailbox to its normal position&#8230; ready for the next snow-plow.</p>
<p><a href="http://nateholt.files.wordpress.com/2011/02/mailbox031.png"><img class="alignnone size-full wp-image-1438" title="mailbox03" src="http://nateholt.files.wordpress.com/2011/02/mailbox031.png" alt="" width="940" height="597" /></a></p>
<p>So far, so good&#8230;!</p>
<p><strong>UPDATE</strong>: a commenter below asked whether the a violent rotation might fling out the contents of the mailbox. I made some snide comment, but this commenter has proven to be absolutely correct!  I need to adjust the door latch to be a bit stiffer&#8230;</p>
<p>We had another 6-inches of snow several days ago, and the mailboxes along my road were subsequently attacked by the snow-plows. Afterwards I found various pieces of my mail frozen to the road surface, extending to about 50 feet downstream from my still-standing mailbox. One key item, what was supposed to be a tax return, is pictured below, chiseled from the road&#8217;s surface ( ! )</p>
<p><a href="http://nateholt.files.wordpress.com/2011/02/mailbox04.png"><img class="alignnone size-full wp-image-1560" title="mailbox04" src="http://nateholt.files.wordpress.com/2011/02/mailbox04.png" alt="" width="361" height="230" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nateholt.wordpress.com/1433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nateholt.wordpress.com/1433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nateholt.wordpress.com/1433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nateholt.wordpress.com/1433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nateholt.wordpress.com/1433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nateholt.wordpress.com/1433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nateholt.wordpress.com/1433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nateholt.wordpress.com/1433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nateholt.wordpress.com/1433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nateholt.wordpress.com/1433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nateholt.wordpress.com/1433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nateholt.wordpress.com/1433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nateholt.wordpress.com/1433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nateholt.wordpress.com/1433/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1433&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nateholt.wordpress.com/2011/02/03/energy-absorbing-mailbox-2-snow-plows-0/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ce307a71203312e21d0821883622273?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">nateholt</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2011/02/mailbox01.png" medium="image">
			<media:title type="html">mailbox01</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2011/02/mailbox02.png" medium="image">
			<media:title type="html">mailbox02</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2011/02/mailbox031.png" medium="image">
			<media:title type="html">mailbox03</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2011/02/mailbox04.png" medium="image">
			<media:title type="html">mailbox04</media:title>
		</media:content>
	</item>
		<item>
		<title>Circuit Builder &#8211; switching from AWG to metric wire sizes &#8211; AutoCAD Electrical</title>
		<link>http://nateholt.wordpress.com/2011/01/31/circuit-builder-switching-from-awg-to-metric-wire-sizes-autocad-electrical/</link>
		<comments>http://nateholt.wordpress.com/2011/01/31/circuit-builder-switching-from-awg-to-metric-wire-sizes-autocad-electrical/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 03:27:10 +0000</pubDate>
		<dc:creator>nateholt</dc:creator>
				<category><![CDATA[Electrical]]></category>

		<guid isPermaLink="false">http://nateholt.wordpress.com/?p=1419</guid>
		<description><![CDATA[How to define an alternate &#8220;electrical standard&#8221; to force Circuit Builder to default to metric wire sizes in its calculations. Circuit Builder’s “Wire Size Lookup” dialog is a tool that can link into an “electrical standard” and guide you as you select motor size, motor power wire sizing, and appropriate ratings of the main disconnecting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1419&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>How to define an alternate &#8220;electrical standard&#8221; to force Circuit Builder to default to metric wire sizes in its calculations.</strong></p>
<p>Circuit Builder’s “Wire Size Lookup” dialog is a tool that can link into an “electrical standard” and guide you as you select motor size, motor power wire sizing, and appropriate ratings of the main disconnecting means – whether some type of breaker, fusible switch, or just fuses.</p>
<p>It can be launch from within Circuit Builder&#8217;s &#8220;Circuit Configuration&#8221; dialog as shown here:</p>
<p><img class="alignnone" src="http://nateholt.files.wordpress.com/2011/01/nec_10.png?w=613&#038;h=417" alt="" width="613" height="417" /></p>
<p>The dialog opens and includes a number of different de-rating factors and settings. The results of the calculations default to AWG wire sizes. But one of the settings on the dialog can toggle calculations and display of metric wire sizes.</p>
<p><a href="http://nateholt.files.wordpress.com/2011/01/mm2_01.png"><img class="alignnone size-full wp-image-1421" title="mm2_01" src="http://nateholt.files.wordpress.com/2011/01/mm2_01.png" alt="" width="667" height="496" /></a></p>
<p>Let&#8217;s say you have a project that needs to use metric wire sizes rather than AWG. But you&#8217;d rather not have to remember to toggle to the &#8220;MM2&#8243; metric option every time the &#8220;Wire Size Lookup&#8221; dialog displays. You&#8217;d like it to default to metric wire sizes.</p>
<p><strong>Setting up an alternate standard that defaults to metric wire sizes</strong></p>
<p>Here&#8217;s how to create an alternate standard that parallels the default National Electrical Code settings for wire calculations but defaults to using metric wire sizes instead of AWG sizes. This avoids having to hit the AWG/MM2 toggle each time the dialog displays.</p>
<p>1. Launch the built-in Access database editing tool as shown below.</p>
<p><img class="alignnone" src="http://nateholt.files.wordpress.com/2011/01/nec_03.png?w=596&#038;h=504" alt="" width="596" height="504" /></p>
<p>2. The Electrical Standards Database Editor dialog opens. Expand the “Default” and “NEC” tree nodes to show all table names. Find the table named “OPT_NEC”. Right click and Copy / Paste this table. Name the new copy “OPT_NEC-MM2” as shown below.</p>
<p><a href="http://nateholt.files.wordpress.com/2011/01/mm2_02.png"><img class="alignnone size-full wp-image-1422" title="mm2_02" src="http://nateholt.files.wordpress.com/2011/01/mm2_02.png" alt="" width="651" height="533" /></a></p>
<p>3.  Once you hit OK, the tree structure will update and add in the new “NEC-MM2” entry as shown below. Expand it to display the copied table OPT_NEC-MM2 and click on it to open. Edit the two &#8221;name&#8221; records highlighted in red. </p>
<p>Here&#8217;s the key change. Edit the record marked with a CODE field value of &#8220;W_STD&#8221;. Change its DEFAULT field value from &#8220;AWG&#8221; to &#8220;MM2&#8243;. Hit “Save” and exit out of the database editor.</p>
<p><a href="http://nateholt.files.wordpress.com/2011/01/mm2_03.png"><img class="alignnone size-full wp-image-1424" title="mm2_03" src="http://nateholt.files.wordpress.com/2011/01/mm2_03.png" alt="" width="749" height="588" /></a></p>
<p><strong>Testing</strong></p>
<p>Open up any project. Right click on the project name in the AutoCAD Electrical Project Manager and select it.</p>
<p><a href="http://nateholt.files.wordpress.com/2011/01/mm2_04.png"><img class="alignnone size-full wp-image-1425" title="mm2_04" src="http://nateholt.files.wordpress.com/2011/01/mm2_04.png" alt="" width="565" height="638" /></a></p>
<p>Now run Circuit Builder and start to “Configure” a motor circuit. On the “Motor Setup” right at the front end, hit the “Select Motor” as shown below and make some motor selection. This sets in motion the queries into the select standard in the Electrical Standards Database file.</p>
<p><img class="alignnone" src="http://nateholt.files.wordpress.com/2011/01/nec_09.png?w=586&#038;h=517" alt="" width="586" height="517" /></p>
<p>Select any motor size in dialog above and hit OK. Now cross your fingers and pop open the &#8220;Wire Size Lookup&#8221; dialog as shown below.</p>
<p><img class="alignnone" src="http://nateholt.files.wordpress.com/2011/01/nec_10.png?w=611&#038;h=419" alt="" width="611" height="419" /></p>
<p>The dialog should display. Metric wire sizes instead of AWG sizes should now calculate and display. </p>
<p><a href="http://nateholt.files.wordpress.com/2011/01/mm2_05.png"><img class="alignnone size-full wp-image-1426" title="mm2_05" src="http://nateholt.files.wordpress.com/2011/01/mm2_05.png" alt="" width="632" height="507" /></a></p>
<p>If there are other defaults you&#8217;d like to change, take a look in your new copied OPT_NEC-MM2 table and adjust.</p>
<p><em>Other Circuit Builder tutorials:</em></p>
<p><em><a href="http://nateholt.wordpress.com/2011/02/17/tutorial-introduction-to-the-circuit-builder-tool-part-1-autocad-electrical/">Tutorial &#8211; Introduction to the Circuit Builder Tool (Part 1)</a></em><br />
<em><a href="http://nateholt.wordpress.com/2011/01/30/circuit-builder-creating-an-alternate-electrical-standards-setting-autocad-electrical/">Circuit Builder &#8211; Creating an Alternate Electrical Standards Setting</a></em><br />
<em><a href="http://nateholt.wordpress.com/2009/09/10/circuit-builder-leveraging-autocads-group-concept-autocad-electrical/">Circuit Builder &#8211; Leveraging AutoCAD&#8217;s &#8220;Group&#8221; Concept</a></em><br />
<em><a href="http://nateholt.wordpress.com/2009/08/24/circuit-builder-configure-mode-adding-a-pick-from-icon-menu-selection/">Circuit Builder Configure Mode &#8211; Adding a &#8220;Pick from Icon Menu&#8221; Selection</a></em><br />
<em><a href="http://nateholt.wordpress.com/2009/08/23/circuit-builder-embedding-custom-calls-in-the-spreadsheet-autocad-electrical/">Circuit Builder &#8211; Embedding Custom Calls in the Spreadsheet</a></em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nateholt.wordpress.com/1419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nateholt.wordpress.com/1419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nateholt.wordpress.com/1419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nateholt.wordpress.com/1419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nateholt.wordpress.com/1419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nateholt.wordpress.com/1419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nateholt.wordpress.com/1419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nateholt.wordpress.com/1419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nateholt.wordpress.com/1419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nateholt.wordpress.com/1419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nateholt.wordpress.com/1419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nateholt.wordpress.com/1419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nateholt.wordpress.com/1419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nateholt.wordpress.com/1419/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1419&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nateholt.wordpress.com/2011/01/31/circuit-builder-switching-from-awg-to-metric-wire-sizes-autocad-electrical/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ce307a71203312e21d0821883622273?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">nateholt</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2011/01/nec_10.png" medium="image" />

		<media:content url="http://nateholt.files.wordpress.com/2011/01/mm2_01.png" medium="image">
			<media:title type="html">mm2_01</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2011/01/nec_03.png" medium="image" />

		<media:content url="http://nateholt.files.wordpress.com/2011/01/mm2_02.png" medium="image">
			<media:title type="html">mm2_02</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2011/01/mm2_03.png" medium="image">
			<media:title type="html">mm2_03</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2011/01/mm2_04.png" medium="image">
			<media:title type="html">mm2_04</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2011/01/nec_09.png" medium="image" />

		<media:content url="http://nateholt.files.wordpress.com/2011/01/nec_10.png" medium="image" />

		<media:content url="http://nateholt.files.wordpress.com/2011/01/mm2_05.png" medium="image">
			<media:title type="html">mm2_05</media:title>
		</media:content>
	</item>
		<item>
		<title>Win7 &#8220;Aero Themes&#8221; and AutoCAD 2010/2011 (??)</title>
		<link>http://nateholt.wordpress.com/2010/12/01/win7-aero-themes-and-autocad-20102011/</link>
		<comments>http://nateholt.wordpress.com/2010/12/01/win7-aero-themes-and-autocad-20102011/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 04:47:09 +0000</pubDate>
		<dc:creator>nateholt</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://nateholt.wordpress.com/?p=1329</guid>
		<description><![CDATA[&#8220;Aero&#8221; theme selection potentially causing instability with AutoCAD 2010/2011 (??) Win7 &#8221;Home Premium&#8221; has not been too friendly with AutoCAD 2010/2011 on my inexpensive laptop. It would go through periods of locking up every hour or so when AutoCAD was running, even when doing just the simplest tasks. Sometimes just sitting there&#8230; I would come back to the machine [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1329&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>&#8220;Aero&#8221; theme selection potentially causing instability with AutoCAD 2010/2011 (??)</strong></p>
<p>Win7 &#8221;Home Premium&#8221; has not been too friendly with AutoCAD 2010/2011 on my inexpensive laptop. It would go through periods of locking up every hour or so when AutoCAD was running, even when doing just the simplest tasks. Sometimes just sitting there&#8230; I would come back to the machine and it would be locked up.</p>
<p>A Google hit suggested that the Win7 &#8220;Aero&#8221; theme might be the culprit&#8230;</p>
<p>&#8230;it&#8217;s now been two &#8220;lock-up-free&#8221; days since I flipped my machine over to a generic theme!  Fingers-crossed&#8230;</p>
<p><a href="http://nateholt.files.wordpress.com/2010/12/aerotheme01.png"><img class="alignnone size-full wp-image-1330" title="aerotheme01" src="http://nateholt.files.wordpress.com/2010/12/aerotheme01.png" alt="" width="800" height="702" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nateholt.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nateholt.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nateholt.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nateholt.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nateholt.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nateholt.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nateholt.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nateholt.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nateholt.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nateholt.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nateholt.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nateholt.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nateholt.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nateholt.wordpress.com/1329/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1329&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nateholt.wordpress.com/2010/12/01/win7-aero-themes-and-autocad-20102011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ce307a71203312e21d0821883622273?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">nateholt</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/12/aerotheme01.png" medium="image">
			<media:title type="html">aerotheme01</media:title>
		</media:content>
	</item>
		<item>
		<title>Add sounds to your too-quiet AutoLisp utility</title>
		<link>http://nateholt.wordpress.com/2010/08/24/add-sounds-to-your-too-quiet-autolisp-utility/</link>
		<comments>http://nateholt.wordpress.com/2010/08/24/add-sounds-to-your-too-quiet-autolisp-utility/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 00:09:04 +0000</pubDate>
		<dc:creator>nateholt</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://nateholt.wordpress.com/?p=1136</guid>
		<description><![CDATA[Add audible feedback &#8220;sounds&#8221; to brighten your AutoLISP functions Pretty much the totality of my AutoLISP customization has been mute. Last week I decided that it was time to make a little noise. For example, if my function failed for some reason (operator input error or premature program exit), I wanted the tool to not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1136&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Add audible feedback &#8220;sounds&#8221; to brighten your AutoLISP functions</strong></p>
<p>Pretty much the totality of my AutoLISP customization has been mute. Last week I decided that it was time to make a little noise.</p>
<p>For example, if my function failed for some reason (operator input error or premature program exit), I wanted the tool to not just issue a little message to the command window&#8230; I wanted it to be accompanied with a clundge sound.</p>
<p><strong>(acet-sys-beep &#8230;)</strong></p>
<p>A search turned up a couple methods to embed some simple sounds into an AutoLISP function. The one way that seemed to work for me was using a call to &#8220;acet-sys-beep&#8221;  and this only after I installed the &#8220;Express tool&#8221; option that comes on the AutoCAD install CD.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/08/sound_01.png"><img class="alignnone size-full wp-image-1137" title="sound_01" src="http://nateholt.files.wordpress.com/2010/08/sound_01.png" alt="" width="647" height="332" /></a></p>
<p>But once in place, there were three different sounds I could generate from this call. If you want to experiment, type each of these at the &#8220;Command:&#8221; prompt (if you don&#8217;t hear a thing, you may need to check for existence of the AutoCAD &#8221;EXPRESSTOOLS&#8221; on your machine):</p>
<ul>
<li>(acet-sys-beep 16) [Enter]</li>
<li>(acet-sys-beep 48) [Enter]</li>
<li>(acet-sys-beep 64) [Enter]</li>
</ul>
<p><strong>Sample Utility that invokes a couple different sounds</strong></p>
<p>Here&#8217;s an example function showing how two different sounds can be tied into success and failure of a function. This tool just swaps tag-ID values between two picked AutoCAD Electrical components. If the components are different types, then an error dialog is accompanied by a bad sound. If success, then a more happy sound.</p>
<p>This is not rocket-science. But it makes my mundane utility just a bit more interesting.</p>
<p>The two places where the sound is invoked is highlighted below. Just to be safe, in both places there is a call to confirm that function (acet-sys-beep&#8230;) exists&#8230; before trying to call it.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/08/sound_02.png"><img class="alignnone size-full wp-image-1138" title="sound_02" src="http://nateholt.files.wordpress.com/2010/08/sound_02.png" alt="" width="851" height="1160" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nateholt.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nateholt.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nateholt.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nateholt.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nateholt.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nateholt.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nateholt.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nateholt.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nateholt.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nateholt.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nateholt.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nateholt.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nateholt.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nateholt.wordpress.com/1136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1136&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nateholt.wordpress.com/2010/08/24/add-sounds-to-your-too-quiet-autolisp-utility/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ce307a71203312e21d0821883622273?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">nateholt</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/08/sound_01.png" medium="image">
			<media:title type="html">sound_01</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/08/sound_02.png" medium="image">
			<media:title type="html">sound_02</media:title>
		</media:content>
	</item>
		<item>
		<title>QSELECT driving PROPERTIES command</title>
		<link>http://nateholt.wordpress.com/2010/07/11/qselect-driving-properties-command-autocad-electrical/</link>
		<comments>http://nateholt.wordpress.com/2010/07/11/qselect-driving-properties-command-autocad-electrical/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 00:12:58 +0000</pubDate>
		<dc:creator>nateholt</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://nateholt.wordpress.com/?p=1032</guid>
		<description><![CDATA[The AutoCAD PROPERTIES command can be driven by a filtered selection set created by the QSELECT (Quick Select) command or sub-dialog. NOTE: 100+ other AutoCAD Electrical utilities indexed here. Working on a potential customer&#8217;s sample drawing, I converted a complex collection of dumb graphics into an AutoCAD Electrical &#8220;smart&#8221; symbol. Works fine but the wire connection [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1032&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>The AutoCAD PROPERTIES command can be driven by a filtered selection set created by the QSELECT (Quick Select) command or sub-dialog.</strong></p>
<p><em><strong>NOTE: 100+ other AutoCAD Electrical utilities indexed <a href="http://nateholt.wordpress.com/wp-admin/post.php?post=48&amp;action=edit&amp;message=1">here</a>.</strong></em></p>
<p>Working on a potential customer&#8217;s sample drawing, I converted a complex collection of dumb graphics into an AutoCAD Electrical &#8220;smart&#8221; symbol. Works fine but the wire connection attributes ended up being very tiny because the graphics was scaled in metric units and the default wire connection attribute definition text size was coming in assuming imperial units. </p>
<p><a href="http://nateholt.files.wordpress.com/2010/07/qselect_011.png"><img class="alignnone size-full wp-image-1035" title="qselect_01" src="http://nateholt.files.wordpress.com/2010/07/qselect_011.png" alt="" width="919" height="692" /></a></p>
<p>Normally would have just moved on&#8230; the converted symbol works great. But the wire connection points are hidden behind connection dots that are part of the symbol. I&#8217;d rather these wire connection attributes be big enough to at least extend a bit beyond the dot so that it is obvious that they&#8217;re there.</p>
<p>So, how to quickly adjust the text size of these 60+ wire connection attribute definitions? Could write a little AutoLISP utility&#8230; but how about using something already built into AutoCAD?</p>
<p><strong>QSELECT and PROPERTIES command</strong></p>
<p>The PROPERTIES command seemed like the right tool to make the actual text height change. But how to carefully select the 60-plus attribute definitions, almost all of which are hidden behind other graphics?</p>
<p>With a little tinkering, the &#8220;Quick Select&#8221; mode with filtering did the trick. Here&#8217;s the sequence:</p>
<p><a href="http://nateholt.files.wordpress.com/2010/07/qselect_02.png"><img class="alignnone size-full wp-image-1036" title="qselect_02" src="http://nateholt.files.wordpress.com/2010/07/qselect_02.png" alt="" width="649" height="408" /></a></p>
<p>This should bring up the &#8220;Quick Select&#8221; sub-dialog. If it does not, just type QSELECT [Enter] at the AutoCAD &#8216;Command:&#8217; prompt. Select <strong>Attribute Definition</strong> as shown below.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/07/qselect_03.png"><img class="alignnone size-full wp-image-1037" title="qselect_03" src="http://nateholt.files.wordpress.com/2010/07/qselect_03.png" alt="" width="663" height="575" /></a></p>
<p>And we want to filter on the attribute definition Tag names. The wire connection attributes expected by AutoCAD Electrical follow the naming convention X?TERM?? where the first &#8220;?&#8221; is a 1, 2, 4, or 8 and the last two form an incrementing number value (starting at &#8220;01&#8243;). So we&#8217;ll just enter in X?TERM?? where the &#8220;?&#8221; wild-card represents any single character.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/07/qselect_04.png"><img class="alignnone size-full wp-image-1038" title="qselect_04" src="http://nateholt.files.wordpress.com/2010/07/qselect_04.png" alt="" width="702" height="584" /></a></p>
<p>That&#8217;s it. We hit OK and the &#8220;Quick Select&#8221; finds 62 attribute definitions that have a &#8220;Tag&#8221; value that wild-card matches string &#8216;X?TERM??&#8217;.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/07/qselect_05.png"><img class="alignnone size-full wp-image-1039" title="qselect_05" src="http://nateholt.files.wordpress.com/2010/07/qselect_05.png" alt="" width="619" height="612" /></a></p>
<p>Now, the fun part. Adjust the text size in the PROPERTIES dialog and all 62 tiny attribute definitions resize and now reveal themselves!</p>
<p><a href="http://nateholt.files.wordpress.com/2010/07/qselect_06.png"><img class="alignnone size-full wp-image-1040" title="qselect_06" src="http://nateholt.files.wordpress.com/2010/07/qselect_06.png" alt="" width="601" height="450" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nateholt.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nateholt.wordpress.com/1032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nateholt.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nateholt.wordpress.com/1032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nateholt.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nateholt.wordpress.com/1032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nateholt.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nateholt.wordpress.com/1032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nateholt.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nateholt.wordpress.com/1032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nateholt.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nateholt.wordpress.com/1032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nateholt.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nateholt.wordpress.com/1032/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=1032&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nateholt.wordpress.com/2010/07/11/qselect-driving-properties-command-autocad-electrical/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ce307a71203312e21d0821883622273?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">nateholt</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/07/qselect_011.png" medium="image">
			<media:title type="html">qselect_01</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/07/qselect_02.png" medium="image">
			<media:title type="html">qselect_02</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/07/qselect_03.png" medium="image">
			<media:title type="html">qselect_03</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/07/qselect_04.png" medium="image">
			<media:title type="html">qselect_04</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/07/qselect_05.png" medium="image">
			<media:title type="html">qselect_05</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/07/qselect_06.png" medium="image">
			<media:title type="html">qselect_06</media:title>
		</media:content>
	</item>
		<item>
		<title>Generic text/mtext/attrib/attdef Find/Replace utility &#8211; AutoLISP</title>
		<link>http://nateholt.wordpress.com/2010/07/06/generic-textmtextattribattdef-findreplace-utility-autolisp/</link>
		<comments>http://nateholt.wordpress.com/2010/07/06/generic-textmtextattribattdef-findreplace-utility-autolisp/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 20:53:39 +0000</pubDate>
		<dc:creator>nateholt</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://nateholt.wordpress.com/?p=989</guid>
		<description><![CDATA[Enter substrings for &#8220;find&#8221; and &#8220;replace&#8221;&#8230; then pick/pick/pick on TEXT, MTEXT, ATTRIB, ATTDEF text string values to update. Frustration setting in as I worked on AutoCAD libraries for an electrical sub-station design application&#8230; copy circuit to a new drawing name, open, then use an attribute edit command to change a substring value in a dozen or so attributes. A [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=989&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Enter substrings for &#8220;find&#8221; and &#8220;replace&#8221;&#8230; then pick/pick/pick on TEXT, MTEXT, ATTRIB, ATTDEF text string values to update.</strong></p>
<p>Frustration setting in as I worked on AutoCAD libraries for an electrical sub-station design application&#8230; copy circuit to a new drawing name, open, then use an attribute edit command to change a substring value in a dozen or so attributes. A little Find/Replace tool would be so welcome right now!</p>
<p>After 20 minutes of this tediousness, decided it was time to either find an existing tool or create a quick one. Found <a href="http://nateholt.wordpress.com/2009/07/15/mtext-substring-findreplace-utility/">previous posting </a>for a drawing-wide MTEXT find/replace utility. Good place to start.</p>
<p><strong>Solution</strong></p>
<p>Here is the result. Seems to work.</p>
<p>The flow is 1) enter &#8220;Find&#8221; substring, 2) enter &#8220;Replace&#8221; substring, 3) start picking on text. The text can be attributes, text entities, attribute definitions, and even multi-line text (multi-line attributes not covered in this version).</p>
<p>Here is an overview of how the original version was modified.</p>
<p><strong>Step 1</strong> - Renamed the source &#8220;.lsp&#8221; file to &#8220;text_fr.lsp&#8221;</p>
<p><strong>Step 2</strong> - Got rid of the drawing-wide &#8220;ssget&#8221; and changed to a loop of individual text picks (below).</p>
<p><a href="http://nateholt.files.wordpress.com/2010/06/text_fr_01.png"><img class="alignnone size-full wp-image-993" title="text_fr_01" src="http://nateholt.files.wordpress.com/2010/06/text_fr_01.png" alt="" width="734" height="616" /></a></p>
<p><strong>Step 3</strong> &#8211; added two blocks of code to deal with Attributes/Attribute definitions and with straight Text entities (below).</p>
<p><a href="http://nateholt.files.wordpress.com/2010/06/text_fr_02.png"><img class="alignnone size-full wp-image-994" title="text_fr_02" src="http://nateholt.files.wordpress.com/2010/06/text_fr_02.png" alt="" width="697" height="751" /></a></p>
<p>That should do it. It seems to work for me&#8230; speeded-up my effort to copy and modify my folder of sub-circuits. </p>
<p>Here&#8217;s a simple example of it in operation. Starting out with a sample drawing that contains the substring &#8220;DN100&#8243; in three different places: an attribute that is part of a block insert instance, a single line of text, and a 3-line multi-line text entity just below it.</p>
<p>Let&#8217;s say we want to selectively change instances of &#8220;DN100&#8243; to now be &#8220;CM99&#8243;.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/06/text_fr_03.png"><img class="alignnone size-full wp-image-996" title="text_fr_03" src="http://nateholt.files.wordpress.com/2010/06/text_fr_03.png" alt="" width="724" height="446" /></a></p>
<p>With the utility APPLOADED (download revised version  <a href="http://www.mediafire.com/?mdqznkde0jw">here</a> - see update note below) we launch by typing TEXT_FR [Enter] at the &#8220;Command:&#8221; prompt.</p>
<p>To use&#8230; just APPLOAD the text_fr.lsp file. Then</p>
<p>1. Type TEXT_FR [Enter] at the AutoCAD command prompt</p>
<p>2. Enter the &#8220;Find&#8221; substring, Enter the &#8220;Replace&#8221; substring</p>
<p><a href="http://nateholt.files.wordpress.com/2010/06/text_fr_041.png"><img class="alignnone size-full wp-image-998" title="text_fr_04" src="http://nateholt.files.wordpress.com/2010/06/text_fr_041.png" alt="" width="786" height="479" /></a><a href="http://nateholt.files.wordpress.com/2010/06/text_fr_04.png"></a></p>
<p>3. Start picking on individual Text, MText, Attribute or Attribute Definition entities</p>
<p><a href="http://nateholt.files.wordpress.com/2010/06/text_fr_051.png"><img class="alignnone size-full wp-image-1000" title="text_fr_05" src="http://nateholt.files.wordpress.com/2010/06/text_fr_051.png" alt="" width="786" height="587" /></a> </p>
<p>There it is. Seemed to work really well for me!</p>
<p><span style="text-decoration:underline;"><strong>UPDATE</strong></span>: user note below correctly points out that if this tool used to find/replace attribute values for AutoCAD Electrical &#8220;TAG1&#8243; attribute values, there is a good chance (especially if &#8220;IEC&#8221; tag mode is active) of confusion. This is because there is an Xdata tag name &#8220;VIA_WD_BASETAG&#8221; that is pushed out to parent components. This Xdata value carries the base copy of the overall component&#8217;s tag-ID. If the tag-ID is changed by our utility above, then this Xdata value needs to be processed as well. Here is a screenshot of the addition to our utility to deal with keeping this Xdata in synch. This code addition should lie dormant unless the tool is used on a &#8220;TAG*&#8221; attribute with AutoCAD Electrical in memory.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/07/text_fr_06.png"><img class="alignnone size-full wp-image-1028" title="text_fr_06" src="http://nateholt.files.wordpress.com/2010/07/text_fr_06.png" alt="" width="810" height="617" /></a></p>
<p><strong>Update 2</strong> &#8211; using the tool on ATTDEFs (as opposed to ATTRIBs) not working. Found that the utility was set to look at subrecord 1 instead of subrecord 2. Download revised version of tool <a href="http://www.mediafire.com/?r4hxqhpbl9okqg6">here</a>. I apologize for all the confusion this caused. &#8211; Nate.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nateholt.wordpress.com/989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nateholt.wordpress.com/989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nateholt.wordpress.com/989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nateholt.wordpress.com/989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nateholt.wordpress.com/989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nateholt.wordpress.com/989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nateholt.wordpress.com/989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nateholt.wordpress.com/989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nateholt.wordpress.com/989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nateholt.wordpress.com/989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nateholt.wordpress.com/989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nateholt.wordpress.com/989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nateholt.wordpress.com/989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nateholt.wordpress.com/989/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=989&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nateholt.wordpress.com/2010/07/06/generic-textmtextattribattdef-findreplace-utility-autolisp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ce307a71203312e21d0821883622273?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">nateholt</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/06/text_fr_01.png" medium="image">
			<media:title type="html">text_fr_01</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/06/text_fr_02.png" medium="image">
			<media:title type="html">text_fr_02</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/06/text_fr_03.png" medium="image">
			<media:title type="html">text_fr_03</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/06/text_fr_041.png" medium="image">
			<media:title type="html">text_fr_04</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/06/text_fr_051.png" medium="image">
			<media:title type="html">text_fr_05</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/07/text_fr_06.png" medium="image">
			<media:title type="html">text_fr_06</media:title>
		</media:content>
	</item>
		<item>
		<title>My message to my daughter upon her marriage today</title>
		<link>http://nateholt.wordpress.com/2010/06/12/my-message-to-my-daughter-upon-her-marriage-today/</link>
		<comments>http://nateholt.wordpress.com/2010/06/12/my-message-to-my-daughter-upon-her-marriage-today/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 04:56:23 +0000</pubDate>
		<dc:creator>nateholt</dc:creator>
				<category><![CDATA[Musings]]></category>

		<guid isPermaLink="false">http://nateholt.wordpress.com/?p=905</guid>
		<description><![CDATA[Late this afternoon I gave away my only daughter in marriage.  It was hard walking her down the asile. And she was so beautiful. And it was even harder at the wedding reception, preparing for the final father-daughter dance. Here&#8217;s what I said to my daughter as I asked her for this last dance. Nate. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=905&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Late this afternoon I gave away my only daughter in marriage.  It was hard walking her down the asile. And she was so beautiful.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/06/rachel_ade_wedding_asile2.jpg"><img class="alignnone size-full wp-image-917" title="rachel_ade_wedding_asile2" src="http://nateholt.files.wordpress.com/2010/06/rachel_ade_wedding_asile2.jpg" alt="" width="720" height="540" /></a></p>
<p><a href="http://nateholt.files.wordpress.com/2010/06/rachel_ade_wedding_bubbles.jpg"><img class="alignnone size-full wp-image-913" title="rachel_ade_wedding_bubbles" src="http://nateholt.files.wordpress.com/2010/06/rachel_ade_wedding_bubbles.jpg" alt="" width="720" height="540" /></a></p>
<p>And it was even harder at the wedding reception, preparing for the final father-daughter dance. Here&#8217;s what I said to my daughter as I asked her for this last dance.</p>
<p>Nate.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/06/rachel_ade_wedding1.jpg"></a></p>
<p>11-June-2010</p>
<p>Rachel, you were my Special Angel, a nickname I attached to you when you were just a little girl.</p>
<p>You were the one who would spend hours with me in the evenings, quietly reading your arm-load of books, camped under my work table as I labored-away on my computer. More than once you would fall asleep under that table, amongst the scattered books. I would have to gather you up to carry you to bed.</p>
<p>You were special.</p>
<p>You were the one who would make me promise&#8230; PROMISE&#8230; to wake you up before I would leave the house on the many Monday mornings at 5am to catch the first flight out.  In the early morning darkness I would tap on your door and quietly call out your name. Five minutes later you would come padding down&#8230; doll and blanket in tow&#8230; and silently watch me finish my breakfast. Then, as I picked up my bag and headed out the back door, you would move to the front door. And as I backed the car out of the driveway, I would spy my Special Angel, illuminated by the porch light, standing there inside the glass front door. I would blink my headlights&#8230; you would raise your hand&#8230; and I would slowly drive away for yet another week of out-of-town work.</p>
<p>You were special.</p>
<p>How many thousands of times did we have bed-time prayers together? The routine was this: I would be working in my office on the computer. I would hear you brush your teeth. Next, the bathroom light switches off. A few moments later there is the gentle rustling of blankets and such as you get into bed and arrange your pillows and dolls. And finally, there’s the sound of the bedroom light switching off.  All is now quiet. Then I hear a little voice calling out for me&#8230; “Dad&#8230; I’m ready”. That was my signal. I would pause from my work and climb the stairs to your room. In the darkness, I would kneel down beside your bed and we’d have our prayer time together.</p>
<p>But as you grew up and moved into your later teen years, you sorta outgrew bed-time prayers thing with your dad. High-school, busy-ness, activities&#8230; growing from a little girl into a young woman.</p>
<p>But there was to be one more time&#8230; and of the thousands of times we had bed-time prayer together as you were growing up, this very last one is the one that is burned into my memory:</p>
<p>You were moving away. You were all packed up. You were leaving home the next morning to start college &#8211; hundreds of miles away. I think we both sensed that a chapter in our lives was ending.</p>
<p>That last night&#8230; before you were to leave home&#8230; as I worked at my computer, I heard you brushing your teeth. The bathroom light snaps off. The rustling sounds of you getting into bed. The bedroom light turning off. Quiet. I sit there at my computer. Thoughts of gratitude and thankfulness to God for bringing us to the end of this life’s chapter, but mixed in with a bit of sadness. I think back to the years of our bed-time prayers together, and how that routine thing now seemed so much more precious in the years since it had ended.</p>
<p>But there was to be this one last time. From the quietness, I hear your voice call out, just as it did some years before as a younger, littler girl&#8230; “Dad. I’m ready.” I climbed the stairs to your room, I’m glad it’s dark because tears are filling my eyes. That final bed-time prayer with my special angel, me weeping in the darkness&#8230; I will never forget.</p>
<p>Finally, I believe God’s hand has touched your life.</p>
<p>You were probably six or seven. We guys were all at the softball field for a game in our men’s church league. It was a hot, muggy summer evening. The men were loosening up&#8230; stretching, playing catch, taking practice swings.</p>
<p>As you stand there watching, I suddenly feel compelled to take three steps forward to stand between you and a player taking cuts with a baseball bat some distance away. Step&#8230; step&#8230; and on the third one, as I step in front of you, the bat slips from his grip and shoots through the air, barrel first. It strikes me in the thigh on that third step. We all jump back, everybody looks.</p>
<p>I think we probably went on to lose that game. And what everybody thought that evening was that our record was not getting any better and, oh yeah, Nate will probably wake up tomorrow with a nice-sized bruise on his thigh. But nobody saw what really happened that evening, and I didn’t say anything. I filed this away in my heart. Because I believed that on that hot, muggy summer evening, that I witnessed the Hand of God in and on your life&#8230; the barrel-end of that flying bat was thigh-high on me, but would have been forehead high on you.</p>
<p>God is good. And you are special. God’s hand is on you and Eric.</p>
<p>So, here we are this evening. I gave you away a couple hours ago. But will you dance with your dad this one last time?</p>
<p><em> </em></p>
<p><em>============</em></p>
<p><em>Update: pics thanks to Remi Bowers, Sandy Felzer</em></p>
<p>Update: watching this advertisement brings back a small measure of the feelings I had that day&#8230;  <em>Nate.</em></p>
<span style="text-align:center; display: block;"><a href="http://nateholt.wordpress.com/2010/06/12/my-message-to-my-daughter-upon-her-marriage-today/"><img src="http://img.youtube.com/vi/2qf8OGLqE1s/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nateholt.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nateholt.wordpress.com/905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nateholt.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nateholt.wordpress.com/905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nateholt.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nateholt.wordpress.com/905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nateholt.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nateholt.wordpress.com/905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nateholt.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nateholt.wordpress.com/905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nateholt.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nateholt.wordpress.com/905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nateholt.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nateholt.wordpress.com/905/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=905&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nateholt.wordpress.com/2010/06/12/my-message-to-my-daughter-upon-her-marriage-today/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ce307a71203312e21d0821883622273?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">nateholt</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/06/rachel_ade_wedding_asile2.jpg" medium="image">
			<media:title type="html">rachel_ade_wedding_asile2</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/06/rachel_ade_wedding_bubbles.jpg" medium="image">
			<media:title type="html">rachel_ade_wedding_bubbles</media:title>
		</media:content>
	</item>
		<item>
		<title>Align Attribute utility</title>
		<link>http://nateholt.wordpress.com/2010/02/10/align-attribute-utility/</link>
		<comments>http://nateholt.wordpress.com/2010/02/10/align-attribute-utility/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 14:18:19 +0000</pubDate>
		<dc:creator>nateholt</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://nateholt.wordpress.com/?p=732</guid>
		<description><![CDATA[Pick master attribute and then pick one or dozens of other attributes from multiple block instances to align with it. Steve Kemp responded to a user request on the AutoCAD Electrical discussion group by developing this cool little utility. He passed it on to me for posting here. Here is an example of how it might [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=732&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Pick master attribute and then pick one or dozens of other attributes from multiple block instances to align with it.</strong></p>
<p>Steve Kemp responded to a user request on the AutoCAD Electrical <a href="http://discussion.autodesk.com/forums/?categoryID=13">discussion group </a>by developing this cool little utility. He passed it on to me for posting here.</p>
<p>Here is an example of how it might be used. Let&#8217;s say that you have a column of terminal block inserts that are wired to a PLC module block insert. But, for this one drawing, you&#8217;d like to relocate one of the attributes to the left-hand side of each terminal block instance.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/02/alignattr01.png"><img class="alignnone size-full wp-image-733" title="alignattr01" src="http://nateholt.files.wordpress.com/2010/02/alignattr01.png" alt="" width="517" height="490" /></a></p>
<p>Here&#8217;s how to do it with Steve&#8217;s tool. First, use normal AutoCAD grips to position the attribute of one instance to the desired position.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/02/alignattr021.png"><img class="alignnone size-full wp-image-735" title="alignattr02" src="http://nateholt.files.wordpress.com/2010/02/alignattr021.png" alt="" width="401" height="327" /></a></p>
<p>Next, APPLOAD Steve&#8217;s little AutoLISP utility <a href="http://www.mediafire.com/?m4yigzn3dmj">here</a>. Type AATTR [Enter] at the command line.</p>
<p>Now pick on the one relocated attribute. Choose &#8220;vertical&#8221; alignment (default).</p>
<p><a href="http://nateholt.files.wordpress.com/2010/02/alignattr03.png"><img class="alignnone size-full wp-image-736" title="alignattr03" src="http://nateholt.files.wordpress.com/2010/02/alignattr03.png" alt="" width="495" height="701" /></a></p>
<p>Hit [Enter]&#8230; and there you go! Everything neatly aligned with the master.</p>
<p><a href="http://nateholt.files.wordpress.com/2010/02/alignattr04.png"><img class="alignnone size-full wp-image-737" title="alignattr04" src="http://nateholt.files.wordpress.com/2010/02/alignattr04.png" alt="" width="537" height="529" /></a></p>
<p>Current limitations: as written, the utility does not process attributes that are set to &#8220;FIT&#8221; or &#8220;ALIGN&#8221; justification.</p>
<p><em>About Steve Kemp&#8230; in addition to applications development (contact him at </em><a href="mailto:skiflea@mchsi.com"><em>skiflea@mchsi.com</em></a><em>), Steve likes to surf. Though trapped in the heartland of the US, if he loads his boat down with 1600 or so pounds of dead weight so that it sits low in the water and then drives 9-11 MPH, it will throw up a wake large enough to surf!</em></p>
<p><a href="http://nateholt.files.wordpress.com/2010/02/stevewakesurfing11835.png"><img class="alignnone size-full wp-image-739" title="SteveWakeSurfing11835" src="http://nateholt.files.wordpress.com/2010/02/stevewakesurfing11835.png" alt="" width="240" height="320" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nateholt.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nateholt.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nateholt.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nateholt.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nateholt.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nateholt.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nateholt.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nateholt.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nateholt.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nateholt.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nateholt.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nateholt.wordpress.com/732/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nateholt.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nateholt.wordpress.com/732/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=732&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nateholt.wordpress.com/2010/02/10/align-attribute-utility/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ce307a71203312e21d0821883622273?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">nateholt</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/02/alignattr01.png" medium="image">
			<media:title type="html">alignattr01</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/02/alignattr021.png" medium="image">
			<media:title type="html">alignattr02</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/02/alignattr03.png" medium="image">
			<media:title type="html">alignattr03</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/02/alignattr04.png" medium="image">
			<media:title type="html">alignattr04</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2010/02/stevewakesurfing11835.png" medium="image">
			<media:title type="html">SteveWakeSurfing11835</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8216;ZOOM to HANDLE&#8217; utility</title>
		<link>http://nateholt.wordpress.com/2009/10/15/zoom-to-handle-utility-autocad-electrical/</link>
		<comments>http://nateholt.wordpress.com/2009/10/15/zoom-to-handle-utility-autocad-electrical/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 22:26:24 +0000</pubDate>
		<dc:creator>nateholt</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://nateholt.wordpress.com/?p=653</guid>
		<description><![CDATA[Quickly create a tool to find and zoom to a given entity using its handle number. You know an entity/object&#8217;s &#8220;handle&#8221; number, but where in the world is it in your jumbled drawing? Complex library creation and testing has been on my plate for a couple weeks. The new code spits out the AutoCAD handle of various [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=653&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Quickly create a tool to find and zoom to a given entity using its handle number.</strong></p>
<p>You know an entity/object&#8217;s &#8220;handle&#8221; number, but where in the world is it in your jumbled drawing?</p>
<p>Complex library creation and testing has been on my plate for a couple weeks. The new code spits out the AutoCAD handle of various entities as processing proceeds. Sometimes there&#8217;s a need to go back in and find a problem entity on the drawing. Have the handle reference but that&#8217;s it. What is it, where is it?</p>
<p><strong>Manual Method &#8211; Crude with  no-frills</strong></p>
<p>Here&#8217;s the crude, no-frills way. Open the entity and display its guts in the command window.</p>
<p>Let&#8217;s say that you&#8217;ve run your program in a &#8220;debugging&#8221; mode and find that there is some issue with object handle &#8220;74F&#8221; in the active drawing. What and where is this entity?</p>
<p>Type this AutoLISP expression at the &#8220;Command:&#8221; prompt</p>
<p>Command: <strong>(entget (handent &#8220;74F&#8221;))</strong> <em>[Enter]</em></p>
<p>It returns this block of data about this entity.</p>
<p>((-1 . &lt;Entity name: 7ef152f8&gt;) (0 . &#8220;LINE&#8221;) (330 . &lt;Entity name: 7ef11c10&gt;) (5 . &#8220;74F&#8221;) (100 . &#8220;AcDbEntity&#8221;) (67 . 0) (410 . &#8220;Model&#8221;) (8 . &#8220;0&#8243;) (100 .<br />
&#8220;AcDbLine&#8221;) (10 6.09375 13.5 0.0) (11 6.12676 13.5 0.0) (210 0.0 0.0 1.0))</p>
<p>The &#8220;0&#8243; entry flags the entity type: &#8220;LINE&#8221; and the &#8220;10&#8243; and &#8220;11&#8243; parts give the XYZ start and end points of the LINE segment.</p>
<p>Crude, but it does work.</p>
<p><strong>Better Method: auto-ZOOM to the entity</strong></p>
<p>Here&#8217;s a little AutoLISP utility thrown together to help in troubleshooting. It zooms in on the target object given the typed-in handle.</p>
<p>The syntax is pretty simple. After the utility is APPLOADed, type ZH at the AutoCAD command prompt and then enter the handle number at the next prompt&#8230;</p>
<p>Command: <strong>zh</strong> <em>[Enter]</em><br />
Handle  =<strong>74F </strong><em>[Enter]</em><strong><br />
</strong></p>
<p>The utility opens up the entity. If it is a simple graphical entity like an arc, text, block insert, line, then it opens it to find &#8220;where&#8221; it is.</p>
<p><span style="color:#ff0000;">Entity type: LINE XY=(6.11026 13.5 0.0)</span></p>
<p>&#8230; and then it issues a ZOOM &#8220;Centered&#8221; command to display the object in the middle of the screen. It then tries to highlight it. Now you can zoom in or out with &#8220;I&#8221; or &#8220;O&#8221; keystrokes or use your mouse &#8220;wheel&#8221; to take a better look in context.</p>
<p>Here&#8217;s the handle &#8220;74F&#8221; example&#8230; it was an incomplete wire connection on the high side of a control transformer.</p>
<p><a href="http://nateholt.files.wordpress.com/2009/10/zh001.png"><img class="alignnone size-full wp-image-656" title="zh001" src="http://nateholt.files.wordpress.com/2009/10/zh001.png" alt="zh001" width="604" height="500" /></a></p>
<p>Here&#8217;s the utility itself. Cut and paste into an ASCII text file, let&#8217;s call it &#8220;zh.lsp&#8221;.</p>
<pre>; ** 13-Oct-09 NEHolt - http://n8consultants.com
(defun c:zh ( / hdl xy enttype ed en xy2)
  ; ZOOM to entity "handle". Does not check model vs layout space.
  (while (/= (setq hdl (getstring (strcat
              "\nHandle " (if en "(or I=Zoom IN, O=Zoom out)" "") " ="))) "")
    (cond
      ((= (strcase hdl) "I")(command "_.ZOOM" "1.5x"))
      ((= (strcase hdl) "O")(command "_.ZOOM" "0.75x"))
      (T
        (if (setq en (handent hdl)) ; convert handle string to its "entity name"
          (progn ; appears to be a valid handle number
            (if (setq ed (entget en)) ; open up the entity
              (progn ; success, okay to continue
                (setq xy nil)
                (setq enttype (cdr (assoc 0 ed))) ; extract the entity type
                (princ "\nEntity type: ")(princ enttype)
                (if (= enttype "INSERT")
                  (progn ; this is a block INSERT instance
                    (princ " blk nam=")
                    (princ (cdr (assoc 2 ed))) ; display block name
                ) )
                ; Figure where entity is located
                (if (cdr (assoc 10 ed))
                  (progn
                    (setq xy (cdr (assoc 10 ed))) ; 10 subrec often gives a location value
                    (if (= enttype "LINE")
                      (progn ; LINE entity. Reset to zoom to line's midpoint
                        (setq xy2 (cdr (assoc 11 ed))) ; XY of other end
                        ; Calc midpoint coordinate
                        (setq xy (list (+ (car xy) (* 0.5 (- (car xy2) (car xy))))
                                       (+ (cadr xy) (* 0.5 (- (cadr xy2) (cadr xy))))
                                       (+ (caddr xy) (* 0.5 (- (caddr xy2) (caddr xy))))))
                ) ) ) )
                (if xy
                  (progn ; Non-blank XY extracted from picked entity. Go ahead and
                           ; display the value and ZOOM in to that point on the drawing.
                    (princ " XY=")(princ xy)
                    (command "_.ZOOM" "_C" xy 1.0) ; use ZOOM CENTER command
                    (redraw en 3) ; trigger entity to "highlight"
                ) )
        ) ) ) )
      )
    )
  )
  (command "_.REGEN") ; brute force - unhighlight everything
  (princ) ; quiet return
)</pre>
<p>That should be it. APPLOAD this file and that should expose the utility to use on your active drawing.</p>
<p>UPDATE: typo introduced when the above program was cut/paste into this posting. Very sorry. Should be okay now. &#8211; Nate.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nateholt.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nateholt.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nateholt.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nateholt.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nateholt.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nateholt.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nateholt.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nateholt.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nateholt.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nateholt.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nateholt.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nateholt.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nateholt.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nateholt.wordpress.com/653/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nateholt.wordpress.com&amp;blog=7856113&amp;post=653&amp;subd=nateholt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nateholt.wordpress.com/2009/10/15/zoom-to-handle-utility-autocad-electrical/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ce307a71203312e21d0821883622273?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">nateholt</media:title>
		</media:content>

		<media:content url="http://nateholt.files.wordpress.com/2009/10/zh001.png" medium="image">
			<media:title type="html">zh001</media:title>
		</media:content>
	</item>
	</channel>
</rss>
