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

<channel>
	<title>AutoCAD Tips Blog &#187; Customization</title>
	<atom:link href="http://www.ellenfinkelstein.com/acadblog/category/customization/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ellenfinkelstein.com/acadblog</link>
	<description>AutoCAD tips &#38; tutorials to help you work faster &#38; smarter</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:49:39 +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>Open AutoCAD with a specific template</title>
		<link>http://www.ellenfinkelstein.com/acadblog/open-autocad-with-a-specific-template/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/open-autocad-with-a-specific-template/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 16:02:47 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[command line switch]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=1915</guid>
		<description><![CDATA[
			
				
			
		
<p>You can launch AutoCAD with a specific template of your choice. You do this with a command line switch.</p>
<p>When you double-click the icon on your desktop or start AutoCAD from the Start menu, you are executing a statement. You can customize this statement by adding parameters, also called switches.</p>
<p>To learn the statement of your desktop [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fopen-autocad-with-a-specific-template%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fopen-autocad-with-a-specific-template%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright size-medium wp-image-1942" title="autocad-tips-start-template-1" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2012/01/autocad-tips-start-template-1-300x204.png" alt="autocad-tips-start-template" width="300" height="204" />You can launch AutoCAD with a specific template of your choice. You do this with a <em>command line switch.</em></p>
<p>When you double-click the icon on your desktop or start AutoCAD from the Start menu, you are executing a statement. You can customize this statement by adding parameters, also called switches.</p>
<p>To learn the statement of your desktop icon, right-click it and choose Properties. On the Shortcut tab, look in the Target text box. This is also where you add a switch. For example, the statement might look like this:</p>
<p>&#8220;C:\Program Files\Autodesk\AutoCAD 2012\acad.exe&#8221;</p>
<p>To add a switch insert a space after the end of the statement and add a forward slash (/), then the switch you want. (AutoCAD has a number of switches, not just for templates.) In most cases you also add a descriptor.</p>
<p>For a template named mytemplate, you would add /t mytemplate. The statement for the Tutorial-iArch template would then look like this:</p>
<p>&#8220;C:\Program Files\Autodesk\AutoCAD 2012\acad.exe&#8221; /t Tutorial-iArch</p>
<p><strong>Note:</strong> You need to add quotation marks around any path or name (such as the template name) that contains spaces.</p>
<p>I recommend duplicating the existing shortcut. When you use this method, you can create different shortcuts for different templates. To change the command line switch, follow these steps:</p>
<ol>
<li>Right-click the shortcut and choose Copy.</li>
<li>Right-click the desktop and choose Paste. You&#8217;ll either get a new shortcut with &#8220;Copy&#8221; appended to the name or a dialog box that gives you the option to keep both the original and the copy with a number appended to the name. You can change the name of the shortcut to reflect the name of the template it will open.</li>
<li>Right-click the shortcut copy and choose Properties.</li>
<li>On the Shortcut tab, in the Target text box (not the Start In box), move the cursor to the end of the existing statement.</li>
<li>Press the spacebar to add a space, then type /t and another space. Finally add the name of the template. Be sure to add quotation marks around the template name if it contains spaces.</li>
<li>Click OK.</li>
</ol>
<p>Try out your new shortcut by double-clicking it!</p>
<p>Did you find this helpful? Do you use switches? How?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/open-autocad-with-a-specific-template/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Get rid of the default grid in AutoCAD</title>
		<link>http://www.ellenfinkelstein.com/acadblog/get-rid-of-the-default-grid-in-autocad/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/get-rid-of-the-default-grid-in-autocad/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 21:04:43 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[grid]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=1906</guid>
		<description><![CDATA[
			
				
			
		
<p>Starting with AutoCAD 2011, Autodesk has made the grid on by default. Do you turn it off every time you start AutoCAD?</p>
<p>If you don&#8217;t know how to turn it off permanently, here are the steps:</p>

Open the template you usually use. If you use the default, acad.dwt, open that. The location will depend on your release [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fget-rid-of-the-default-grid-in-autocad%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fget-rid-of-the-default-grid-in-autocad%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Starting with AutoCAD 2011, Autodesk has made the grid on by default. Do you turn it off every time you start AutoCAD?</p>
<p>If you don&#8217;t know how to turn it off permanently, here are the steps:</p>
<ol>
<li>Open the template you usually use. If you use the default, acad.dwt, open that. The location will depend on your release and version of Windows. You might have to search for it in Windows Explorer, because the folder path is very long! When you find it, you can double-click it to open it. If you&#8217;re navigating from within AutoCAD, be sure to choose Drawing Template (*.dwt) from the Files of Type drop-down in the Select File dialog box.</li>
</ol>
<p><img class="aligncenter size-full wp-image-1907" title="autocad-tips-get-rid-of-the-grid-1" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/12/autocad-tips-get-rid-of-the-grid-1.png" alt="" width="506" height="360" /></p>
<ol start="2">
<li>Click the Grid Display button on the status bar or press F7.</li>
<li>Save the template.</li>
</ol>
<p>Now, when you open AutoCAD, the grid is gone!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/get-rid-of-the-default-grid-in-autocad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to lock AutoCAD&#8217;s user interface</title>
		<link>http://www.ellenfinkelstein.com/acadblog/how-to-lock-autocads-user-interface/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/how-to-lock-autocads-user-interface/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 16:51:40 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Interface]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=1821</guid>
		<description><![CDATA[
			
				
			
		
<p>This is a guest blog post from Paul Munford.</p>
<p>It’s happened to all of us. A car outside backfires, a door slams or a cheeky college sneaks up behind you and gives you a tickle; before you know it your AutoCAD user interface is a mess!</p>
<p>If you’ve invested a lot of time setting up AutoCAD’s UI [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fhow-to-lock-autocads-user-interface%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fhow-to-lock-autocads-user-interface%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>This is a guest blog post from <a href="http://cadsetterout.com/about-the-cad-setter-out/" rel="author">Paul Munford</a>.</strong></p>
<p>It’s happened to all of us. A car outside backfires, a door slams or a cheeky college sneaks up behind you and gives you a tickle; before you know it your AutoCAD user interface is a mess!</p>
<p>If you’ve invested a lot of time setting up AutoCAD’s UI the way you like it, I seriously recommend that you <a href="http://www.ellenfinkelstein.com/acadblog/tutorial-create-a-custom-workspace-in-autocad-2006-and-later/">save your user interface as a custom workspace</a>.</p>
<p>However, I have another quick tip to share with you that can prevent your Ribbon tabs, Toolbars or Tool palettes accidentally being nudged around the screen.</p>
<h2>Locking the User Interface</h2>
<p>The secret is the little padlock icon down in your system tool tray. Clicking on this little button will lock down AutoCAD’s user interface, so that you can’t accidently move anything.</p>
<p><a href="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/10/autocad_tips_lock-autocad-user-interface-1.png"><img class="aligncenter size-full wp-image-1824" title="autocad_tips_lock-autocad-user-interface-1" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/10/autocad_tips_lock-autocad-user-interface-1.png" alt="" width="257" height="89" /></a></p>
<p><strong>Tip:</strong> If you can’t see the control, click on the arrow at the far end of the system tool tray and select Display Locking.</p>
<p><img class="aligncenter size-full wp-image-1825" title="autocad_tips_lock-autocad-user-interface-2" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/10/autocad_tips_lock-autocad-user-interface-2.png" alt="autocad_tips_lock-autocad-user-interface-2" width="246" height="207" /></p>
<h2>Locking separate elements of the User Interface</h2>
<p>Clicking on the Lock UI button gives you a few choices about which UI elements you want to lock.</p>
<ul>
<li>Lock all controls</li>
<li>Lock only floating Toolbars or Ribbon panels</li>
<li>Lock only docked Toolbars or Ribbon panels</li>
<li>Lock only floating windows*</li>
<li>Lock only docked windows*</li>
</ul>
<p>*In this case ‘Windows’ refers to controls such as the Ribbon, the Design Center, and the Properties palette.</p>
<p><img class="aligncenter size-full wp-image-1826" title="autocad_tips_lock-autocad-user-interface-3" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/10/autocad_tips_lock-autocad-user-interface-3.png" alt="autocad_tips_lock-autocad-user-interface" width="387" height="195" /></p>
<p>You can also type <strong>lockui</strong> at the command line to access the User Interface locking settings. The LOCKUI setting is stored as a bitcode using the sum of the following values:</p>
<ul>
<li>0    Toolbars and windows not locked</li>
<li>1    Docked toolbars locked</li>
<li>2    Docked or anchored windows locked</li>
<li>4    Floating toolbars locked</li>
<li>8    Floating windows locked</li>
</ul>
<h2>But what if I WANT to move a control?</h2>
<p>Here is one more quick tip for you. If you have your AutoCAD User Interface locked down, and you just want to nudge one control out of the way – simply hold down the CTRL key while you drag the Tool bar, Tool palette or Ribbon tab to temporarily allow moving and re-sizing of the control.</p>
<p>I hope that you’ve enjoyed this quick tip, now – LOOK BEHIND YOU! (Tickle, tickle)</p>
<p><strong> <a href="http://cadsetterout.com/about-the-cad-setter-out/" rel="author">Paul Munford</a> is the writer of The CAD Setter Out, supplying tips, tricks and tutorials for Drafters using AutoCAD and Autodesk Inventor to create drawings for the construction industry. In his spare time Paul enjoys Drawing and Woodworking. He thinks that modelling his Joinery designs in 3D is the most fun anyone can have, by themselves&#8230;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/how-to-lock-autocads-user-interface/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Reduce mouse-clicks and increase productivity using AutoLISP</title>
		<link>http://www.ellenfinkelstein.com/acadblog/reduce-mouse-clicks-and-increase-productivity-using-autolisp/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/reduce-mouse-clicks-and-increase-productivity-using-autolisp/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 16:20:45 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Editing]]></category>
		<category><![CDATA[AutoLISP]]></category>
		<category><![CDATA[fillet]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=1792</guid>
		<description><![CDATA[
			
				
			
		
<p>This is a guest post by Sanjay Kulkarni, an AutoCAD programmer. You can read more about him at the end of this post.</p>
<p>The number of mouse-clicks required to perform a task is generally a good indicator of productivity. The fewer the number of clicks, the less time required&#8211;hence more productivity.</p>
<p>In this post we will see [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Freduce-mouse-clicks-and-increase-productivity-using-autolisp%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Freduce-mouse-clicks-and-increase-productivity-using-autolisp%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a guest post by Sanjay Kulkarni, an AutoCAD programmer. You can read more about him at the end of this post.</p>
<p>The number of mouse-clicks required to perform a task is generally a good indicator of productivity. The fewer the number of clicks, the less time required&#8211;hence more productivity.</p>
<p>In this post we will see an example of reducing the number of mouse-clicks, and thus improving productivity, using AutoLISP. We will use the example of the FILLET command.</p>
<p>Thanks to one of the blog readers Bruce Newman, who sent a problem to me. It was the source for this post.</p>
<p>The most simple situation where you create a fillet is when two perpendicular lines meet. Inside the FILLET command, you select the two lines (requiring 2 clicks) and AutoCAD creates the fillet.</p>
<p><img class="aligncenter size-full wp-image-1793" title="AlispBlog-1110-Fig1" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/10/AlispBlog-1110-Fig1.png" alt="Reducing clicks and increasing productivity in AutoCAD with AutoLISP" width="250" height="497" /></p>
<p>&nbsp;</p>
<p>The equivalent AutoLISP code would be</p>
<p>(command “fillet” (car (entsel “\nSelect the first line: “))(entsel “\nSelect the second line: “)))</p>
<p>This still requires two clicks.</p>
<p>So, the problem now reduces to finding a method to select two lines with a single click.</p>
<p>Before trying in AutoLISP, let’s find out if we can do it manually. There seems to be no option or a work-around to do what we want.</p>
<p>Luckily, we have a single point (the intersection) that is common to both lines. So, let’s explore if we can somehow use the intersection point to select the 2 lines. If you have to click only one point to select multiple objects, obviously it should be the intersection point.</p>
<p>Study of selection methods shows that there are two options that base their selection on two points: crossing &amp; window. Since W must include the objects fully, it won’t be suitable. So let’s try C option.</p>
<p>Use the SELECT command and then the <strong>c</strong> option and click on the intersection point in response to both points. AND …….. Both lines are selected!</p>
<p>The equivalent AutoLISP code would be</p>
<p>(setq ssLines (ssget “c” (setq pt1 (getpoint “\nSelect Intersection: “) ) pt1))</p>
<p>Now I can use each line to create a fillet.</p>
<p>(command “fillet” (ssname ssLines 0) (ssname ssLines 1))</p>
<p>And yes … the fillet appears!</p>
<p><img class="aligncenter size-full wp-image-1795" title="AlispBlog-1110-Fig2" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/10/AlispBlog-1110-Fig2.png" alt="Reducing clicks and increasing productivity in AutoCAD using AutoLISP" width="650" height="560" /></p>
<p>&nbsp;</p>
<p>So, here is my simple program:</p>
<p>(defun c:FiletByPt ()</p>
<p>;;; creates fillet by single click</p>
<p>;;; ssk 110918</p>
<p>(setq ssLines (ssget &#8220;c&#8221; (setq pt1 (getpoint &#8220;\nSelect Intersection: &#8220;) ) pt1))</p>
<p>(command &#8220;fillet&#8221; (ssname ssLines 0) (ssname ssLines 1))</p>
<p>)</p>
<p>(prompt &#8220;\nCreates a fillet by single click. Type &#8216;FiletByPt&#8217;&#8221;)</p>
<p><strong>Note:</strong> In the command name above, FiletByPt, &#8220;fillet&#8221; is intentionally spelled &#8220;filet&#8221; to avoid confusion as you start to type the custom AutoLISP command.</p>
<p>To use the above code, copy and paste it into Notepad and save it as filetbypt.lsp in a location that is in AutoCAD&#8217;s support file search path. <a href="http://www.ellenfinkelstein.com/acadblog/how-to-load-an-autolisp-program/">Instructions for loading the program are here.</a></p>
<p>However life is always not so simple. The lines may extend beyond the intersection point. My R&amp;D shows that the above code still works as shown in Fig. 3.</p>
<p><img class="aligncenter size-full wp-image-1796" title="AlispBlog-1110-Fig3" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/10/AlispBlog-1110-Fig3.png" alt="AutoCAD tip: Reduce clicks and increase productivity in AutoCAD with AutoLISP" width="420" height="570" /></p>
<p>It even works when the two lines are not perpendicular.</p>
<p>When two lines are selected using a single point, AutoCAD finds and trims shorter segments of each line and then creates a fillet between the two remaining segments.</p>
<p>There might be situations (when two lines meet at the midpoint) where the code may not work or possibly needs modification.</p>
<p>But, if creating fillets is a major task for you, and saving 50% of time can result in significant gain, go ahead and use this code.</p>
<p>Are you stuck-up with such trivial tasks that are strain on your resources? Let me know and we’ll see if I can help you with useful hints or sample code.</p>
<p>Sanjay Kulkarni is an experienced CAD (AutoCAD, Inventor, SolidEdge, CATIA, NX) programmer and a member of the Autodesk Developer Network. He is fluent in AutoLISP, VBA, and VB.NET. He has written for AugiWORLD and Inside AutoCAD. He can be contacted at <a href="mailto:sanganaksakha@gmail.com">sanganaksakha@gmail.com</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/reduce-mouse-clicks-and-increase-productivity-using-autolisp/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Change the font of a text style using AutoLISP</title>
		<link>http://www.ellenfinkelstein.com/acadblog/change-the-font-of-a-text-style-using-autolisp/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/change-the-font-of-a-text-style-using-autolisp/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 21:48:31 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Text & Dimensions]]></category>
		<category><![CDATA[AutoLISP]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[text style]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=1745</guid>
		<description><![CDATA[
			
				
			
		
<p>This is a guest post by Sanjay Kulkarni, an AutoCAD programmer. You can read more about him at the end of this post.</p>
<p>In the current era of globalization, many times you may have to work on drawings received from others. Sometimes, you may not be able to control the quality of the drawings you receive. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fchange-the-font-of-a-text-style-using-autolisp%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fchange-the-font-of-a-text-style-using-autolisp%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><em>This is a guest post by Sanjay Kulkarni, an AutoCAD programmer. You can read more about him at the end of this post.</em></p>
<p><a href="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/09/autocad_tips-change-font-of-text-style1.png"><img class="alignright size-medium wp-image-1752" title="autocad_tips-change-font-of-text-style" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/09/autocad_tips-change-font-of-text-style1-300x136.png" alt="" width="300" height="136" /></a>In the current era of globalization, many times you may have to work on drawings received from others. Sometimes, you may not be able to control the quality of the drawings you receive. In such a situation, you may have to carry out a repair job on the drawings. Such tasks can be made less tedious if you standardize these tasks and carry them out using AutoLISP.</p>
<p>One of my Indian clients receives drawings from their European principals. One of the repair jobs is to change the font of the text inside dimensions, attributes, tables &amp; notes. Since all these texts are included inside their respective block, the task becomes more complicated than is really necessary.</p>
<p>Most of the text, however, is controlled by the text style. Thus, the job is really to change the font in the text style. But there are a handful of the text styles. So, it becomes a time consuming task.</p>
<p>I helped them with a simple AutoLISP function that made this job virtually painless. The function changes the association of a text style from existing font file to another font file. The function takes 2 parameters, the name of the existing text style and the name of the font file that will be associated with the text style.</p>
<p>You can <a href="https://s3.amazonaws.com/ellenfinkelstein.com/chngFontOfTxtStyle.lsp" target="_blank">download the function here</a>.</p>
<h3>How to use the AutoLISP function</h3>
<p>This function can be used like this:</p>
<p>(chngFontOfTxtStyle &#8220;&lt;TextStyleName&gt;&#8221; &#8220;&lt;DifferentFont.xtn&gt;&#8221;)</p>
<p>As you may have noticed, this function can be used only inside another AutoLISP program. This calling AutoLISP program can provide the user interface that you may need. Following are a couple of sample situations that you can build around this function.</p>
<p>1. Ask the user to type the names of the text style and font file and store them in variables. Call the above function with these two variables as parameters.</p>
<p>2. Ask the user to type the name of the font file. Browse programmatically through all the text styles and repeatedly call the above function with name of each text style and name of the font file as parameters. This will change the font of all text styles.</p>
<p>As you can see, there is no limit to the situations you can build and keep using the function.</p>
<p>For example, you could enter the following on the command line:</p>
<p>(chngFontOfTxtStyle &#8220;Something Funny&#8221; &#8220;arial.ttf&#8221;)</p>
<p>In this case, the name of the text style is Something Funny and you want to change the font to Arial.</p>
<h3>How to get help for the function</h3>
<p>Also note that this function has built in help. The message is displayed as soon as you load the lisp file to type<strong> cfot?</strong> (note the use of ? to indicate help) at the command prompt. If you type this, minimal help is displayed at the command prompt.</p>
<p>How do you know that the font name association was successfully changed? As described in help, the function returns 0 if successful or -1 if not. You will need to check the return value.</p>
<h3>What other tasks do you want to automate?</h3>
<p>Are you stuck-up with such trivial tasks that are strain on your resources. Let me know directly (my email is below) and we’ll see if I can help you with useful hints or sample code. Or you can post a comment.</p>
<p><em><a href="http://www.linkedin.com/in/sanjaykulkarnipune" target="_blank">Sanjay Kulkarni</a> is an experienced CAD (AutoCAD, Inventor, SolidEdge, CATIA, NX) programmer and a member of the Autodesk Developer Network. He is fluent in AutoLISP, VBA, and VB.NET. He has written for AugiWORLD and Inside AutoCAD (a monthly magazine that has since gone out of publication). He can be contacted at<a href="mailto:sanganaksakha@gmail.com"> sanganaksakha@gmail.com</a></em></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/change-the-font-of-a-text-style-using-autolisp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Understanding how dimensions are associated with objects</title>
		<link>http://www.ellenfinkelstein.com/acadblog/understanding-how-dimensions-are-associated-with-objects/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/understanding-how-dimensions-are-associated-with-objects/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 21:34:23 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Text & Dimensions]]></category>
		<category><![CDATA[associativity]]></category>
		<category><![CDATA[AutoLISP]]></category>
		<category><![CDATA[dimensions]]></category>
		<category><![CDATA[reactors]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=1713</guid>
		<description><![CDATA[
			
				
			
		
<p></p>
<p>This is a guest post by Sanjay Kulkarni, an AutoCAD programmer.</p>
<p>Learning AutoLISP (or any other programming language) doesn’t compel  you to become a programmer. You can still use it to better understand  the internal working of AutoCAD and enhance your interactive working  skill. This can also give you an edge over others.</p>
<p>Recently [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Funderstanding-how-dimensions-are-associated-with-objects%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Funderstanding-how-dimensions-are-associated-with-objects%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright size-medium wp-image-1714" title="autocad_tips-dimensions-objects-1" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/08/autocad_tips-dimensions-objects-1-300x219.PNG" alt="autocad_tips-dimensions-objects-1" width="300" height="219" /></p>
<p>This is a guest post by Sanjay Kulkarni, an AutoCAD <span id="IL_AD12">programmer</span>.</p>
<p>Learning AutoLISP (or any other programming language) doesn’t compel  you to become a programmer. You can still use it to better understand  the internal working of AutoCAD and enhance your interactive working  skill. This can also give you an edge over others.</p>
<p>Recently I received a client’s drawing that was in AutoCAD 2004. Even  when I saved it in AutoCAD 2010, the dimension would not adjust when I  changed the length of a line. Only after I recreated the dimension was I  able to use this capability. The reason, I found, was that the  dimension in AutoCAD 2004 did not have the reactor (discussed below).  Only when I created the dimension in AutoCAD 2010 was the reactor added.</p>
<h3>Let’s learn this lesson with an example</h3>
<p>Everybody knows that when you dimension an object, the dimension  automatically updates when you modify the object. Have you ever wondered  how the dimension knows it has to update? AutoLISP can help you find  this out, if you don’t already  know.</p>
<p>Here’s the example:</p>
<p>1. Draw a line.</p>
<p>2. Get its entity list by typing the following piece of AutoLISP code at the command prompt:</p>
<p>(entget (car (entsel)))</p>
<p>and selecting the line when prompted to select an object. You’ll see  something similar to the following at the command line in return.</p>
<p>((-1 . &lt;Entity name: 7ee45a18&gt;) (0 . “LINE”) (330 . &lt;Entity  name: 7ee43cf8&gt;) (5 . “22B”) (100 . “AcDbEntity”) (67 . 0) (410 .  “Model”) (8 . “0″) (100 . “AcDbLine”) (10 10.0 10.0 0.0) (11 160.0 160.0  0.0) (210 0.0 0.0 1.0))</p>
<p>This, you might have guessed, is the record that AutoCAD stores in its database.</p>
<p>3. Create a dimension (aligned for example) to show the length of the  line and get the entity list of the line again. You should get a result  similar to:</p>
<p>((-1 . &lt;Entity name: 7ee45a18&gt;) (0 . “LINE”) (5 . “22B”) <strong>(102 . “{ACAD_REACTORS”) (330 . &lt;Entity name: 7ee45ae8&gt;) (102 . “}”)</strong> (330 . &lt;Entity name: 7ee43cf8&gt;) (100 . “AcDbEntity”) (67 . 0)  (410 . “Model”) (8 . “0″) (100 . “AcDbLine”) (10 10.0 10.0 0.0) (11  160.0 160.0 0.0) (210 0.0 0.0 1.0))</p>
<p>You might have noticed a new item starting with (102 .  “{ACAD_REACTORS”) (330 . &lt;Entity name: 7ee45ae8&gt;) (102 . “}”) in  the entity list of the line.</p>
<p>This is a reference to a reactor object that AutoCAD has created  after adding the dimension. This reactor ensures that dimension gets  modified when the object (line in this case) gets modified.</p>
<p>A <strong>reactor </strong>is a program that executes automatically  when a particular action (change in the length of line in this case) is  completed. A reactor executes only AFTER an editing action is completed.  Hence, you see that the dimension is modified after the command that  modifies the line completes and is not dynamically updated while length  of line is being modified.</p>
<p>4. Next, entget the dimension using the same code but selecting the dimension this time.  You will get something similar to:</p>
<p>((-1 . &lt;Entity name: 7ee45a20&gt;) (0 . “DIMENSION”) (5 . “22C”)  (102 . “{ACAD_XDICTIONARY”) (360 . &lt;Entity name: 7ee45a90&gt;) (102 .  “}”) <strong>(102 . “{ACAD_REACTORS”) (330 . &lt;Entity name: 7ee45ae8&gt;) (102 . “}”)</strong> (330 . &lt;Entity name: 7ee43cf8&gt;) (100 . “AcDbEntity”) (67 . 0)  (410 . “Model”) (8 . “0″) (100 . “AcDbDimension”) (280 . 0) (2 . “*D6″)  (10 173.511 146.489 0.0) (11 98.5106 71.4894 0.0) (12 0.0 0.0 0.0) (70 .  33) (1 . “”) (71 . 5) (72 . 1) (41 . 1.0) (42 . 212.132) (73 . 0) (74 .  0) (75 . 0) (52 . 0.0) (53 . 0.0) (54 . 0.0) (51 . 0.0) (210 0.0 0.0  1.0) (3 . “Standard”) (100 . “AcDbAlignedDimension”) (13 10.0 10.0 0.0)  (14 160.0 160.0 0.0) (15 0.0 0.0 0.0) (16 0.0 0.0 0.0) (40 . 0.0) (50 .  0.0))</p>
<p>You will notice that exactly same reactor appears in the entity list  of dimension. Thus, this reactor is the link between the line and  dimension.</p>
<p>5. Add one more dimension to the line and get the entity list of line  once more. You will see one more item with (330 . in the reactor  reference. Thus each dimension associated with line is added as an item  with 330 dxf code in the entity list of line..</p>
<p>6. Now delete one of the dimensions and get the new entity list of  the line. You will find that one of the (330 . item has been removed.</p>
<p>7. After you delete all dimensions, the entity list of the line returns to its original form without any (102 . items.</p>
<h3>A possibility to improve associativity</h3>
<p>It is interesting to note that when object is deleted, dimension does  not get deleted. Thus it lacks true associativity with the object.</p>
<p>You could create a situation whereby the dimension would be deleted  when the object was deleted by adding a reference to one more reactor in  the dimension’s entity list that responds to deleting its associated  object, but you would have to write code to do so.</p>
<p>Sanjay Kulkarni is an experienced CAD (AutoCAD, Inventor, SolidEdge, CATIA, NX) programmer  and a member of the Autodesk Developer Network. He is fluent in  AutoLISP, VBA, and VB.NET. He has written for AugiWORLD and Inside AutoCAD (a monthly magazine that has since gone out of publication). You can contact him at <a href="mailto:sanganakskha@gmail.com">sanganakskha@gmail.com.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/understanding-how-dimensions-are-associated-with-objects/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to load an AutoLISP program</title>
		<link>http://www.ellenfinkelstein.com/acadblog/how-to-load-an-autolisp-program/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/how-to-load-an-autolisp-program/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 13:30:17 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[AutoLISP]]></category>
		<category><![CDATA[load]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=1374</guid>
		<description><![CDATA[
			
				
			
		
<p>This is a guest post by Sanjay Kulkarni, an AutoCAD programmer.</p>
<p>This post describes the method to load an AutoLISP program in an open drawing.</p>
Some basic &#38; fundamental information before we move to the procedure
<p>An AutoLISP program runs inside (in the same workspace of) an open drawing. Therefore it is necessary to load the program in [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fhow-to-load-an-autolisp-program%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fhow-to-load-an-autolisp-program%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a guest post by Sanjay Kulkarni, an AutoCAD programmer.</p>
<p>This post describes the method to load an AutoLISP program in an open drawing.</p>
<h3>Some basic &amp; fundamental information before we move to the procedure</h3>
<p>An AutoLISP program runs inside (in the same workspace of) an open drawing. Therefore it is necessary to load the program in each individual drawing you want to use the program in. You can load a program into a drawing at any time.</p>
<p>Once you load the program in a drawing, it remains loaded into that specific drawing until the drawing is closed.  This means that you can use the functions in the program multiple times once you load the program.</p>
<p>The flip side is that you can&#8217;t unload an AutoLISP program once you load it except by closing the drawing.</p>
<p>If you want to use the same program in multiple drawings, you will need to load the program in each individual drawing even if there exists a drawing in which the program has been already loaded.</p>
<h3>Loading an AutoLISP program</h3>
<p>Now to the action:</p>
<ol>
<li> Type appload at the command prompt (In AutoCAD 2012, you can go to Manage tab&gt;Applications panel&gt;Load Application.). This will display the Load/Unload Applications dialog box as shown below.</li>
</ol>
<p><img class="aligncenter size-full wp-image-184" title="load-applications-dialog-box" src="http://womenwithwebsites.org/wp-content/uploads/2011/07/load-applications-dialog-box1.png" alt="" width="568" height="583" /></p>
<ol>
<li>Click the History List tab at the bottom of the dialog box. In case the program was previously loaded in any drawing with Add to History checked, it will be listed there. Select the desired file in the list and go to step 7. Otherwise, go to step 3.</li>
<li>Make sure that Files of type displays the .lsp extension.</li>
<li>Using the LookIn drop-down, you browse to the desired location (folder).</li>
<li>If you want to be able to use step 2 above in future, select the Add to History checkbox.</li>
<li> Select the .lsp file to load in the window.</li>
<li>Click Load. If the file is successfully loaded, a message to that effect is displayed at the bottom of the dialog box. Also if you have checked Add to History, the names of loaded programs are added to in the History List tab of the window.</li>
<li>Click the Close button to close the dialog box.</li>
</ol>
<p>You are now ready to use the functions in the loaded files.</p>
<p><strong>Notes:</strong></p>
<ul>
<li>You can select multiple files in the History List or the browser using Shift &amp; Control keys and then click the Load button to load all the selected files simultaneously.</li>
<li>You can double-click on an individual file to both select and load it. Then you don’t need to click the Load button.</li>
<li>When you double-click on a file in History List with Add to History checked, the file name is added again to the History List. You can remove filenames in the History List by selecting the file and clicking the Remove button.</li>
<li>If you load a file multiple times in a drawing, AutoCAD does not generate any error and overwrites the previous version of the loaded file.</li>
</ul>
<p>For a quicker method of loading a program, see the tip, “<a href="http://www.ellenfinkelstein.com/acadblog/loading-autolisp-programs-quickly/">Loading AutoLISP programs quickly</a>.&#8221;  This will also obviate the need to load program in each drawing.</p>
<p>Sanjay Kulkarni is an experienced CAD (AutoCAD, Inventor, SolidEdge, CATIA, NX) programmer and a member of the Autodesk Developer Network. He is fluent in AutoLISP, VBA, and VB.NET. He has written for AugiWORLD and Inside AutoCAD (a monthly magazine that has since gone out of publication). You can contact him at <a href="mailto:sanganakskha@gmail.com">sanganakskha@gmail.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/how-to-load-an-autolisp-program/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Another way to align a rectangle with a line on the fly&#8211;using AutoLISP</title>
		<link>http://www.ellenfinkelstein.com/acadblog/another-way-to-align-a-rectangle-with-a-line-on-the-fly/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/another-way-to-align-a-rectangle-with-a-line-on-the-fly/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 01:22:46 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Drawing]]></category>
		<category><![CDATA[AutoLISP]]></category>
		<category><![CDATA[rectangle]]></category>
		<category><![CDATA[rotate]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=937</guid>
		<description><![CDATA[
			
				
			
		
<p>This is a guest post by Sanjay Kulkarni, an AutoCAD programmer. You can read more about him at the end of this post.</p>
<p>In an earlier post, Ellen showed how to align a rectangle with a line on the fly. You can easily create the same effect using AutoLISP. This AutoLISP routine is simple, and you [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fanother-way-to-align-a-rectangle-with-a-line-on-the-fly%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fanother-way-to-align-a-rectangle-with-a-line-on-the-fly%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a guest post by Sanjay Kulkarni, an AutoCAD programmer. You can read more about him at the end of this post.</p>
<p><a href="http://www.ellenfinkelstein.com/acadblog/align-a-rectangle-with-a-line-on-the-fly/" target="_self">In an earlier post, Ellen showed how to align a rectangle with a line on the fly</a>. You can easily create the same effect using AutoLISP. This AutoLISP routine is simple, and you can use the code as a starting point for your own routines.</p>
<p>First, Ellen has created a video to show you how this works.</p>
<div id="media"><object id="csSWF" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="418" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="https://s3.amazonaws.com/ellenfinkelstein.com/website+video+tutorials/align-rectangle-with-line-autolisp_controller.swf" /><param name="bgcolor" value="#1a1a1a" /><param name="quality" value="best" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="flashVars" value="autostart=false#&amp;thumb=FirstFrame.png&amp;thumbscale=45&amp;color=0x000000,0x000000" /><param name="name" value="csSWF" /><param name="flashvars" value="autostart=false&amp;thumb=FirstFrame.png&amp;thumbscale=45&amp;color=0x000000,0x000000" /><param name="allowfullscreen" value="true" /><embed id="csSWF" type="application/x-shockwave-flash" width="640" height="418" src="https://s3.amazonaws.com/ellenfinkelstein.com/website+video+tutorials/align-rectangle-with-line-autolisp_controller.swf" name="csSWF" flashvars="autostart=false&amp;thumb=FirstFrame.png&amp;thumbscale=45&amp;color=0x000000,0x000000" scale="showall" allowfullscreen="true" allowscriptaccess="always" quality="best" bgcolor="#1a1a1a"></embed></object></div>
<p>Here are the steps to use this AutoLISP routine:</p>
<ol>
<li><a href="https://s3.amazonaws.com/ellenfinkelstein.com/RectAlinM.lsp" target="_self">Download the AutoLISP file</a>. You need to do this only once, of course.</li>
<li>Start the APPLOAD command. In AutoCAD 2012, you can go to Manage tab&gt;Applications panel&gt;Load Application.</li>
<li>In the Load/Unload Application dialog box, make sure that the Files of Type drop-down list displays the .lsp extension. In the Look In box, navigate to the AutoLISP file and select it.</li>
<li>Click the Load button. You should see a message at the bottom of the dialog box saying that the file was successfully loaded.</li>
<li>Click Close to close the dialog box. For a quicker method of loading a program, see my tip, &#8220;<a title="Permanent Link: Loading AutoLISP programs quickly" href="http://www.ellenfinkelstein.com/acadblog/loading-autolisp-programs-quickly/" target="_self">Loading AutoLISP programs quickly</a>&#8220;.</li>
<li>Draw a diagonal line in your drawing.</li>
<li>On the command line, type <strong>ra </strong>and press Enter.</li>
<li>Follow the prompts. At the <strong>Select the line to align rectangle with:</strong> prompt, select the line  	to align the rectangle with. The program repeats the prompt until you select  	a line or press the Escape key to abort the program.</li>
<li>At the<strong> Specify first corner point or  	[Chamfer/Elevation/Fillet/Thickness/Width]:</strong> prompt, specify the  	first corner of the rectangle. You can now see that the rectangle is aligned with the line.</li>
<li>At the <strong>Specify other corner point or [Area/Dimensions/Rotation]:</strong> prompt,  	specify the other corner of the rectangle to finish 	<span id="IL_AD4">the routine</span><span id="IL_AD4"> and  	create a rectangle aligned with the selected line.<br />
</span></li>
</ol>
<p><strong>Tip: </strong>You can repeat the command in the drawing as long as the drawing is  	open. But if you open another drawing you will need to reload the program. To avoid having to do this, you can add it to your Startup Suite. In the Load/Unload Application dialog box, drag the AutoLISP file from the list of files at the top to the Startup Suite in the lower-right section of the dialog box.</p>
<p>I won&#8217;t show you the actual code in all my posts, but this one is simple enough that it will be useful to look at its structure. As I said, you can use this same structure for many situations. It&#8217;s similar to a script file; you are using the COMMAND function to execute an AutoCAD command. The code also defines an alias, RA. The PAUSE function waits for your input. Of course, the code also defines some variables, does some error checking, sets up the prompts, and a little more.</p>
<p>(defun RectAlin ()<br />
(setq oOSMODE (getvar &#8220;osmode&#8221;))<br />
(setvar &#8220;osmode&#8221; 0)<br />
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />
;;; selecting the line<br />
(setq theLine nil)<br />
(while (= theLine nil)<br />
(setq theLine<br />
(car<br />
(entsel<br />
&#8220;\nSelect the line to align rectangle with [Escape to cancel]:&#8221;<br />
)<br />
)<br />
)<br />
(setq eLstLine (entget theLine))<br />
(if (/= (cdr (assoc 0 eLstLine)) &#8220;LINE&#8221;)<br />
(setq theLine nil)<br />
)<br />
)<br />
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />
(setq sPt (cdr (assoc 10 eLstLine)))<br />
(setq ePt (cdr (assoc 11 eLstLine)))<br />
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />
;;; Create aligned rectangle<br />
(command &#8220;rectang&#8221; PAUSE &#8220;R&#8221; &#8220;P&#8221; sPt ePt PAUSE)<br />
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />
(setvar &#8220;osmode&#8221; oOSMODE)<br />
(princ)<br />
)<br />
(defun c:RA ()<br />
(RectAlin)<br />
)</p>
<p>Do you use AutoLISP in this way? Let us know how you use simple routines like this in your work&#8211;leave a comment!</p>
<p><a href="http://www.linkedin.com/in/sanjaykulkarnipune" target="_blank">Sanjay Kulkarni</a> is an experienced CAD (AutoCAD, Inventor, SolidEdge, CATIA, NX) programmer and a member of the Autodesk Developer Network. He is fluent in AutoLISP, VBA, and <a href="http://vb.net/">VB.NET</a>. He has written for AugiWORLD and Inside AutoCAD (a monthly magazine that has since gone out of publication). He can be contacted at <a href="mailto:sanganakskha@gmail.com">sanganakskha@gmail.com</a><br />
<!--INFOLINKS_ON--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/another-way-to-align-a-rectangle-with-a-line-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Access related files with search paths</title>
		<link>http://www.ellenfinkelstein.com/acadblog/access-related-files-with-the-search-paths/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/access-related-files-with-the-search-paths/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 21:36:11 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Drawing]]></category>
		<category><![CDATA[AutoCAD project file search path]]></category>
		<category><![CDATA[AutoCAD support file search path]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=426</guid>
		<description><![CDATA[
			
				
			
		
<p>All AutoCAD drawings are connected to related files. At the very least, all drawings need access to a customization user interface (CUI) file. Some drawings also need to access fonts, plug-ins (such as AutoLISP and VBA files), linetypes, and hatch patterns. Drawings may have externally referenced drawings (xrefs).</p>
<p>You can make your AutoCAD life easier by [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Faccess-related-files-with-the-search-paths%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Faccess-related-files-with-the-search-paths%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2011/search_path.png" alt="" width="270" height="156" />All AutoCAD drawings are connected to related files. At the very least, all drawings need access to a customization user interface (CUI) file. Some drawings also need to access fonts, plug-ins (such as AutoLISP and VBA files), linetypes, and hatch patterns. Drawings may have externally referenced drawings (xrefs).</p>
<p>You can make your AutoCAD life easier by understanding the support file search path and the project files search path. If you sometimes get a message that AutoCAD can&#8217;t find a necessary file, you may be able to solve this problem by working with the support file search path. AutoCAD looks for outside files first in the same folder as the current drawing, then in the support file search path. If the file is not in either place, you&#8217;ll get a message that AutoCAD can&#8217;t find the file.</p>
<h3>Work with the support file search path</h3>
<p>The support file search path is one or more locations where AutoCAD looks for menus, fonts, linetypes, and hatch patterns. It also looks there for drawings to insert (using the INSERT command) and plug-ins. AutoCAD comes with a default support file search path, which varies based on your version of Windows. To find it, choose Tools&gt; Options. This opens the Options dialog box.</p>
<p><strong>Quick Tip: </strong>A shortcut to open the Options dialog box is to right-click in the drawing or command-line area with no objects selected, and choose Options.</p>
<p>Click the Files tab. Then click the plus sign next to the first item, Support File Search Path, to expand the list.</p>
<p><img class="aligncenter" src="http://www.ellenfinkelstein.com/autocadtips/images/acadtips_support_file_search_path-1.png" alt="" width="490" height="405" /></p>
<p>The top item is your default location. Your menu, font, linetype, and hatch pattern files are there by default.</p>
<p>If you want to create your own menu, font, linetype, and hatch pattern files, I recommend creating a folder for them and adding that folder to the support file search path. In this way, you don&#8217;t interfere with the default installation of AutoCAD. Also, if you need to uninstall and reinstall or upgrade AutoCAD, your files are safer (although AutoCAD usually saves these files during an upgrade).</p>
<p>To add your own folder, select the Support File Search Path item, and click the Add button. A new text box opens at the end of the list where you can type in the path, but it&#8217;s usually easier to click Browse. Then navigate to the folder in the Browse for Folder dialog box, select it, and click OK. The new path appears in your list.</p>
<p><img class="aligncenter" src="http://www.ellenfinkelstein.com/autocadtips/images/acadtips_support_file_search_path-3.png" alt="" width="511" height="189" /></p>
<p>You can create several folders for files and add them to your support file search parth. For example, many people put their AutoLISP and VBA files in a separate folder and add it to the support file search path.</p>
<h3>Specify the search path for xrefs</h3>
<p>The Project Files Search Path item is for xrefs. You can specify a project name for a drawing, using the PROJECTNAME system variable. Then, that drawing will look for xrefs in the project files search path related to that project name. You use this to ensure that the drawing can find the xref even if it&#8217;s moved and therefore isn&#8217;t in its original location. Project names are also used for images and DWF underlays.</p>
<p><img class="aligncenter" src="http://www.ellenfinkelstein.com/autocadtips/images/acadtips_support_file_search_path-4.png" alt="" width="227" height="65" /></p>
<p>To add a project name in the Options dialog box, click the Project Files Search Path item to expand it. If you haven&#8217;t used this item before, a new line appears, called Empty. Click Add. Then a new project appears, called Project1. It&#8217;s highlighted, so you can rename it. Choose a name that&#8217;s easy to type, as you&#8217;ll have to type it on the command line.</p>
<p>To add a location, follow these steps:</p>
<ol>
<li>Click Add.</li>
<li>Either type in a path, or click Browse to navigate to it, as previously described.</li>
<li>Click OK, and your new path appears in the listing.W</li>
<li>When you&#8217;re done, click OK to close the Options dialog box. The project name you specified is now stored in the Windows Registry.</li>
</ol>
<p>To use a project files search path, enter <strong>projectname </strong>on the command line. At the E<strong>nter new value for PROJECTNAME, or . for none &lt;&#8221;"&gt;: </strong>prompt, enter the projectname that you specified in the Options dialog box. If you enter a name that you haven&#8217;t listed in the Options dialog box, you get the following message:</p>
<p><strong>&#8220;hello&#8221; not found in the registry. Use the Options dialog Files tab to create the project name and set the project search paths.</strong></p>
<p>The next time you open the drawing, AutoCAD will know where to search for the xrefs for that drawing, even if they&#8217;ve been moved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/access-related-files-with-the-search-paths/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>&#8220;AutoCAD Block Best Practices,&#8221; an e-book by Edwin Prakoso</title>
		<link>http://www.ellenfinkelstein.com/acadblog/autocad-block-best-practices-an-e-book-by-edwin-prakoso/</link>
		<comments>http://www.ellenfinkelstein.com/acadblog/autocad-block-best-practices-an-e-book-by-edwin-prakoso/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 20:21:32 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[blocks]]></category>
		<category><![CDATA[dynamic blocks]]></category>
		<category><![CDATA[e-books]]></category>

		<guid isPermaLink="false">http://www.ellenfinkelstein.com/acadblog/?p=525</guid>
		<description><![CDATA[
			
				
			
		
<p>Edwin Prakoso has written an excellent and thorough e-book on AutoCAD blocks. In 69 pages, he covers the following:</p>

Creating, inserting, modifying, and replacing blocks
Creating and using attributes
Creating annotative blocks
Creating dynamic blocks, including visibility states, parameters, and constraints
Extracting data from blocks
Best practices examples
Managing and sharing blocks

<p>The book is only $10 and he&#8217;s offering a 40% discount [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fautocad-block-best-practices-an-e-book-by-edwin-prakoso%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ellenfinkelstein.com%2Facadblog%2Fautocad-block-best-practices-an-e-book-by-edwin-prakoso%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Edwin Prakoso has written <a href="https://www.e-junkie.com/ecom/gb.php?cl=103602&amp;c=ib&amp;aff=7962&quot; target=&quot;ejejcsingle" target="_blank">an excellent and thorough</a><a href="https://www.e-junkie.com/ecom/gb.php?cl=103602&amp;c=ib&amp;aff=7962&quot; target=&quot;ejejcsingle" target="_blank"> e-book on AutoCAD blocks</a>. In 69 pages, he covers the following:<a href="https://www.e-junkie.com/ecom/gb.php?cl=103602&amp;c=ib&amp;aff=7962&quot; target=&quot;ejejcsingle" target="_blank"><img class="alignright" src="http://www.ellenfinkelstein.com/acadblog/wordpress/wp-content/uploads/2010/12/autocad_block_best_practices_cover.PNG" alt="" width="272" height="210" /></a></p>
<ul>
<li>Creating, inserting, modifying, and replacing blocks</li>
<li>Creating and using attributes</li>
<li>Creating annotative blocks</li>
<li>Creating dynamic blocks, including visibility states, parameters, and constraints</li>
<li>Extracting data from blocks</li>
<li>Best practices examples</li>
<li>Managing and sharing blocks</li>
</ul>
<p>The book is only $10 and he&#8217;s offering a 40% discount with the<strong> CN2010</strong> code.  It&#8217;s only good until December 31st, which is why I wanted to get this post out to you now. That makes the book only $6!</p>
<p>I suggest that you <a href="https://www.e-junkie.com/ecom/gb.php?cl=103602&amp;c=ib&amp;aff=7962&quot; target=&quot;ejejcsingle" target="_blank">take a look by clicking this link</a>. (Full disclosure: I make 30% commission.) He also has 2 e-books on Revit, if you&#8217;re interested.</p>
<p>I asked Edwin some questions to learn more about him and why he chose this topic:</p>
<p><strong>Q1: Why did you decide to focus on AutoCAD blocks?</strong></p>
<p>I believe that to be productive in AutoCAD, we need to focus on three areas: having good templates, good libraries, and good customizations. Customization need programming knowledge, and not many people can create a program. But AutoCAD blocks are quite simple to create.</p>
<p>I have seen that AutoCAD blocks today can be really useful, not only as reusable content, but also to automate some tasks. By optimizing blocks, we not only become more productive, but also reduce human errors in our design.</p>
<p><strong>Q2: Tell me a little about your background.</strong></p>
<p>I worked in Architecture consultant for a couple of years, then I moved to a building contractor. So I&#8217;m familiar with the design process and how we use AutoCAD in that area. I saw that many people tried to create custom programs to be more productive. Then I started to work at an Autodesk reseller, so I had more chances to explore AutoCAD features. I started to see that much of the automation can be done in AutoCAD without any programming. One feature that we can use is AutoCAD blocks. For example, we can use dynamic blocks and data extraction.</p>
<p><strong>Q3: You have 3 e-books, one on AutoCAD and two on Revit. Why did you decide to start writing? Are there any other books on AutoCAD in the pipeline?</strong></p>
<p>I started to write on my blog since 2004. My first blog was written in Indonesian. Some of the readers asked if I could provide the contents in e-book format. It was not easy and expensive to have an Internet connection at that time. I thought it was a good idea. So I decided to also have e-books, especially for materials that can&#8217;t be covered in blog posts. At the moment I only have one AutoCAD e-book, but I have plan to cover more about AutoCAD best practices.<br />
Wish me luck!</p>
<p>Good luck, Edwin!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ellenfinkelstein.com/acadblog/autocad-block-best-practices-an-e-book-by-edwin-prakoso/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

