<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.microvellum.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tips &amp;amp; Tricks</title><link>http://forums.microvellum.com/blogs/tips__tricks/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Object Publishing</title><link>http://forums.microvellum.com/blogs/tips__tricks/archive/2008/04/04/object-publishing.aspx</link><pubDate>Fri, 04 Apr 2008 23:16:00 GMT</pubDate><guid isPermaLink="false">feb7034d-1662-4aa5-999f-a502ab3af637:5741</guid><dc:creator>administrator</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://forums.microvellum.com/blogs/tips__tricks/rsscomments.aspx?PostID=5741</wfw:commentRss><comments>http://forums.microvellum.com/blogs/tips__tricks/archive/2008/04/04/object-publishing.aspx#comments</comments><description>&lt;p&gt;In this month’s tip, we will examine the SOL viewing family of commands which include: SOLVIEW, SOLDRAW, and SOLPROF. We will also take a quick look at a familiar command called FLATSHOT. Additional references for these commands can be found in AutoCAD Help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Object Publishing is defined as the process of creating 2D profiles from an object in modelspace into paperspace to give you maximum viewing control for drawing layouts.&lt;/p&gt;
&lt;p&gt;The advantage to creating profiles of an object is that you have control from paperspace on how these profiles are generated. These tools are efficient when producing accurate detailed drawing views for production, and it’s the way to go if you are looking to speed up drawing times.&lt;/p&gt;
&lt;p&gt;The SOLVIEW family of commands should be used in order. The documentation that creates the profile for this command is run by an Internal .ARX file (SOLIDS.ARX). If, for some reason, they are not working correctly, make sure you check to see if that file is loaded correctly. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SOLVIEW&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is the command that starts the process of creating the specified viewport profiles. Once a viewport is created with this command and named, it will add four layers that will be associated with it.&amp;nbsp; This allows you to put specified information on this layer to control what the viewports views.&lt;/p&gt;
&lt;p&gt;The layers that are related are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;VIEWPORTNAME-VIS&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;VIEWPORTNAME-HID&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;VIEWPORTNAME-DIM&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;VIEWPORTNAME-HAT&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Under the SOLVIEW command, you have the viewing control in which you will create the profile viewport. Those options are: UCS, ORTHO, AUXILIARY, and SECTION. These command controls allow the user to select the desired views of the object.&lt;/p&gt;
&lt;p&gt;Since this command is run off the.ARX file, it is very efficient and will allow profile drawings to update according to the object. If you make changes to the referenced object, the profile in the viewport will update and apply those changes made.(AutoCAD Objects)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SOLDRAW&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The SOLDRAW command is used to clean up the profiles drawn with the SOLVIEW command. The command takes those profiles and projects them on to a plane for viewing purposes. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SOLPROF&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The SOLPROF command is similar to the SOLDRAW. It gives you the option to display hidden profiles and display the edges and silhouettes of curved objects.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example Exercise:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Insert an object into modelspace. Go into paperspace and make sure there is no viewports active. If there are active view ports, delete them.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the command line type SOLVIEW to activate the command. &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;To create the initial viewport select the control UCS.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;For the next control select world. Then select the world coordinate system.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Specify the scaling you want to draw the viewport.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select the view center. This is going to be the anchor point on which you will place your view of the object.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select a point to place the view. Hit enter.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select your corners to place the viewpoint box around the view.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Insert the view name. This is the name that will appear in the layer manager with the temporary lays for that view.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;You will now have a single viewport we can work off to create other viewports. Now, we will create four additional viewports to complete a full drawing layout.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;In the command line, type in SOLVIEW. Select ORTHO. Then, select the side of the existing viewport to project.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select the view center and pick a point to place the view. Then, pick the corners for the viewport box.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;For the next view the SOLVIEW command will stay active. Select the AUXILIARY. Select points through the object to create the AUXILIARY plane. Then select the side to view from. Then select the view center and pick a point to place the view.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;For the last view select the section control. Specify the cutting plane points. Select the side to view from. Enter the viewing scale. Then select the view center and pick a point to place the view. Then create the viewport box around the view.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;That will complete a full drawing layout for this object. Now, you can start adding additional information such as Dimensions, Drawing Block etc. You can also place that information on the temporary layers that are created for each viewport and access those layers from the layers manager.&lt;/p&gt;
&lt;p&gt;Another command that is use for the same purpose is the FLATSHOT command. It is the same principal as SOLVIEW and SOLDRAW commands but instead of just projecting the profile onto a plane, it creates a block that can be inserted or substituted into a drawing.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Author&lt;/strong&gt;: Brannon Pumphrey, Microvellum Technical Support&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://forums.microvellum.com/aggbug.aspx?PostID=5741" width="1" height="1"&gt;</description></item><item><title>AutoCAD Combination Commands</title><link>http://forums.microvellum.com/blogs/tips__tricks/archive/2008/02/25/autocad-combination-commands.aspx</link><pubDate>Mon, 25 Feb 2008 12:39:00 GMT</pubDate><guid isPermaLink="false">feb7034d-1662-4aa5-999f-a502ab3af637:4892</guid><dc:creator>administrator</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://forums.microvellum.com/blogs/tips__tricks/rsscomments.aspx?PostID=4892</wfw:commentRss><comments>http://forums.microvellum.com/blogs/tips__tricks/archive/2008/02/25/autocad-combination-commands.aspx#comments</comments><description>&lt;p&gt;Creating combination commands using Macros allows you to develop AutoCAD commands that speed up drawing ability without having to edit the Lisp routines.&amp;nbsp; All though you have more control over commands by editing Lisp routines, using Macro elements is a good starting point for anyone looking to increase efficiency, but also get their feet wet in some programming.&lt;/p&gt;
&lt;p&gt;The easiest way to understand Macro Strings is to think of them as a language, where each character or sets of characters has a meaning, and controls how the command acts through its entry process. &lt;/p&gt;
&lt;p&gt;Adding commands is accomplished through CUI interface with AutoCAD 2007 and above.&amp;nbsp; You may want to have a basic understanding of the CUI interface before getting into this section. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Getting Started:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Open the CUI Dialog Box; make sure you are working in the main AutoCAD CUI file (acad.cui).&amp;nbsp; The AutoCAD commands are stored under the command list section. &lt;br /&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;From there, select “New”, this is going to open a new command with the name “Command1”. On the right side of the dialog box, there is an information selection that displays the properties of the new command.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;The Copy Rotate Command:&lt;/strong&gt;&lt;br /&gt;This command will allow you to copy and rotate a Profile, Solid, or Surface; all in one command.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Under general (for name enter something along the lines of Copy Rotate) under that description is a help text that will pop up when you highlight the command.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;The next category is macro. Here is where the macro string is written that controls how the command operates. Within that field insert: ^c^c_rotate;_copy;_base; &lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Explanation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;The ^c is the cancel command. So it does a double cancel command in the beginning to ensure that no other commands are active (this is optional). &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&amp;quot;_rotate&amp;quot;&amp;nbsp;activates the rotate command. &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&amp;quot;;&amp;quot; is the character that stimulates the enter key which activates the next command in the string.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&amp;quot;_copy&amp;quot; activates the copy command within the rotate command. It is now a selection, during the command you will select copy.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&amp;quot;;&amp;quot; another stimulation of enter to move on to the next command&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&amp;quot;_base&amp;quot; activates the base command. Which is the base point selection to copy and rotate is made.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;; this is the final enter stimulation to end the active command after the copy rotate is made.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;The Copy Scale Command:&lt;br /&gt;&lt;/strong&gt;This command allows you to scale a Profile, Solid, or Surface while having the option to copy coincidently.&amp;nbsp; The macro for this command will be: ^c^c_scale;_copy;_base;&lt;/p&gt;
&lt;p&gt;Try both of these combination commands, they should increase drawing efficiency. You can combine most of AutoCAD’s commands in macro string to develop useful customized tools.&lt;/p&gt;
&lt;p&gt;After these commands have been developed they can be applied to any CUI Menus, Toolbars, Toolpalettes, or Grips. They are run as everyday command operations. They can also have hot keys assigned to them for quick keyboard entry. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Text Commands&lt;/strong&gt;&lt;br /&gt;If you are looking to take it one step further here is a more complex Macro string that creates a command that is always based on the aehalf.shx font and a specific text layer. The command will tell the text to always stay at a certain height and rotation direction when entering it.&amp;nbsp; For this example we will use the font style aehalf.shx.&lt;/p&gt;
&lt;p&gt;The Macro string will read like this:&amp;nbsp;&amp;nbsp; ^C^C-style;aehalf;aehalf.shx;0;1;0;;;;-layer;m;fixedtext;;dtext;\.1875;0;layer0;&lt;br /&gt;Here is the same macro string with the definitions inserted for the meaning of what each macro character does:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;^Cancel command^Cancel command;-style command;name of text;font file;font height;font width;font angle;;;;-layer command;m;the new layer;;dtext command;\height of text;rotation;restores the layer that was current.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Author:&lt;/strong&gt; Brannon&amp;nbsp;Pumphrey, Microvellum Technical Support&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://forums.microvellum.com/aggbug.aspx?PostID=4892" width="1" height="1"&gt;</description></item></channel></rss>