SolidWorks Express
CAD Tips for the week of November 15, 2010
 
Variable Views: If your viewport zooms to extents when you go into it, or changes in some other unexpected way, make sure UCSFOLLOW is turned off (set to zero) within the viewport >>
Artistic Arrows: If you want to apply a color to a dimension arrow, you'll need to define your own arrow block >>
Squelch the SSM: Don't want the Sheet Set Manager opening every time you open a drawing that's associated with a sheet set? >>
Polyline Primer: Here's a quick look at the various types of polylines you can create in AutoCAD >>
Data Extraction - Create Attributes: Before you can extract attribute data, you need to have attributes >>
Reuse Attributes: If you are creating multiple blocks that have similar attributes, you can copy the attributes you create for the first one and paste them near the geometry for subsequent blocks >>
   
 
> Variable Views
   
 

If your viewport zooms to extents when you go into it, or changes in some other unexpected way, make sure UCSFOLLOW is turned off (set to zero) within the viewport. The UCSFOLLOW setting is saved separately for each viewport. When set to 1 (one), UCSFOLLOW generates a plan view whenever you change from one UCS to another. 

   
 
> Artistic Arrows
   
 

If you want to apply a color to a dimension arrow, you’ll need to define your own arrow block. In the Block Editor, create an arrow using your color of choice. Or use Bmake to turn an already existing arrow into a block.

Caption: Create an arrowhead block and assign your desired color.

Then set up a dimension style that specifies your block for arrows. Type Dimstyle at the command prompt. Select New to create a new style, or Modify to edit an existing one.


Caption: Set your block to appear as the arrowheads in a dimension style.

In the First Arrow box, select User Arrow at the bottom of the selection list. You will then be able to select your block. Repeat for the Second Arrow if you want to use a different block or style.


Caption: Set your block as the arrow head.

Note that you can’t use an annotative block as a custom arrowhead.

You may need to adjust your block size once you apply the dimension and see how your arrowhead look. The size of the dimension style arrowhead is based on the dimension scale factor. Its x and y scale factors are set to arrowhead size overall scale. The right arrowhead is inserted with a rotation angle of 0 for horizontal dimensions. The left arrowhead is rotated 180 degrees around its insertion point. If you use paper space scaling, AutoCAD computes the scale factor before applying it to the arrowhead size value.

   
 
> Squelch the SSM
   
 

Don’t want the Sheet Set Manager opening every time you open a drawing that’s associated with a sheet set? Set the SSMAUTOOPEN system variable to 0. Note that setting the variable to 1 is not sufficient to automatically open the Sheet Set Manager. You must also set the SSLOCATE system variable to 1 (one).

   
 
> Polyline Primer
   
 

Here’s a quick look at the various types of polylines you can create in AutoCAD. AutoCAD supports two different polyline entities: LWPOLYLINE and POLYLINE. Lightweight polylines (LWPOLYLINES) were introduced in Release 14. To add to the confusion, there are two types of POLYLINES: 2D and 3D.


Caption: AutoCAD’s polyline trio as they appear in the Properties palette.

A 3D POLYLINE has each vertex at a different elevation (though you can have a 3D POLYLINE with each vertex at the same elevation. If you check a polyline in the Properties palette, you will see one of the three different types. If you use the List command, you will see either POLYLINE or LWPOLYLINE.

The PLINETYPE system variable controls the type of polyline you draw. When PLINETYPE is set to 0 (zero), the Pline command creates 2D polylines. When it’s set to 1 or 2, the Pline command creates lightweight polylines. 3DPOLYLINES are created with the 3Dpoly command.

Note that PLINETYPE also governs how polylines in older drawings are converted when opened in newer releases. When it’s set to 0 or 1, old polylines are not converted. When it’s set to 2, old polylines are converted to lightweight polylines.

You can convert polylines to lightweight polylines, and vice versa, with the Convertpoly command.

   
 
> Data Extraction: Create Attributes
   
 

Before you can extract attribute data, you need to have attributes. Attributes are labels attached to blocks to convey information that can’t be shown visually in a drawing—for example, cost, manufacturer, part number, etc. Attributes can also be used to present text in a block. The most common instance of this use is the title block, in which attributes are used to display title block information such as drawing name, revision number, date, scale, and so on. Using attributes to show this information makes it easier to update  title blocks when information changes.

The first step is to draw the objects that will make up your block. If the block already exists, you’ll need to explode it before you can add your attributes. Once you’ve created your block geometry, start the Attdef command by typing Attdef at the command line or select it from the Draw / Block / Define Attributes menu.

The Attribute Definition dialog box will display.


Caption: Attribute Definition dialog box.

In Attribute section you enter the Tag, which is the attribute name. You will use tags when you extract attribute data. Think of them as the column headers in your data table. Note that the Tag cannot include spaces or exclamation points, and it will end up all uppercase.

Prompt is the text that will prompt you to enter a value for the attribute when you insert the block.

The Default window lets you enter a default value, handy if the attribute value is often the same. Your selections in the Mode area, discussed next, will affect how the default value is applied when you insert the block. You can specify a field as the default value by selecting the Field button at the right.


Caption: You can set a field to be the default attribute value.

The Mode options in the Attribute Definition dialog box affect the behavior of the attribute. You can select more than one mode unless they are mutually exclusive.

Invisible means that attribute values will not display in the drawing. Select for data you want to extract to a table or database, but not for text you want to display.

Constant sets a constant value for the attribute—the value you enter in the Default box in the Attribute section. The attribute will automatically assume this value, and you will not be prompted to enter a value.

Verify, when checked, will prompt you to confirm the preset default value when the block is inserted.

Preset automatically inserts the default value. If you want a different value, you can type it in. Note that ATTDIA system variable must be set to 1 for AutoCAD to display a prompt that lets you change the value.

Multiple Lines simply lets you attribute have more than one line of text. Click on the ellipsis to open a simplified mxtext editor in which you can format your attribute.

Note: When Multiple lines is checked, you can’t access the Default window. Instead, enter your default value by  clicking the ellipsis button that appears.

The Text Settings section is where you format the attribute text. You don’t need to bother with this if your attributes are for extraction. If you are setting up a title block, however, you’ll want to assign a text style and justification. If you make the attribute annotative, it will automatically scale to match the viewport scale. Otherwise, set a height that takes the scale factor into account.

Under Insertion Point, check Specify On-screen if you want to pick the insertion point when you insert the block. Uncheck it if you want to specify particular coordinates.

Once you define one attribute, the Align below Previous Attribution Definition check box becomes active. Check this if you want subsequent attributes to line up under the first one.

Lock Position locks the position of the attribute in relation to the block. When an attribute is not locked, it has a grip that allows you to move it independently. A locked attribute has no grip and moves when the block itself moves. Note: You must lock any attribute you want to include in the selection set of an action in a dynamic block.


Caption: Attribute creation results. The three at right are aligned.

Once your geometry and attribute definitions have been created, it’s time to create a block. We’ll discuss that process next time.

   
 
> Reuse Attributes
   
 

If you are creating multiple blocks that have similar attributes, you can copy the attributes you create for the first one and paste them near the geometry for subsequent blocks. Use the Properties palette to edit the attribute properties, as needed. You can also use the Ddedit command to change just the prompt, tag, and default value.


Caption: Copy and paste existing attributes when you are creating new blocks that will have similar ones.

   
 
   
 
 
>> SIGN UP for SolidWorks Express Newsletter and get the tips and tricks delivered into your inbox every two weeks!