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

<channel>
	<title>CAD Notes&#187; AutoCAD Tutorial</title>
	<atom:link href="http://cad-notes.com/category/autocad/autocad-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://cad-notes.com</link>
	<description>CAD Tutorials and Best Practices for professionals and students</description>
	<lastBuildDate>Fri, 18 May 2012 07:57:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to: add custom pattern to AutoCAD</title>
		<link>http://cad-notes.com/2012/04/add-custom-pattern-to-autocad/</link>
		<comments>http://cad-notes.com/2012/04/add-custom-pattern-to-autocad/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 01:29:32 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tutorial]]></category>
		<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[Hatch]]></category>
		<category><![CDATA[pattern]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4660</guid>
		<description><![CDATA[This is a guide how you can use your own AutoCAD pattern/hatch. You can embed the pattern within acad.pat or add custom support folder. Read the details here!<p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p>So you have downloaded or created your own AutoCAD pattern. Now you want to use it. But how?</p>
<p>There are two ways to do this: you can combine your custom pattern with acad.pat or add a support file search path. I personally will recommend the last one. You may loose your custom pattern if you somehow need to reinstall AutoCAD or your Windows account corrupts. Or you may just make your acad.pat corrupt.</p>
<h1>Combine with acad.pat</h1>
<p>You can find acad.pat in support folder. It should be something like C:\Users\YOURWINDOWSACCOUNT\AppData\Roaming\Autodesk\AutoCAD XXXX &#8211; English\RXX.0\enu\Support. Find acad.pat and open it with text editor like notepad or <a href="http://notepad-plus-plus.org/" target="_blank">notepad ++</a>. Do not use Microsoft Word. I suggest you to make a backup of this file before you start to work.</p>
<p>Open another instance of Notepad and open your custom hatch. Select all, then copy it using [ctrl] + C. I use <a href="http://www.dotsoft.com/acadhatch.htm" target="_blank">chainlink pattern from DotSoft website</a>.</p>
<p>Paste it at the bottom most of your acad.pat file.</p>
<p>There is a comment that if you add user defined hatch below that section, then when you upgrade your AutoCAD this file will be migrated properly.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="custom hatch in acad pat" src="http://cad-notes.com/wp-content/uploads/2012/04/custom-hatch-in-acad-pat.png" alt="custom hatch in acad pat" width="450" height="313" border="0" /></p>
<p>However, I still avoid this method.</p>
<p>Now save this file. Now you should immediately see your custom hatch in pattern list.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="custom hatch in pattern list" src="http://cad-notes.com/wp-content/uploads/2012/04/custom-hatch-in-pattern-list.png" alt="custom hatch in pattern list" width="450" height="150" border="0" /></p>
<h1>Add support file search folder</h1>
<p>If you place all your custom hatch in your own folder, you can simply add support file search path. Open AutoCAD options (type OP then enter).</p>
<p>In files tab, below support file search path, add your folder.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="support file search" src="http://cad-notes.com/wp-content/uploads/2012/04/support-file-search.png" alt="support file search" width="425" height="208" border="0" /></p>
<p>Click OK to accept this changes, then when you activate hatch command, you should see it in your pattern list. If you can’t find it, you may need to change pattern type to user defined.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="user defined pattern" src="http://cad-notes.com/wp-content/uploads/2012/04/user-defined-pattern.png" alt="user defined pattern" width="475" height="124" border="0" /></p>
<p>If you use hatch dialog box, you can change pattern type to custom or user defined.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="custom hatch in hatch dialog box" src="http://cad-notes.com/wp-content/uploads/2012/04/custom-hatch-in-hatch-dialog-box.png" alt="custom hatch in hatch dialog box" width="250" height="180" border="0" /></p>
<p>I always use the last method, and avoid the first one. So I never really have problem or may be benefits of the first method. If you use the first one, why do you choose to use it? Will you recommend it instead of the last method?</p>
<span id="pty_trigger"></span><p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2012/04/add-custom-pattern-to-autocad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AutoCAD customization: 5 articles to learn about CUI</title>
		<link>http://cad-notes.com/2012/03/5-autocad-customization-cui-tutorial/</link>
		<comments>http://cad-notes.com/2012/03/5-autocad-customization-cui-tutorial/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 10:23:00 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tutorial]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[cui]]></category>
		<category><![CDATA[cuix]]></category>
		<category><![CDATA[customization]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4594</guid>
		<description><![CDATA[AutoCAD CUI customization roundup. If you want to customize AutoCAD interface, here you can learn how you can create partial customization file, create command, working with ribbon, toolbar and menu, and more cool things! <p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-4597" title="computer maintainence" src="http://cad-notes.com/wp-content/uploads/2012/03/customize-AutoCAD.jpg" alt="Customizing AutoCAD" width="283" height="424" /></p>
<p>Image illustration: © Daniel Gilbey &#8211; Fotolia.com</p>
<p>In the last few weeks, we published a tutorial series to work with customization file. This is the roundup of the tutorial, 5 steps on how you work with AutoCAD customization.</p>
<h1>1. Exploring CUI and create your own customization file</h1>
<p>In this first tutorial, we cover how you can access CUI dialog box. We explore elements in cuix file. And also how you can create your own customization file as partial cui.</p>
<p>Having separate customization file from default acad.cuix is important. Many things can make us to reset acad.cuix to its original state. And when you do this, you will loose your customization!</p>
<p><img src="http://cad-notes.com/wp-content/uploads/2012/02/autocad-manage-tab.png" alt="" /></p>
<p>Find out more about <a href="http://cad-notes.com/2012/02/exploring-autocad-cui-introduction-1/" target="_blank">accessing CUI dialog and exploring customization elements here</a>.</p>
<h1>2. Creating a command and ribbon tab</h1>
<p>After having our own customization file, the common thing we do is to add our custom command. Here you can learn how to define a command, change it’s properties. And to give you a quick feel how to place it to your interface, you will create a panel and ribbon tab. Then place the command there.</p>
<p><img src="http://cad-notes.com/wp-content/uploads/2012/02/custom-command-setting.png" alt="" /></p>
<p>Find out more about <a href="http://cad-notes.com/2012/02/exploring-autocad-cui-creating-a-command-part-2/" target="_blank">creating a command, panel, and ribbon tab here</a>.</p>
<h1>3. More about ribbon</h1>
<p>Now after we can create commands, panels and tabs, we need to arrange them to make it looks neat. Ribbon is the default interface, so we start from here. You will learn about rows, sub panel and slideout panel. How to use them, and how to adjust their properties.</p>
<p><img src="http://cad-notes.com/wp-content/uploads/2012/03/slide-out-panel.png" alt="" /></p>
<p>Find out more about <a href="http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-ribbon-part-3/" target="_blank">ribbon elements’ properties here</a>.</p>
<h1>4. Working with toolbar and menu</h1>
<p>Old timer like me? I don’t use toolbar and menu anymore because I’m not really a CAD user now. I have to use ribbon for presentation and training. I quite like it, but I’m not sure if I will stick to ribbon if I have to work 9-5 as AutoCAD user.</p>
<p>So here we cover how you can create your own toolbar and menu.</p>
<p><img src="http://cad-notes.com/wp-content/uploads/2012/03/menu-structure.png" alt="" /></p>
<p>Find out more about <a href="http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-toolbar-and-menu/" target="_blank">creating toolbar and menu here</a>.</p>
<h1>5. More things you can do with CUI</h1>
<p>There are several more things you can do with CUI. Not limited to creating commands, toolbar, menu and ribbon, you can tweak several more things. Rollover tooltip and mouse click are some of them.</p>
<p><img src="http://cad-notes.com/wp-content/uploads/2012/03/rollover-tooltip.png" alt="" /></p>
<p>Find out <a href="http://cad-notes.com/2012/03/5-more-things-you-can-do-with-cui/" target="_blank">more cool things you can do with AutoCAD CUI here</a>.</p>
<h1>Bonus: Reusing CUI and sharing with team</h1>
<p>As we mentioned before, we use our own customization file. Partial CUI can be saved in a custom (and safe) location, including a shared location over a network. This is safer and you can make it read only so users won’t be able to modify it.</p>
<p><a href="http://cad-notes.com/wp-content/uploads/2012/03/CUI-on-shared-location6.png"><img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="CUI on shared location[6]" src="http://cad-notes.com/wp-content/uploads/2012/03/CUI-on-shared-location6_thumb.png" alt="CUI on shared location[6]" width="329" height="68" border="0" /></a></p>
<h2>Loading Partial customization file</h2>
<p>So you have a partial CUI and want to load it. How you can do that? You can click <strong>load partial customization file</strong> in CUI dialog box. Just browse and find your file, then load it.</p>
<p><a href="http://cad-notes.com/wp-content/uploads/2012/03/load-partial-CUI9.png"><img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="load partial CUI[9]" src="http://cad-notes.com/wp-content/uploads/2012/03/load-partial-CUI9_thumb.png" alt="load partial CUI[9]" width="544" height="135" border="0" /></a></p>
<h2>Unloading partial customization file</h2>
<p>What about unloading it? expand partial customization file and right click above file you want to unload. Choose unload from contextual menu.</p>
<p><a href="http://cad-notes.com/wp-content/uploads/2012/03/unload-partial-cui9.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="unload partial cui[9]" src="http://cad-notes.com/wp-content/uploads/2012/03/unload-partial-cui9_thumb.png" alt="unload partial cui[9]" width="299" height="171" border="0" /></a></p>
<h2>Using CUILOAD or MENULOAD</h2>
<p>There is another way to load and unload cuix files. In older version, you can load your .mnu files using MENULOAD. This functionality is still exist. Alternatively, you can use CUILOAD. Both will load the same dialog box. You can click browse and load it. Or select loaded files in the list and click unload.</p>
<h1>Few things to consider</h1>
<p>What you need to consider is, your CUI may use image files for icons and load LISPs. Make sure these files’ path is also available when you load your CUI. If you tend to work locally, probably put CUI, all images and LISPs to a folder. For example C:\ACADLIB.</p>
<p>If you want to share it to all users from a network location, use that location when you create CUI.</p>
<p>After you master customization and you need to maintain it for dozens or more users, you might want to explore enterprise CUI. By defining it, you can make all users have same interface and commands. It’s also can be set as read only – no one else can modify it. This is a good start: <a href="http://exchange.autodesk.com/autocad/enu/online-help/ACD/2012/ENU/pages/WS73099cc142f4875513fb5cd10c4aa30d6b-7d8a.htm" target="_blank">create an Enterprise CUIx file (AutoCAD help)</a>.</p>
<h1>Do you think you will use CUI?</h1>
<p>Do you manage commands and interface using CUIx or planning to do it? I know many veterans prefer to create AutoLISP only but never bother to place it to AutoCAD interface. However, if you want other users to use your customization in your company, you must consider to place them to interface. Not everyone is command line kind of guy. But if you are a veteran who only customize AutoCAD for your own use, you probably never bother to use it.</p>
<p>Share your opinion here. Also if you used to do this using old way (mnu, mns) you can compare which is better in your opinon.</p>
<p>&nbsp;</p>
<span id="pty_trigger"></span><p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2012/03/5-autocad-customization-cui-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exploring AutoCAD CUI: 5 more things you can do with CUI (part 5)</title>
		<link>http://cad-notes.com/2012/03/5-more-things-you-can-do-with-cui/</link>
		<comments>http://cad-notes.com/2012/03/5-more-things-you-can-do-with-cui/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 12:47:00 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tutorial]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[double click]]></category>
		<category><![CDATA[load lisp]]></category>
		<category><![CDATA[mouse click]]></category>
		<category><![CDATA[quick properties]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4581</guid>
		<description><![CDATA[AutoCAD CUI is not only about creating command and place them to ribbon/ toolbar. You can do cool things like: define shortcut, rollover tool tips and more! There are 5 cool things listed here!<p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p>We have 4 articles already about working with CUI. Many people think that CUI is only about <a href="http://cad-notes.com/2012/02/exploring-autocad-cui-creating-a-command-part-2/" target="_blank">creating custom commands</a>, <a href="http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-ribbon-part-3/" target="_blank">creating your own ribbon tab/panel</a> or <a href="http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-toolbar-and-menu/" target="_blank">your own toolbar and menu</a>. There are more things you can do with CUI, and actually quite cool.</p>
<h1>1. Rollover Tooltips and Quick Properties</h1>
<p>Rollover tooltips and quick properties both give you quick information of your object. Rollover tooltips  will appear when you hover your mouse above an object. Quick properties is a palette that will open when you double click an object. Or you can set it <a href="http://heidihewett.blogs.com/my_weblog/2008/03/autocad-2009-a.html" target="_blank">to open automatically when you select object</a>.</p>
<p>If you only want to see object’s properties, rollover tooltip would be a logical choice. But if you don’t like to wait until it appears, you can just choose quick properties. But the real difference is, you can edit the properties in quick properties but not in rollover tooltip.</p>
<p>Let’s say you are a surveyor. You would like to get information of an object quickly, like what is the object, its length and its area. You can just hover your mouse above it, and don’t have to inquiry its length and area! Isn’t that cool?</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="rollover tooltip" src="http://cad-notes.com/wp-content/uploads/2012/03/rollover-tooltip.png" alt="rollover tooltip" width="297" height="237" border="0" /></p>
<p>If you want to have this on your tooltip, open CUI dialog. You can work with your own customization file or just use default CUI.</p>
<p>Click rollover tooltips category.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="rollover tooltips" src="http://cad-notes.com/wp-content/uploads/2012/03/rollover-tooltips.png" alt="rollover tooltips" width="189" height="136" border="0" /></p>
<p>You will see a list of objects at the right pane. If you use your own CUI, this list is still empty. Click edit object type list to add objects to this list.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="edit object list" src="http://cad-notes.com/wp-content/uploads/2012/03/edit-object-list.png" alt="edit object list" width="153" height="115" border="0" /></p>
<p>You will see a complete list of AutoCAD objects. Select all objects which you want to modify the tooltip appearance. Let’s say I want to customize polyline tooltip.</p>
<p>I click it and click OK. Now polyline is on the list. But it has an exclamation mark. It means we haven’t defined any properties yet. So click all properties you want to show on tooltip for this object.</p>
<p>I select layer, area and length here.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="polyline properties tooltip" src="http://cad-notes.com/wp-content/uploads/2012/03/polyline-properties-tooltip.png" alt="polyline properties tooltip" width="297" height="371" border="0" /></p>
<p>Click OK to accept your changes and close CUI. Now test it. Create a rectangle or polyline and hover your mouse above it. Pretty cool right?</p>
<p>What about quick properties? You can do it the exact same way. But remember, you may want to select properties you change regularly.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="quick properties" src="http://cad-notes.com/wp-content/uploads/2012/03/quick-properties.png" alt="quick properties" width="428" height="190" border="0" /></p>
<h1>2. Keyboard Shortcuts</h1>
<p>AutoCAD users probably use command alias as shortcut more than keyboard shortcut. And many probably don’t even realize this kind of shortcut exist.</p>
<p>There are common Windows shortcut we can use in AutoCAD. Like [ctrl] + A to select all, [ctrl] + C to copyclip, and [ctrl] + V to pasteclip. Some AutoCAD users also use other applications intensively. They probably prefer this kind of shortcuts than command alias. But if you use AutoCAD as primary software, it’s more likely that you prefer command alias.</p>
<p>If you open your CUI again, click shortcut keys under keyboard shortcuts.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="shorcut keys" src="http://cad-notes.com/wp-content/uploads/2012/03/shorcut-keys.png" alt="shorcut keys" width="185" height="51" border="0" /></p>
<p>You will see a list of complete shortcuts on the right pane.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="default shorcuts" src="http://cad-notes.com/wp-content/uploads/2012/03/default-shorcuts.png" alt="default shorcuts" width="299" height="250" border="0" /></p>
<p>If you select a command here, you will see the command’s properties below that pane. Find Key(s) below Access category here. Click … button. After AutoCAD open a small dialog box, press key combination that you want to assign.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="defining shorcut key" src="http://cad-notes.com/wp-content/uploads/2012/03/defining-shorcut-key.png" alt="defining shorcut key" width="299" height="189" border="0" /></p>
<p>Ok, what if I want to add commands that’s not on the list? You can drag that command to shortcut keys category.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adding commands" src="http://cad-notes.com/wp-content/uploads/2012/03/adding-commands.png" alt="adding commands" width="500" height="483" border="0" /></p>
<p>It is a good thing to add it to your own customization file, so you will not mess default AutoCAD CUI. And it would be easy to use it on other computer. You can simply load your customization file!</p>
<h1>3. Double Click Actions</h1>
<p>Double click action is similar to <a href="http://cad-notes.com/2009/08/adding-command-to-your-right-click/" target="_blank">right click menu</a>. It’s context sensitive. You can define what command should be executed when you double click an object. Lynn Allen has a <a href="http://lynn.blogs.com/lynn_allens_blog/2007/11/an-autocad-hip-.html" target="_blank">tip on her blog before: convert a line to polyline with double click</a>.</p>
<p>OK, let’s just use Lynn’s tip to add this command to our CUI. Lynn uses AutoCAD default CUI, so I guess I need to explain extra steps if you want to add it to your own CUI.</p>
<h2>1. Create a new command</h2>
<p>You can create a new command to convert a line to polyline using macro below:</p>
<p><code>^C^CPEDIT;y;;</code></p>
<p>Create it on your own customization file.</p>
<h2>2. Add double click action</h2>
<p>Right click double click actions, and choose new double click action in context menu.</p>
<p>Select the action and change object name to LINE.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="define object type" src="http://cad-notes.com/wp-content/uploads/2012/03/define-object-type.png" alt="define object type" width="269" height="52" border="0" /></p>
<h2>3. Add command to action</h2>
<p>Now drag your command below this action. You’ve done this several times, right?</p>
<p>It should look something like this:</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="double click actions" src="http://cad-notes.com/wp-content/uploads/2012/03/double-click-actions.png" alt="double click actions" width="152" height="51" border="0" /></p>
<p>Close your CUI and give it a try!</p>
<h1>4. Mouse Click</h1>
<p>Previously, when we work with our own customization file, it will override default settings. For example, if you assign keyboard shortcut [ctrl] + A in your CUI, AutoCAD will use it instead of select all as defined as default command.</p>
<p>I found that it’s different in mouse click. If you want to modify mouse click, you must change it directly in acad.cuix. If you know how to add this to our own cui without modifying acad cui, share in comment section below.</p>
<p>Here’s a little explanation about mouse buttons. Common mouse we use is a 3 buttons mouse. The left button is button 1, right button is button 2, and middle button is button 3.</p>
<p>See the structure below. You can also combined mouse click with [ctrl] and [shift] key. <strong>ctrl + shift + click &gt; button 2</strong> means: you hold [ctrl] and [shift] key then right click your mouse.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="mouse buttons" src="http://cad-notes.com/wp-content/uploads/2012/03/mouse-buttons.png" alt="mouse buttons" width="211" height="122" border="0" /></p>
<p>Like working with other actions, you can change the assignment by dragging command here. Try to replace ctrl + shift + click button to with erase and see if it works!</p>
<p>Why there are so many buttons? If you have more than 3 buttons mouse, you can assign commands to all of those buttons!</p>
<h1>5. Loading LISP File</h1>
<p>Another thing you can do with CUI is to load AutoLISP file. There are several ways to load AutoLISP automatically. The other ways are you can use <a href="http://cad-notes.com/2011/08/saving-using-and-managing-your-autolisp-program/" target="_blank">startup suite</a> or <a href="http://cad-notes.com/2011/10/automatically-execute-command-when-opencreate-new-file/" target="_blank">acaddoc.lsp</a>.</p>
<p>However, if you intend to deploy customization to use for all users in your company, using CUI probably is the preferred way. You only need to load it once.</p>
<p>To load AutoLISP using CUI, right click above LISP files and choose load LISP from context menu. Consider to create a default location so all users can have the same folder in their computer. Otherwise, it will not work.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="load lisp with cui" src="http://cad-notes.com/wp-content/uploads/2012/03/load-lisp-with-cui.png" alt="load lisp with cui" width="179" height="90" border="0" /></p>
<h1>Do you use these custom setup in your CUI?</h1>
<p>So do you use them already? If you are familiar with customization, you probably already do this. What is your favorite from these 5? If you haven’t which one do you think will be useful for you, and what will you use it for? Share it here!</p>
<span id="pty_trigger"></span><p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2012/03/5-more-things-you-can-do-with-cui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Automate AutoCAD with command Macros</title>
		<link>http://cad-notes.com/2012/03/how-to-automate-autocad-with-command-macros/</link>
		<comments>http://cad-notes.com/2012/03/how-to-automate-autocad-with-command-macros/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 12:09:00 +0000</pubDate>
		<dc:creator>Paul Munford</dc:creator>
				<category><![CDATA[AutoCAD Tips]]></category>
		<category><![CDATA[AutoCAD Tutorial]]></category>
		<category><![CDATA[AutoCAD macro]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4562</guid>
		<description><![CDATA[Another automation tutorial by Paul Munford. Here you will learn to automate processes in AutoCAD using macro!<p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p>In my last post for CAD Notes, I showed you how to take a task that you perform frequently, and <a href="http://cad-notes.com/2012/03/learn-how-to-write-command-scripts-for-autocad-and-automate-your-plotting/" target="_blank">automate it by turning it into an AutoCAD script</a>.</p>
<p>In this post we will look at another automation tool – the command Macro. We will look at the difference between a Script and a Macro and discuss the possibilities of both.</p>
<p>To review:</p>
<ul>
<li>An AutoCAD Script Is an ASCII text file, with the file extension .SCR, that contains a number of instructions for AutoCAD to perform at the command line.</li>
<li>An AutoCAD command Macro is also a list of instructions for AutoCAD to follow, but a Macro is run from the AutoCAD UI (A tool bar button, menu pull down or short cut key combination). A Macro usually lives within your CUI or on a Tool palette.</li>
</ul>
<p>I hope to demonstrate that the process of writing a Macro is the same as that of writing a Script. All you really need to automate AutoCAD is a good understanding of the sequence of commands that you need to complete to get the job done.</p>
<h1>AutoCAD Scripts</h1>
<p><strong>The Good</strong> &#8211; AutoCAD scripts can contain long lists of instructions for AutoCAD to follow. AutoCAD scripts can be stored in a central location on your server. Should you want to update a Script file, you only need to change it in one place for everyone to get the changes. AutoCAD scripts can contain comments, to remind you what the script does.</p>
<blockquote><p>If you are using the full version of AutoCAD, you can use the LISP programming language within your script. This is not available to AutoCAD LT users.</p></blockquote>
<p><strong>The Bad</strong> – Loading Script files can be a fiddle, and your users will need to know where to find the Script files. Some internal training will be required to run your Scripts.</p>
<h1>AutoCAD Macros</h1>
<p><strong>The Good </strong>– AutoCAD command Macros can be distributed via the CUI or tool palettes, making it much more intuitive for your users to use. AutoCAD Command Macro’s can contain LISP code, and they can also contain DIESAL code (which is good for AutoCAD LT users). Macros can contain pauses for user input, but be careful – there is no error handling method in a Macro.</p>
<p><strong>The Bad</strong> – Writing long, complicated command Macro’s can be very difficult to debug.</p>
<blockquote><p><strong>Tip</strong>: You can of course, get the best of both worlds by using a command Macro to call a Script…</p></blockquote>
<h1>Automate your plotting – reloaded</h1>
<p>In the last post, we learned how to examine what we had previously written at the command line to write a script. We end up with this script to create an A1 PDF plot in our default plotting location:</p>
<p><code>-plot<br />
y</code></p>
<p>DWG To PDF.pc3<br />
ISO A1 (841.00 x 594.00 MM)<br />
m<br />
l<br />
n<br />
l<br />
1:1<br />
0.00,0.00<br />
y<br />
monochrome.ctb<br />
y<br />
n<br />
n<br />
n<br />
n<br />
y</p>
<p>To write the same routine as a macro, we would put it all on one line, like this:</p>
<p><code>^C^C-plot;y;;DWG To PDF.pc3;ISO A1 (841.00 x 594.00 MM);m;l;n;l;1:1;0.00,0.00;y;monochrome.ctb;y;n;n;n;;n;y; </code></p>
<p>Note that, instead of a carriage return macros use the semi-colon to indicate where you would usually press return on your keyboard. Spaces are also interpreted as hitting the return key (just like when you are operating AutoCAD manually). However, using spaces can make your code difficult to read and debug so I suggest that you replace the spaces with semi-colons.</p>
<p>The ^C^C at the beginning of the command is equivalent to pressing ‘Esc’ on the keyboard twice. This should cancel any other commands that are running before your Macro runs. You can read more about the <a href="http://cad-notes.com/2011/12/eleven-killer-tool-palette-macros-for-working-with-autocad-viewports/" target="_blank">Syntax for AutoCAD Macros</a> here.</p>
<h2>Running and Debugging your Macro.</h2>
<p>You can run your Macro from the AutoCAD CUI (See Edwin’s post on <a href="http://cad-notes.com/2009/08/creating-new-command-in-autocad/" target="_blank">creating new AutoCAD commands</a>) however I am going to show you how to run your command from a tool palette.</p>
<p>First use the keyboard combination shortcut CTRL+3 to open your tool palettes. Right click over any blank area on your palette and chose ‘New Palette’ to create a new blank palette which we will use for testing our macro.</p>
<blockquote><p><strong>Tip</strong>: These instructions are for AutoCAD 2012. Previous releases may be a little different. If you are new to working with Tool palettes, read Edwin’s post ‘<a href="http://cad-notes.com/2009/09/creating-your-own-autocad-palette/" target="_blank">creating your own AutoCAD palette</a>’ for more information on creating and working with tool palettes.</p></blockquote>
<p><a href="http://cad-notes.com/wp-content/uploads/2012/03/Creating-an-AutoCAD-tool-pallette-command-tool.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="Creating an AutoCAD tool pallette command tool" src="http://cad-notes.com/wp-content/uploads/2012/03/Creating-an-AutoCAD-tool-pallette-command-tool_thumb.png" alt="Creating an AutoCAD tool pallette command tool" width="500" height="375" border="0" /></a></p>
<p>(click image to enlarge)</p>
<ol>
<li>Right click over any blank area on your new palette and choose ‘Customize commands’. This will bring up the ‘Customize user interface’ dialogue.</li>
<li>Type ‘script’ into the search box to bring up the run script command.</li>
<li>Drag and drop the run script command from the customize user interface dialogue onto your palette.</li>
</ol>
<blockquote><p>You don’t have to use the run script command for testing Macro’s, but there isn’t a ‘Run Macro’ command, so it will have to do!</p></blockquote>
<p>To add your command Macro to the new toolbar button, right click on the ‘Run script’ tool palette button, and chose ‘Properties’. You can now paste your Macro in under ‘Command string’.</p>
<p><a href="http://cad-notes.com/wp-content/uploads/2012/03/An-AutoCAD-tool-palette-command-tools-properties.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="An AutoCAD tool palette command tools properties" src="http://cad-notes.com/wp-content/uploads/2012/03/An-AutoCAD-tool-palette-command-tools-properties_thumb.png" alt="An AutoCAD tool palette command tools properties" width="500" height="311" border="0" /></a></p>
<p>(click image to enlarge)</p>
<p>Click on the OK button to close the dialogue and save your Macro.</p>
<p>Finally, click on your new button&#8230; and see what happens!</p>
<p>You now have all the fun of debugging your Macro. I hope that it works for you first time. If it doesn’t &#8211; Hit ‘F2’ to bring up the AutoCAD text window to see what happened and what you might need to adjust to get your Macro working.</p>
<h2>Macro examples</h2>
<p>Here are some examples of command Macros that you could use, see if you can work out the commands and options used.</p>
<p>^C^C_fillet;r;0;</p>
<p>Start the fillet command with a radius of zero &#8211; Handy for joining reluctant polylines.</p>
<p>^C^C_pedit;m;\\;j;;;</p>
<p>Join multiple lines or arcs into a polyline in one go (this Macro assumes that the variable ‘PEDITACCEPT’ is set to 1)</p>
<p>^C^C_break;\@;</p>
<p>Break a line at the point you click on.</p>
<p>^c^_copy;\;\\_rotate;l;;@;</p>
<p>Copy and then rotate your selection</p>
<p>^c^_zoom;e;_zoom;0.95x;</p>
<p>Zoom a bit more than extents</p>
<p>^C^C-purge;r;*;n;</p>
<p>Purges all registered applications from memory.</p>
<p>^C^C_erase;all;;</p>
<p>Erase everything! – be careful with this one :D</p>
<h1>What will you write a Macro for?</h1>
<p>Writing Macro’s for AutoCAD can be simple and fun. You can create simple quick Macro’s that will save you time and effort every time you have to create a drawing.  You could create a Macro to plot your drawings at the click of a button, update your title block or create geometry on your company standard layers. Or you could create Macro’s to pull AutoCAD commands together that you use frequently.</p>
<p>What will you create today?</p>
<p>-Paul-</p>
<span id="pty_trigger"></span><p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2012/03/how-to-automate-autocad-with-command-macros/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exploring AutoCAD CUI: Working with toolbar and menu (part 4)</title>
		<link>http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-toolbar-and-menu/</link>
		<comments>http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-toolbar-and-menu/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 12:21:00 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tutorial]]></category>
		<category><![CDATA[cui]]></category>
		<category><![CDATA[cuix]]></category>
		<category><![CDATA[customize AutoCAD]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[toolbar]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4544</guid>
		<description><![CDATA[In this 4th CUI tutorial, we learn how to create toolbar and menu. We will learn how to place commands, and learn about menu structure. And did you miss our tutorial to create contextual menu in the past?  <p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p>In the last tutorial, <a href="http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-ribbon-part-3/" target="_blank">we learned how to place commands to ribbon</a>. But we know that ribbon is not everyone’s favorite. What if you want to add the commands to toolbar? What if you want to add commands to menu? Let’s see how we can do it here.</p>
<h1>Working with toolbar</h1>
<p>Working with toolbar should be easier. It has fewer properties than ribbon.</p>
<p>First, let’s open our CUI dialog box. Remember to activate customization file to yours (mine is cad-notes, yours might be different).</p>
<h2>Creating new toolbar</h2>
<p>Now we work on our own customization file. Try to click the + sign on the left of toolbars category. You should see there is no item below it yet. Our customization file is empty, remember?</p>
<p>Right click above toolbar, and choose new toolbar from contextual menu.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="new toolbar" src="http://cad-notes.com/wp-content/uploads/2012/03/new-toolbar.png" alt="new toolbar" width="300" height="332" border="0" /></p>
<p>Give your toolbar name. I named mine ‘my viewport tools’. Not very catchy name, but at least I know what tools are in it.</p>
<h2>Placing commands to a toolbar</h2>
<p>To place commands is easy. Switch to ‘all customization files’ and expand ‘partial customization file’. Expand your cui and expand toolbar.</p>
<p>Drag your commands to your custom toolbar. Very similar with ribbon, right?</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="drag commands below toolbar" src="http://cad-notes.com/wp-content/uploads/2012/03/drag-commands-below-toolbar.png" alt="drag commands below toolbar" width="500" height="485" border="0" /></p>
<p>After you finish placing commands, just click OK. You don’t have to add toolbar to workspace, even if you were working in ribbon interface. You should immediately see the toolbar.</p>
<h2>Loading toolbar</h2>
<p>Just in case you don’t see the toolbar, you can load it manually.</p>
<p>If you use ribbon interface, go to view tab, windows panel, toolbars&gt; YOUR CUI&gt; YOUR TOOLBAR.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="load toolbar from ribbon" src="http://cad-notes.com/wp-content/uploads/2012/03/load-toolbar-from-ribbon.png" alt="load toolbar from ribbon" width="299" height="169" border="0" /></p>
<p>If you use classic interface, you can access it from menu tools&gt; toolbars&gt; YOUR CUI&gt; YOUR TOOLBAR.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="load toolbar from menu" src="http://cad-notes.com/wp-content/uploads/2012/03/load-toolbar-from-menu.png" alt="load toolbar from menu" width="479" height="219" border="0" /></p>
<p>As I said before, it’s very easy. Especially if you compare it to placing commands in AutoCAD ribbon!</p>
<h1>Working with menu</h1>
<p>Working with menu is also the same. You create a new menu below menu category in CUI file and drag your commands there.</p>
<p>There are things to consider, because menu is not as flat as toolbar. You can create sub menu to group same commands with different options, and separator for similar commands.</p>
<p>See the menu structure below. Viewport layers is a sub-menu. It contains several commands.</p>
<p>To easily differentiate creating viewport and modifying viewport, we can add separator. This is very logical, especially if you are already familiar with programming or customization.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="menu structure" src="http://cad-notes.com/wp-content/uploads/2012/03/menu-structure.png" alt="menu structure" width="521" height="269" border="0" /></p>
<p>Now, how can we create the menu above in CUI?</p>
<ol>
<li>Similar to toolbar, create new menu. Right click above menus category and choose new menu from contextual menu.</li>
<li>Drag your commands below your menu.</li>
<li>Add new sub-menu if necessary and drag your group of commands there.</li>
<li>Add separator if necessary. You can arrange the sequence by dragging them in CUI tree.</li>
</ol>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="menu structure in cui" src="http://cad-notes.com/wp-content/uploads/2012/03/menu-structure-in-cui.png" alt="menu structure in cui" width="342" height="383" border="0" /></p>
<h2>Arranging menu in workspace</h2>
<p>Your new menu by default should appears as the last item. If you want it to appear elsewhere, you have to move the sequence using CUI.</p>
<p>Open your CUI, choose to show ‘all customization files’. Expand workspaces and select which workspace you want to arrange.</p>
<p>After you select the workspace, from the right pane expand menus. Drag your menu to arrange the sequence.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="arranging menu" src="http://cad-notes.com/wp-content/uploads/2012/03/arranging-menu.png" alt="arranging menu" width="500" height="336" border="0" /></p>
<h2>Contextual menu</h2>
<p>Do you like to choose commands from contextual menu? You can access it by right click your mouse. We call it contextual menu because it will show only relevant commands with your selection set.</p>
<p>Below is contextual menu for associative array.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="array contextual menu" src="http://cad-notes.com/wp-content/uploads/2012/03/array-contextual-menu.png" alt="array contextual menu" width="300" height="235" border="0" /></p>
<p>If you don’t have anything in selection set, then common tools you can get are navigation tools.</p>
<p>We covered how to create contextual menu in the past, so if you are interested on how to create it, you can read <a href="http://cad-notes.com/2009/08/adding-command-to-your-right-click/" target="_blank">creating contextual menu tutorial here</a>.</p>
<p>We still have more CUI tutorial coming! If you don’t want to miss the tutorial, <a href="http://cad-notes.com/email-subscription/" target="_blank">subscribe to our email newsletter and receive updates in your mailbox</a>. We are on <a href="http://twitter.com/cad_notes" target="_blank">twitter</a> and <a href="http://www.facebook.com/CadNotes" target="_blank">facebook</a> too!</p>
<span id="pty_trigger"></span><p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-toolbar-and-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exploring AutoCAD CUI: working with ribbon (part 3)</title>
		<link>http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-ribbon-part-3/</link>
		<comments>http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-ribbon-part-3/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 12:55:00 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tutorial]]></category>
		<category><![CDATA[cuix]]></category>
		<category><![CDATA[customize AutoCAD]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4507</guid>
		<description><![CDATA[More details about arranging commands in a panel. Let's create panel for your custom AutoCAD tab. Learn how to place your commands, change button size and more! <p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p>We covered <a href="http://cad-notes.com/2012/02/exploring-autocad-cui-introduction-1/" target="_blank">how you can create your own AutoCAD customization file</a> and <a href="http://cad-notes.com/2012/02/exploring-autocad-cui-creating-a-command-part-2" target="_blank">add your own commands, panel and ribbon tab there</a>. In this article, we will cover more details about arranging our tools in a panel and tab by working with their properties. How to make our panel looks as we expected.</p>
<p>We will add several more commands there, custom and AutoCAD default commands. If you haven’t got any custom command, you can follow our previous tutorial or just continue with default commands.</p>
<h1>Adding custom commands</h1>
<p>I created several commands from <a href="http://cad-notes.com/2011/12/eleven-killer-tool-palette-macros-for-working-with-autocad-viewports/" target="_blank">Paul Munford’s macro</a> like below. You can refer to those macros or create your own if necessary.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="custom viewport commands" src="http://cad-notes.com/wp-content/uploads/2012/03/custom-viewport-commands.png" alt="custom viewport commands" width="378" height="254" border="0" /></p>
<p>I’m too lazy to create proper icons for each command, so I just use default icons. Of course, as you can see, the circular viewport is the same with draw circle icon. It can confuse your team if you do this. In the real job, create custom icons for them!</p>
<p>Drag all the commands to our viewport panel. Arrange the sequence in logical order. I arranged mine like below. The top to bottom commands will show in panel from left to right.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="all custom viewport tools" src="http://cad-notes.com/wp-content/uploads/2012/03/all-custom-viewport-tools.png" alt="all custom viewport tools" width="250" height="316" border="0" /></p>
<p>You might want to click OK, close the CUI dialog to see the changes. The ribbon panel should appears similar like below.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="autocad custom viewport tools" src="http://cad-notes.com/wp-content/uploads/2012/03/autocad-custom-viewport-tools.png" alt="autocad custom viewport tools" width="223" height="103" border="0" /></p>
<p>OK, the panel shows all command in one row, just like the old AutoCAD toolbar. This is not right. We still have plenty of space above and below it. We will add more rows to arrange them.</p>
<h2>Working with rows</h2>
<p>Open your CUI dialog again. We are still working with our own customization file.</p>
<p>Find your panel below ribbon category. Right click above your panel title, and choose new row from context menu. This will create ‘Row 2’ below your panel.</p>
<p>Repeat the process to create ‘Row 3’.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="create new row" src="http://cad-notes.com/wp-content/uploads/2012/03/create-new-row.png" alt="create new row" width="294" height="362" border="0" /></p>
<p>Place all the rows above &lt;SLIDEOUT&gt;. We will discuss about slide out later in this article.</p>
<h2>Arranging commands in different rows</h2>
<p>Now we have 3 rows in our panel. Drag and drop your commands to those rows. You can place similar commands on the same row. Below is how I arrange my commands.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="commands in separate rows" src="http://cad-notes.com/wp-content/uploads/2012/03/commands-in-separate-rows.png" alt="commands in separate rows" width="290" height="323" border="0" /></p>
<p>You can see on the right pane the preview of your ribbon panel now. It looks better, but you can see that there are empty spaces at row 1 and 3. It’s because they don’t have the same commands number on each row.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="panel preview" src="http://cad-notes.com/wp-content/uploads/2012/03/panel-preview.png" alt="panel preview" width="369" height="181" border="0" /></p>
<p>You can add more commands or move them to different row to make it looks neat. But this time, let’s adjust the appearance by change the command button width.</p>
<h2>Adjusting command appearance</h2>
<p>Let’s change the viewport fit button. Select it under your panel tree.</p>
<p>Change button style to Small With Text. You can see at the panel preview now the button is wider. But the text is too long, now it’s become longer than other rows.</p>
<p>Change display name to VPort Fit to make it shorter.</p>
<blockquote><p>You may not see the changes immediately on preview panel. Change the button style to other style, then choose small with text again.</p></blockquote>
<p>Do the same thing with the last row. Now my custom panel looks like below. It looks better, isn’t it?</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="viewport tool panel" src="http://cad-notes.com/wp-content/uploads/2012/03/viewport-tool-panel.png" alt="viewport tool panel" width="97" height="72" border="0" /></p>
<h2>Add default AutoCAD commands</h2>
<p>There are some default viewport commands we can add here. I consider to add this viewport dropdown control. It will allow us to create different shapes of viewport, only with one button.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="viewport control dropdown" src="http://cad-notes.com/wp-content/uploads/2012/03/viewport-control-dropdown.png" alt="viewport control dropdown" width="149" height="204" border="0" /></p>
<p>To add this button, in CUI dialog switch to all customization files. This will allow you to access all commands from all CUI files.</p>
<p>Change command filter to ribbon control elements. This action will filter the commands. There are still many commands available. To control it further, type viewport in search field.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="ribbon control elements" src="http://cad-notes.com/wp-content/uploads/2012/03/ribbon-control-elements.png" alt="ribbon control elements" width="376" height="177" border="0" /></p>
<p>Drag create viewports drop-down to your panel.</p>
<h1>Working with Sub Panel</h1>
<p>Here is the thing: the create viewport drop-down is the common command that we will use often. So we want to make it standout from the crowd. We want to make it large. So change the button style to large with text.</p>
<p>But wait! This doesn’t look right. The large button should be on the left, using all three rows’ height. The other commands should be on its right.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="add default autocad command" src="http://cad-notes.com/wp-content/uploads/2012/03/add-default-autocad-command.png" alt="add default autocad command" width="176" height="109" border="0" /></p>
<p>How to make it looks like this?</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="custom panel with large button on the left" src="http://cad-notes.com/wp-content/uploads/2012/03/custom-panel-with-large-button-on-the-left.png" alt="custom panel with large button on the left" width="177" height="74" border="0" /></p>
<p>We need to separate the commands in a sub panel. A sub panel lets you to define the placement just like in different panel.</p>
<p>Right click above Row 1 and choose New Sub-Panel from drop down menu. You should see a sub panel is added, with one row. Add two more rows for the sub panel.</p>
<p>Move all custom commands from main panel rows to this sub panel. Leave the large button on the main panel.</p>
<p>After the rows are empty, you can delete them.</p>
<p>The final arrangement should be like this:</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="sub panel placement" src="http://cad-notes.com/wp-content/uploads/2012/03/sub-panel-placement.png" alt="sub panel placement" width="259" height="302" border="0" /></p>
<p>So our all of our custom commands are now on the sub panel, and the create viewports drop-down on main panel. You may want to play a little bit more by yourself about this arrangement.</p>
<h2>About slideout panel items</h2>
<p>Do you notice the &lt;SLIDEOUT&gt; item in your panel? Do you know what it’s for?</p>
<p>Let’s add one more row in main panel. Don’t create it in sub panel. If you do it right, you should see Row 2, not Row 4.</p>
<p>Add more viewport tools to that row. Choose any tools you want to.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="row below slideout" src="http://cad-notes.com/wp-content/uploads/2012/03/row-below-slideout.png" alt="row below slideout" width="272" height="291" border="0" /></p>
<p>Check the preview and close CUI dialog by clicking OK.</p>
<p>So what does the slide out do? You will see small arrow pointing down at your panel name. Click it. Now you should see it slide out and show the second row!</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="slide out panel" src="http://cad-notes.com/wp-content/uploads/2012/03/slide-out-panel.png" alt="slide out panel" width="457" height="156" border="0" /></p>
<p>This is useful if you have more tools to place at your panel, but rarely used.</p>
<p>You may want to try placing your custom panel at existing tabs. Or playing around with more configurations. Feel free to do it. We created our own customization file, didn’t we?</p>
<p>Next, we will cover about creating menu and toolbar. Yes, even the latest AutoCAD by default using ribbon, many of us still use menu and toolbar!</p>
<p>How are you doing so far?</p>
<span id="pty_trigger"></span><p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2012/03/exploring-autocad-cui-working-with-ribbon-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exploring AutoCAD CUI: Creating a command in tab (part 2)</title>
		<link>http://cad-notes.com/2012/02/exploring-autocad-cui-creating-a-command-part-2/</link>
		<comments>http://cad-notes.com/2012/02/exploring-autocad-cui-creating-a-command-part-2/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 13:09:00 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tutorial]]></category>
		<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[cui]]></category>
		<category><![CDATA[cuix]]></category>
		<category><![CDATA[customization]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4487</guid>
		<description><![CDATA[In this tutorial, you will learn how to create a command, panel, and tab. Then define the appearance in workspace. <p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p>In previous tutorial, <a href="http://cad-notes.com/2012/02/exploring-autocad-cui-introduction-1">we explore the CUI dialog interface and create our own customization file</a>. Let’s go further.</p>
<p>Let’s see what we will do:</p>
<ol>
<li>We will use our own cui file. So create it first before you follow this tutorial. We did it on the last tutorial.</li>
<li>We will create custom commands. Later, we will combine them with existing AutoCAD command  to our panel.</li>
<li>We will create a panel and a ribbon tab.</li>
<li>We will define in which workspace the panel should appear.</li>
</ol>
<h1>Change your active customization file</h1>
<p>In your CUI dialog, select your custom CUI you created before. If you miss the first step, <a href="http://cad-notes.com/2012/02/exploring-autocad-cui-introduction-1" rel="nofollow" target="_blank">you can check it in this first tutorial</a>. I named it CAD-NOTES, but you may use your own name.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="active cui" src="http://cad-notes.com/wp-content/uploads/2012/02/active-cui.png" alt="active cui" width="350" height="151" border="0" /></p>
<p>You should see your cuix file here. The command list is still empty, and there is no toolbar, menu or ribbon defined yet.</p>
<h1>Create a new command</h1>
<p>Let’s try to create a ribbon panel version of <a href="http://cad-notes.com/2011/12/eleven-killer-tool-palette-macros-for-working-with-autocad-viewports/" target="_blank">Paul Munford’s killer macro</a>. There are few default AutoCAD command, but we also need to create the commands. So I guess this is a good exercise.</p>
<p>First, we need to create a command. In command list area, click create a new command.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="create new command" src="http://cad-notes.com/wp-content/uploads/2012/02/create-new-command.png" alt="create new command" width="300" height="108" border="0" /></p>
<p>Now you should see a command is listed here. The default name is Command1. Notice that the source is CAD-NOTES. It means the command is defined in that file. Select it.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="new command" src="http://cad-notes.com/wp-content/uploads/2012/02/new-command.png" alt="new command" width="349" height="50" border="0" /></p>
<p>The properties on the right pane is now showing the command’s properties.</p>
<h2>Configuring your command</h2>
<p>Change the properties as shown below:</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="custom command setting" src="http://cad-notes.com/wp-content/uploads/2012/02/custom-command-setting.png" alt="custom command setting" width="329" height="256" border="0" /></p>
<p>Here are some considerations:</p>
<ol>
<li>You should give the command a unique name, so you can find it easily.</li>
<li>You need to define the macro that will be executed when this command is active.</li>
<li>Optionally, you may add information to description and other fields. You can also define the icon image. You can create 32&#215;32 pixel image for large icon and 16&#215;16 pixel for small icon. Or just pick one from available icons.</li>
</ol>
<p>You may create as many tools as you want. In Paul’s article, you can find very useful custom tools. <a href="http://cad-notes.com/2011/12/eleven-killer-tool-palette-macros-for-working-with-autocad-viewports/" rel="nofollow" target="_blank">Read it, you may find some custom tools that you want</a>.</p>
<p>But remember, if it’s already a default AutoCAD command, you can just use it. You don’t need to create a new one.</p>
<h1>Placing your command</h1>
<p>You already have your custom command. You can define it to execute macro like we did above, or run <a href="http://cad-notes.com/contents/autolisp-articles/" target="_blank">an AutoLISP program</a>.</p>
<p>But you haven’t place it to a toolbar, menu or ribbon panel. AutoCAD doesn’t know where you want to place it. Yet. We must tell AutoCAD where it should be.</p>
<p>We’re still working on our custom CUI file. For this exercise, let’s work with ribbon. You may try to place it on menu or toolbar later, but this time just ribbon.</p>
<p>Where do you can find a command? In a ribbon panel. So now we must create a ribbon panel for our command.</p>
<blockquote><p>Remember: If you decide to add this command to existing panel, you don’t need to create a new one.</p></blockquote>
<h2>Creating a panel</h2>
<p>In customization tree, expand ribbon. You will see panels category there, but there is no panel defined yet. Remember, we are working on a new customization file.</p>
<p>Right click above the panels category and choose new panel from contextual menu.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="create new panel" src="http://cad-notes.com/wp-content/uploads/2012/02/create-new-panel.png" alt="create new panel" width="179" height="138" border="0" /></p>
<p>Give your panel a name. I named mine viewport tools.</p>
<p>Now we have a panel, but it’s still empty. How can I add my command to this panel? By drag it from command list and drop it under the panel.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="drag command to panel" src="http://cad-notes.com/wp-content/uploads/2012/02/drag-command-to-panel.png" alt="drag command to panel" width="300" height="316" border="0" /></p>
<p>We will fine tune the appearance later. Just drag your command there now.</p>
<h2>Creating a ribbon tab</h2>
<p>Now AutoCAD knows on which panel the command should appear. But where the panel should be? Is it at home tab? annotation tab? We also need to define this.</p>
<p>Because we want to place all of our custom command to a separate tab, we need to create a new ribbon tab. Again, if you just want to add that panel to existing tab, you don’t have to create a new tab.</p>
<p>Right click above tab category, then choose new tab from context menu. Give the new tab a name.</p>
<p>Because we want our panel before to appear on this tab, drag that panel here.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="placing panel to ribbon" src="http://cad-notes.com/wp-content/uploads/2012/02/placing-panel-to-ribbon.png" alt="placing panel to ribbon" width="244" height="171" border="0" /></p>
<h2>The last thing: Define the workspace</h2>
<p>Are we done yet? Unfortunately no. There is one last thing we have to define. In which workspace it should appear.</p>
<p>Follow these steps to place our tab to workspace ribbon.</p>
<ol>
<li>Change the customization file to ‘all customization files’ (1).</li>
<li>Select drafting &amp; annotation default (2). You should see the right pane is now showing the workspace contents (3).</li>
<li>In customization files tree, expand partial customization files&gt; your customization file&gt; ribbon (4).</li>
<li>Find your custom tab then drag it to ribbon tabs category.</li>
</ol>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="placing tab to workspace" src="http://cad-notes.com/wp-content/uploads/2012/02/placing-tab-to-workspace.png" alt="placing tab to workspace" width="500" height="474" border="0" /></p>
<p>We are done! Click OK to accept all changes and close CUI dialog.</p>
<p>You should see your tab now. Click that tab to activate it. Your panel and command is now there!</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="custom ribbon tab appearance" src="http://cad-notes.com/wp-content/uploads/2012/02/custom-ribbon-tab-appearance.png" alt="custom ribbon tab appearance" width="500" height="158" border="0" /></p>
<p>If you don’t see it, make sure you use drafting and annotation workspace! You  can change it from quick access toolbar.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="drafting and annotation workspace" src="http://cad-notes.com/wp-content/uploads/2012/02/drafting-and-annotation-workspace.png" alt="drafting and annotation workspace" width="446" height="47" border="0" /></p>
<p>Try the command to make sure it works.</p>
<p>Isn’t that cool? We will add more commands next, and how to arrange the commands in our panel.</p>
<span id="pty_trigger"></span><p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2012/02/exploring-autocad-cui-creating-a-command-part-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Exploring AutoCAD CUI: introduction (1)</title>
		<link>http://cad-notes.com/2012/02/exploring-autocad-cui-introduction-1/</link>
		<comments>http://cad-notes.com/2012/02/exploring-autocad-cui-introduction-1/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 12:44:00 +0000</pubDate>
		<dc:creator>Edwin Prakoso</dc:creator>
				<category><![CDATA[AutoCAD Tutorial]]></category>
		<category><![CDATA[cui]]></category>
		<category><![CDATA[cuix]]></category>
		<category><![CDATA[customize AutoCAD]]></category>

		<guid isPermaLink="false">http://cad-notes.com/?p=4465</guid>
		<description><![CDATA[If you want to learn how to customize your AutoCAD interface, you can follow this tutorial series. Let's start with a short introduction!<p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p>There are many questions and confusion about customizing AutoCAD with CUI. It’s supposed to be simpler and easier than the old mnu or mns file. I never use the old way, but I believe yes, it’s easier to do it graphically like this.</p>
<p>So let’s discuss about customize user interface (or CUI). In this first article, we will discus about accessing the dialog and preparing our own CUI that we will use later.</p>
<p>You can open the dialog by clicking the button in manage tab&gt;customization&gt;user interface.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="autocad manage tab" src="http://cad-notes.com/wp-content/uploads/2012/02/autocad-manage-tab.png" alt="autocad manage tab" width="302" height="135" border="0" /></p>
<p>Or veteran users usually do it by typing CUI then [enter].</p>
<h1>Customize User Interface dialog box</h1>
<p>The dialog box probably looks a bit scary with all the commands, tree and graphics. While it looks complicated, it is arranged logically. And should be easy to understand.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="autocad cui interface" src="http://cad-notes.com/wp-content/uploads/2012/02/autocad-cui-interface.png" alt="autocad cui interface" width="550" height="487" border="0" /></p>
<p>First, let’s understand what are the three panes are for.</p>
<h2>1. Customization tree</h2>
<p>Customization tree is where you can arrange your commands, menu, toolbars, panels, ribbon tabs, and other customization items.</p>
<p>If you click the + sign near an item, you will see sub items inside it. Let’s try to expand the ribbon.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="ribbon tree" src="http://cad-notes.com/wp-content/uploads/2012/02/ribbon-tree.png" alt="ribbon tree" width="168" height="71" border="0" /></p>
<p>Below the ribbon, there are tabs and panels. It also has contextual tab states: tab that will open when you select objects.</p>
<p>This is the way we define where our commands, panels, tabs, toolbars and other elements.</p>
<p>Depends to which version of AutoCAD you have, you can see all CUIx files loaded to AutoCAD. You can see it from customization files list dropdown or under the partial customization files category.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="partial customization files" src="http://cad-notes.com/wp-content/uploads/2012/02/partial-customization-files.png" alt="partial customization files" width="182" height="103" border="0" /></p>
<p>Try to expand ACFUSION.</p>
<p>Under each customization file, you will see they have the same element: ribbon, tabs, panels, and so on. If you expand the ribbon and panels, then you will see Inventor Fusion panel.</p>
<p>Where does it appear? It appears at ribbon tab.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="fusion cui" src="http://cad-notes.com/wp-content/uploads/2012/02/fusion-cui.png" alt="fusion cui" width="550" height="263" border="0" /></p>
<p>It is a good idea to create separate customization file and not messing the default acad.cuix. We will do it later in this tutorial.</p>
<h2>2. Command list</h2>
<p>Command list is the area where you can find existing command, or create a new command. Try to drag the slider on the right side of the command list. You should be able to see all commands here.</p>
<p>You can filter the command by typing in search field, or choose list to display from dropdown menu.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="select command list" src="http://cad-notes.com/wp-content/uploads/2012/02/select-command-list.png" alt="select command list" width="300" height="247" border="0" /></p>
<p>We will explore about creating new command on the next tutorial. If you only want to create a custom panel without creating a custom command, you only need to find default command here.</p>
<h2>3. Properties pane</h2>
<p>Select a command, then you should see the right pane (3) is updated. Now it shows this command properties.</p>
<p>You can change the button image, the command name, and macro that will be executed when you click the button. This is where you define the properties of commands, panels, tabs, and other elements.</p>
<p>We will define a new command properties on the next tutorial, and use it to fine tune our custom panel and tab on other tutorial.</p>
<h1>Preparation</h1>
<p>Before we start to make a customization, lets do some preparation. We will create a new CUIx file to work on this tutorial series.</p>
<h2>Create a custom CUIx</h2>
<p>Let’s create our own custom CUI. We will create commands, define panels and tab here. We will not use AutoCAD default CUI.</p>
<p>To create a CUI file, go to transfer tab in CUI dialog. Click new button or choose new from dropdown menu.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="create new cui" src="http://cad-notes.com/wp-content/uploads/2012/02/create-new-cui.png" alt="create new cui" width="381" height="253" border="0" /></p>
<p>Click save to save it to a new CUIx file.</p>
<h2>Load CUIx file</h2>
<p>You have created the CUI file. But you haven’t load it yet. Go back to customize tab, then click load partial customization file. Or you can right click when selecting partial customization file, then choose it from contextual menu.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="load partial cui" src="http://cad-notes.com/wp-content/uploads/2012/02/load-partial-cui.png" alt="load partial cui" width="400" height="310" border="0" /></p>
<p>Find your saved customization file you saved in previous step, then load it. Now you should see your file listed both in dropdown menu and under partial customization files.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="loaded cui files" src="http://cad-notes.com/wp-content/uploads/2012/02/loaded-cui-files.png" alt="loaded cui files" width="317" height="283" border="0" /></p>
<p>We will continue to work with customization on the next tutorial.</p>
<span id="pty_trigger"></span><p><hr />
<a href="http://www.amazon.com/gp/product/1118174070/ref=as_li_tf_tl?ie=UTF8&tag=cn010-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1118174070"><img src="http://cad-notes.com/images/acad_aotg.png" /></a>
<br />
Preorder Autodesk Official Training Guides 2013 on Amazon. <a href="http://cad-notes.com/e-store/autodesk-official-training-guides/">See all titles on CAD Notes e-store here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cad-notes.com/2012/02/exploring-autocad-cui-introduction-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

