<?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>CADbloke &#187; shortcut</title>
	<atom:link href="http://www.cadbloke.com/tag/shortcut/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cadbloke.com</link>
	<description>Broadcast &#38; IT System Design and Documentation</description>
	<lastBuildDate>Wed, 24 Aug 2011 22:04:37 +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>Full-screen Shortcut for AutoCAD</title>
		<link>http://www.cadbloke.com/autocad-full-screen-shortcut/</link>
		<comments>http://www.cadbloke.com/autocad-full-screen-shortcut/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 01:26:25 +0000</pubDate>
		<dc:creator>CADbloke</dc:creator>
				<category><![CDATA[AutoCAD tips]]></category>
		<category><![CDATA[cleanscreen]]></category>
		<category><![CDATA[cui]]></category>
		<category><![CDATA[full-screen]]></category>
		<category><![CDATA[shortcut]]></category>

		<guid isPermaLink="false">http://www.cadbloke.com/?p=105</guid>
		<description><![CDATA[I wanted a full-screen shortcut like Internet Exploder, Firefox and other web browsers, just for having a good look at a drawing on the whole screen with no distractions.

The Cleanscreen command is a good start but it didn’t go far enough for me, so I hacked it and added a few things to it. Now my full-screen has only the Top window bar with the quick-access menu and nothing else.]]></description>
			<content:encoded><![CDATA[<p>I wanted a full-screen shortcut like Internet Exploder, Firefox and other web browsers, just for having a good look at a drawing on the whole screen with no distractions.</p>
<p>The <em>Cleanscreen</em> command is a good start but it didn’t go far enough for me, so I hacked it and added a few things to it. Now my full-screen has only the Top window bar with the quick-access menu and <strong>nothing</strong> else. Just this …</p>
<p><img class="alignleft" style="display: inline; border-width: 0pt;" title="AutoCAD - Quick Acces toolbar only" src="http://www.cadbloke.com/wp-content/uploads/2010/03/AutoCADCUIfullscreen._thumb.png" border="0" alt="AutoCAD - Quick Acces toolbar only" width="414" height="59" /></p>
<p>… the thin edge of the window itself and wall-to wall CAD.</p>
<p>&nbsp;</p>
<ul>
<li>F11 –&gt; Absolutely everything disappears. Full-on full screen </li>
<li>F11 again –&gt; all the toolbars, status bar, menus come back to their rightful place </li>
</ul>
<h3>How?</h3>
<p><img class="alignright" style="display: inline; border-width: 0pt;" title="AutoCAD-CUI-Macro  window" src="http://www.cadbloke.com/wp-content/uploads/2010/03/AutoCADCUIMacro._thumb.png" border="0" alt="AutoCAD-CUI-Macro window" width="504" height="440" />Open the CUI Editor and follow the instructions in <a title="AutoCAD" href="http://www.cadbloke.com/category/autocad/">AutoCAD</a>’s help system – F1 –&gt; search for “To create or modify a shortcut key”. Their well-illustrated explanation saves me cobbling one together. The only thing I’ll add to their instructions is that you can narrow your search of commands by typing <span style="text-decoration: underline;">any</span> (that’s cool) part of the command’s name in the search box in the <em>Command List</em> section of the CUI window (bottom-left).</p>
<p>I dragged the “Clean Window” command onto the Shortcut Keys node. This is the command I started with before I <span style="text-decoration: line-through;">broke</span> perfected it. Click on the Macro line of the command section on the right in the CUI window (highlighted in red), then click on the […] box that appears on the right (trust me, it appears).</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>… then paste this code in the <em>Long String Editor</em></p>
<p class="download">$M=$(if,$(and,$(getvar,CleanScreenState),1),^C^C_CleanScreenOFF _commandline _MenuBar 1 statusbar 1,^C^C_CleanScreenON _commandlinehide _MenuBar 0 statusbar 0)</p>
<p class="warning">It is important to note that the spaces in the command list are significant so make sure you select all of it at once. The spaces (and commas, as it turns out) are the same as pressing the enter-key to execute the command. The observant amongst you will notice there are a few more characters in the screenshot. My original code needed a bit of a tidy-up.</p>
<p>If you haven’t already, assign a key to the shortcut, as per Help’s instructions. I used F11. Why? It is the same shortcut for most Internet browsers to go full-screen. For once, I’d like <a title="AutoCAD" href="http://www.cadbloke.com/category/autocad/">AutoCAD</a>’s User eXperience to match something from the real world. Don’t get me started on that. Find. Replace. 3 Tab stops. Why?</p>
<p>That’s the practical part, done.</p>
<h3>How it Works</h3>
<p>For those of you who love to know how it works, here it is in its 3 parts. It is a Diesel (see <a title="AutoCAD" href="http://www.cadbloke.com/category/autocad/">AutoCAD</a> –&gt; F1) Macro. Notice that there are 3x commas in the <em>if</em> command which wraps the macro. The format of this macro is basically [Test], [Do if True], [Do if False]. Here is the same macro on 3 lines</p>
<p class="note">$M=$(if,$(and,$(getvar,CleanScreenState),1),</p>
<p class="note">^C^C_CleanScreenOFF _commandline _MenuBar 1 statusbar 1,</p>
<p class="note">^C^C_CleanScreenON _commandlinehide _MenuBar 0 statusbar 0)</p>
<p>Working through the macro, this is what it does</p>
<ul>
<li>the first part checks to see whether you’re in Cleanscreen mode or not. </li>
<li>the rest of the macro is in two halves, Cleanscreen on, Cleanscreen off </li>
<li>wherever you see <em>^C^C</em>_<em> </em>that means Ctrl-C, twice. This exits any lingering previous commands. My original code had a few superfluous Ctrl-C&#8217;s. </li>
<li><em>CleanScreenOFF</em> returns the menus etc. that the <em>CleanScreenON</em> command in the 2nd half of the macro hides </li>
<li><em>commandline</em> restores the command line which is hidden by <em>commandlinehide</em> </li>
<li><em>MenuBar 1 </em>and <em>MenuBar 0 </em>restore / hides the file-menu bar at the top for old farts like me who have grown attached to it. </li>
<li><em>statusbar 1</em> and <em>statusbar 0</em> show and hide the status bar which is right at the bottom of the <a title="AutoCAD" href="http://www.cadbloke.com/category/autocad/">AutoCAD</a> window. </li>
<li>as yet I haven&#8217;t figured out how to show and hide the Model / Paper Space tabs. </li>
</ul>
<p>Remove any of the above combinations if they don’t suit you. Don&#8217;t forget the <em>^C^C_<em> at the start and the trailing space</em></em>. Feel free to add anything to the macro and also please add it here to the <a rel="nofollow" title="comments" href="#comments-template">comments</a>.</p>
<p><span style="color: #ff0000;">**Update**</span> I figured out how to show &amp; hide the Model / Paper Space tabs.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="AutoCAD Model &amp; Layout Tabs" src="http://www.cadbloke.com/wp-content/uploads/2010/11/AcadModelLayoutTabs.png" border="0" alt="AutoCAD Model &amp; Layout Tabs" width="305" height="128" /></p>
<p><span style="color: #000000;"><del>Add the code below to the bottom of your <em>acadXXXXdoc.lsp</em> (<em>XXXX </em>is the version of <a rel="nofollow" title="AutoCAD" href="http://www.cadbloke.com/category/autocad/">AutoCAD</a> you are using). I found it in <em>C: &#8211; Program Files &#8211; Autodesk &#8211; <a title="AutoCAD" href="http://www.cadbloke.com/category/autocad/">AutoCAD</a> 2011 &#8211; Support</em></del></span>. <span style="color: #ff0000;">**Update**  <span style="color: #000000;">My bad &#8211; <a title="Oops. Modifying core files is a no-no." href="http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&amp;id=2897258&amp;linkID=9240617" target="_blank">you are not meant to modify these files</a>. Find (or if it doesn&#8217;t exist, create) a file called acaddoc.lsp. See the link in the previous sentence for where to create this, depending on how specific you want it to be. By default AutoCAD will walk the support paths list looking for it. Basically, just put it somewhere in your support path, perhaps in the same place as the one you&#8217;re not meant to modify. </span></span></p>
<p>The following LISP code sets up the commands to show and hide the Model / Paper Space tabs. You can actually use the commands anytime you want. Use Notepad or a similar plain text editor. DO NOT USE WORD !! Make a backup first, just in case. Watch out you don&#8217;t miss any brackets &#8211; they are annoyingly important)</p>
<p class="download">(DEFUN C:MLTABSON ()    <br />(setenv &#8220;ShowTabs&#8221; &#8220;1&#8243;) () (PRINC)     <br />)     <br />(DEFUN C:MLTABSOff ()     <br />(setenv &#8220;ShowTabs&#8221; &#8220;0&#8243;) () (PRINC)     <br />)</p>
<p>Before these lines at the end of the acaddoc.lsp file (or add them if they don&#8217;t exist):</p>
<p class="note">;(princ &#8220;loaded.&#8221;)    <br />;; Silent load.     <br />(princ)</p>
<p>The new macro to paste in the <em>Long String Editor</em> is:</p>
<p class="download">$M=$(if,$(and,$(getvar,CleanScreenState),1),    <br />^C^C_CleanScreenOFF _commandline _MenuBar 1 statusbar 1 MLTABSON,     <br />^C^C_CleanScreenON _commandlinehide _MenuBar 0 statusbar 0 MLTABSOFF)</p>
<p class="note">Here’s a tip conveniently placed at the end to see who dived in and who read the whole post before tinkering … Open a text editor and copy-paste your macro code at various crucial stages. This will give you an easy way to go back if you miss a space, comma or just generally mess it up.</p><p>Some related Ramblings:<ol>
<li><a href='http://www.cadbloke.com/autocad-find-replace-wildcards-broken/' rel='bookmark' title='AutoCAD Find and Replace Wildcards are broken'>AutoCAD Find and Replace Wildcards are broken</a> <small>I found this bug when doing a find and replace on some IP addresses in an AutoCAD drawing. I was using it as a template for a new drawing so...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cadbloke.com/autocad-full-screen-shortcut/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

