The first step to learning how to create models in SolidWorks is to learn how to sketch. If you are coming from another history-based modeling program, many of your skills are transferable to SolidWorks. If you have never used CAD before, think of the sketch-feature relationship as creating a simplified 2D drawing that represents a portion of the part that you can make with some sort of process such as extruding or revolving.
So far in this book, you have looked mainly at concepts, settings, and setup, which are necessary but mundane. In this chapter, you'll begin to learn how to control parametric relationships in sketches. Then in later chapters, you'll begin to build models—simple at first, but gaining in complexity and always demonstrating new techniques and features that build your modeling vocabulary. Beyond this, you'll use the parts to create assemblies and drawings.
This chapter deals entirely with sketches in parts. However, you can apply many of the topics covered here to sketches in assemblies and drawings. Some related topics, such as layout sketches, have functionality that is exclusive to assemblies, and these topics will be covered in later chapters.
Before you can create a sketch, you must create a new part. To create a new part, you must follow these two simple steps:
Each new part will start with some basic items. The items you need to focus on about right now are the base planes and the origin (shown in Figure 3.1 in the FeatureManager of a brand new blank part made from a template). The planes can be named anything you want: X, Y, and Z; Front, Top, and Right; Larry, Moe, and Curly; or whatever. The naming scheme is determined by the person who saved the template.
Chapter 1, “Introducing SolidWorks,” has more detailed information on part templates and setting up SolidWorks to use existing templates. Several templates are included with the downloadable materials for this book.
Best practice for sketching in SolidWorks dictates that you should keep a few things in mind while creating and editing sketches:
SolidWorks allows several workflows you can use to create a sketch. To try to simplify it, think of it this way. You have the Sketch tool that opens a sketch, and you have tools such as Line, Arc, Circle, and so on. You also have planes and planar faces, straight line segments, and straight edges. To create a new sketch, you have to make two selections. One selection must be a tool that tells SolidWorks you want to make a sketch, such as the Sketch tool, or Line, Arc, Circle, etc. The second selection has to be where you want the sketch to be located, such as a plane, a planar face, or an edge on which a perpendicular plane will be created.
Here's one way to create a new sketch:
Here's another way:
Here is yet another way:
When you create a sketch, several tools become available, specifically all the sketch entities and tools. Open sketches and selection filters are two very common sources of frustration for new users. If you are having difficulty selecting items that you want because the software won't allow you to select specific items or because items are grayed out, you could have an open sketch. Several indicators will let you know when you are in Sketch mode:
While most users find the sketch grid annoying or distracting, some new users use it as a reminder that they are in Sketch mode. If you tend to forget or would like a visual cue, the sketch grid is a useful option. You can find the settings for displaying the grid in Sketch mode at Tools ➢ Options ➢ Document Properties ➢ Grid/Snap.
A sketch can be edited only when it is open (unless Instant 3D is off—I recommend you turn it off, except when you intend to use it). You can have only one sketch open at a time. SolidWorks uses many indicators to show the state of a sketch, including the Confirmation Corner and the taskbar.
Just as you can create sketches in several ways, you can also open existing sketches several ways:
SolidWorks sketching tools include many types of entities. Some you will use all the time, and others you may never use, even if you spend years working with the software. In this section, I offer tips for using each entity.
In the following section, I first identify the default buttons on the Sketch toolbar, followed by the rest of the entities that you can access by choosing Tools ➢ Customize ➢ Commands ➢ Sketch.
Take a minute and hover your cursor over the buttons on the Sketch toolbar. Let the tooltips come up. When a button has a triangle to the right of it, the triangle is a flyout button that provides access to additional tools. For example the Line flyout allows you to also select the centerline (also used as construction line) and the midpoint line. As shown in Figure 3.2.
The Sketch tool opens and closes sketches. You may notice that the name of the button changes depending on whether the sketch is open or closed. If you preselect a plane or planar face and then click the Sketch button, SolidWorks opens a new sketch on the plane or face. If you preselect a sketch before clicking the Sketch button, SolidWorks opens this sketch. If you preselect an edge or curve feature before clicking the Sketch button, SolidWorks automatically makes a plane perpendicular to the nearest end of the curve. If you do not use preselection and click the Sketch tool with nothing selected, SolidWorks prompts you to select a plane or planar face on which you want to put a new sketch, or an existing sketch to edit.
The 3D Sketch tool opens and closes 3D sketches with no preselection required. 3D Sketch is covered in more detail in Chapter 6, “Getting More from Your Sketches.”
The Smart Dimension tool can create all types of dimensions used in SolidWorks, such as horizontal, vertical, aligned, radial, diameter, angle, and arc length. You can create dimensions several ways, as shown in Figure 3.3. The dimensions shown were created by selecting the line itself and moving the cursor to different locations to get horizontal, vertical, or aligned dimensions
We will return to smart dimensions later in this chapter.
The Line tool creates straight lines using one of two methods. You should practice these two methods to determine which one you prefer. If you have used other CAD products, you probably already have a preference.
Alternative methods exist for drawing lines that include horizontal, vertical, angle, and infinite lines. The interface for these options appears in the PropertyManager, as shown in Figure 3.3.
When you select the Corner Rectangle tool, you can create a rectangle by clicking one corner and dragging to the diagonal corner. This action creates four lines with Horizontal and Vertical sketch relations, as appropriate. The Corner Rectangle is also available as a flyout icon with a Corner Rectangle, Center Rectangle, 3 Point Corner Rectangle (rectangle at an angle), 3 Point Center Rectangle, and Parallelogram. Figure 3.4 shows the flyout and flyout icons, as well as the PropertyManager for the Rectangle, which also enables you to switch types of rectangles easily. Remember that the shortcut shown on the right cycles through all of the rectangle options in the PropertyManager.
If you have activated any of the items under the Rectangle flyout, you can press the A key to cycle through the rest of the items. If you have already started sketching the rectangle but haven't yet finished, pressing the A key will cancel out of the current rectangle and cycle to the next type. This may be faster than actually using the flyout; just click the first icon and cycle to the one you want. The cursor icon changes to show which type of rectangle it will presently sketch.
Notice the Add Dimensions check box in the PropertyManager. Selecting this box while creating a rectangle causes the software to add dimensions aligned with the sides of the rectangle. This option is also available for lines, arcs, and circles.
Note that if you use this option in conjunction with the Enable On-Screen Numeric Input On Entity Creation setting, found at Tools ➢ Options ➢ Sketch, it makes creating sketch entities to the correct size immediately much easier.
The Parallelogram tool is used to draw a parallelogram (adjacent sides are not perpendicular, and opposite sides are parallel). Click one corner of the parallelogram, and then click the second and third corners. It works like the 3 Point Rectangle except that adjacent sides are not perpendicular.
The Circle tool creates a circle using one of two methods, which are available from either the flyout icon or the Circle PropertyManager:
When you select the Centerpoint Arc tool, you can create arc by clicking the center, dragging the radius, and then clicking and dragging the included angle of the arc. The first two steps are exactly like those for the Center-Radius circle.
The Tangent Arc tool creates an arc tangent to an existing sketch entity. Depending on how you move the cursor away from the end of the existing sketch entity, the arc can be tangent, reverse tangent, or perpendicular, as shown in Figure 3.6.
Another way to create a tangent arc (called auto-transitioning) is to start drawing a line from the end of another sketch entity, and while holding down the left mouse button, press the A key; or return the cursor to the starting point and drag it out again. This second method can be difficult to master, but it saves time compared to any of the techniques for switching sketch tools.
The 3 Point Arc tool creates an arc by first establishing endpoints and then establishing the included arc, as shown in Figure 3.7. Again, this tool also works using the Click+click or click-and-drag methods.
The Sketch Fillet tool creates a sketch fillet in two ways. Either you can select the endpoint where the sketch entities intersect, or you can select the lines themselves, selecting the portion that you want to keep. Figure 3.8 illustrates both techniques.
The Sketch Chamfer tool is on the same flyout as the Sketch Fillet by default. Sketch Chamfer does not have a list selection box the way that fillet does, and it does not use a preview like the fillet.
The Centerline tool follows the same methods as regular lines and is called a construction line in some cases. Other construction entities, such as construction circles, are not available directly, but you can create them by selecting the For Construction option in the PropertyManager for any entity.
The Spline tool draws a freeform curve. Splines may form either a single closed loop or an open loop. In either case, the spline is not allowed to cross itself. You can draw a spline by clicking each location where you want to add a control point. Figure 3.9 identifies the elements of a spline. The detail image shows the structure of a spline handle.
Splines are used mainly for freeform complex shapes in 2D and 3D sketches, although you can also use them for anything in which you would use other sketch elements. If you need more information on splines and complex shape modeling, refer to the SolidWorks Surfacing and Complex Shape Modeling Bible (Wiley, 2008).
The Point tool creates a sketch point. Aside from limited cases of lofting to a point or using a point as a constraint sketch in a Fill feature, sketch points are usually used for reference, in patterns, or for the location of the centerpoint of Hole Wizard features.
You can also use the sketch point as a virtual sharp. If two sketch entities do not actually intersect because of a fillet or chamfer, selecting the two entities and clicking the Point tool creates a point at the location where they would intersect if they were extended. This is useful for dimensioning to the sharp. Virtual sharp display is controlled by a Document Property setting.
The 3D Sketch Plane tool creates a plane in a 3D sketch. I discuss 3D sketches in more detail in Chapter 6. By sketching on planes within a 3D sketch, you get most of the benefits and usage of 2D sketches, and you do not have to deal with history between sketches. Before committing too much work to this course, you should look into some of the shortcomings of 3D planes. The planes are treated just like any other entity in the 3D sketch, which means you can assign sketch relations to them, but it also means that they can move around within the sketch the way sketch entities do.
The Add Relation tool displays a PropertyManager window that enables you to apply sketch relations. This interface appears to be obsolete, because it is easier to simply select sketch items and apply relations via the context toolbar or in the PropertyManager window that appears automatically when you select them; however, there are some subtle workflow-related reasons for using this tool.
Using the Add Relations dialog box has two advantages over simply selecting sketch entities and adding relations. When the Add Relation PropertyManager is active, you do not need to use the Ctrl key to select multiple entities. You also do not need to clear a selection before making a new selection for the next relation. These two reasons sound minor, but if you have a large number of sketch relations to apply, the workflow goes much more smoothly using this tool than the default method.
The Display/Delete Relations tool enables you to look through the relations in a sketch and sort them according to several categories. From this window, you can delete or suppress relations and replace entities in relations.
The Quick Snaps flyout enables you to quickly filter types of entities that sketch elements will snap to when you move or create them. To access the tools, click the drop-down arrow to the right of the toolbar button.
The Mirror Entities tool mirrors selected sketch entities about a single selected centerline and applies a Symmetric sketch relation. In addition, a Dynamic Mirror function is described later in this chapter.
The Convert Entities tool converts edges, curves, and sketch elements from other sketches into entities in the current sketch. When edges are not parallel to the sketch plane, the Convert Entities feature projects them into the sketch plane. Some elements may be impossible to convert—for example, a helix, which would produce a projection that overlaps itself. Sketch entities created using Convert Entities get an On-Edge sketch relation.
The Offset Entities command works like the Convert Entities feature, except that it offsets the sketch to one side or the other of the projection of the original edge, sketch, or curve, and Offset Entities doesn't have a selection box. Figure 3.10 shows the PropertyManager interface for this command.
The options available in the Offset Entities interface are as follows:
In addition to the bidirectional offset with capped ends, SolidWorks also has slot sketch entities for straight and curved slots, which are covered later in this chapter. Composite slots (made of a combination of straight and curved sections) still require the offset method.
The Trim tool is actually several functions rolled into one, including extending and deleting sketch entities. Figure 3.12 shows the PropertyManager interface for this function.
The Construction Geometry tool toggles between regular sketch entities and construction entities. Construction sketch entities are not used to create solid or surface faces directly; they are used only for reference—for example, revolve centerlines, extrude and pattern directions, and so forth. Be careful with the icon for this function, because it looks almost identical to the No Solve Move icon, especially as printed here in grayscale.
The Stretch sketch tool is intended for use in sketches where there are enough dimensions to make a particular change difficult by changing dimensions only. Stretch enables you to specify a change that will change several dimensions simultaneously. Figure 3.17 shows the sketch being stretched. Notice one of the lines is not selected at the top, so the top vertical line becomes angled and loses its vertical relation.
The Move, Rotate, Copy, and Scale sketch tools operate on selections within a sketch. You can use these tools with pre- or post-selection methods. These tools delete existing sketch relations when necessary to accomplish the task. For example, if you want to move a rectangle connected to the origin, the Move tool deletes the coincident relation between the sketch endpoint and the origin. If you want to rotate a rectangle, the Rotate tool deletes all the horizontal and vertical relations on the entities being rotated. This operation may result in a completely underdefined sketch. SolidWorks does not warn you that sketch relations are being deleted.
If you use the Scale tool on a fully defined sketch, SolidWorks scales the position of the selected entities, deleting sketch relations if necessary to do so, but no dimensions are scaled or deleted.
These sketch tools were originally put in the software to avoid some of the complexities and limitations of the Modify Sketch tool, which can also move, copy, rotate, and scale sketches. Figure 3.18 shows the simple interface for the Move Entities command. Select the entities to move in the upper box and the method to move them from the Parameters box.
The Select tool is usually used to turn off the previous command and return the cursor to its default state. It is not found on toolbars in the default interface.
The Grid/Snap tool is used to open the Grid/Snap section of Tools ➢ Options ➢ Document Properties.
The Polygon tool creates a regular n-sided polygon in the same way as a circle. Click the center and drag the radius. You need to set the number of sides in the PropertyManager before clicking in the graphics window.
An ellipse is created by clicking the center, dragging one axis, and then dragging the other axis.
A partial ellipse is created by clicking the center, dragging one axis, dragging the other axis, and then clicking and dragging the included angle of the partial ellipse. The Partial Ellipse feature works like the Centerpoint Arc command.
A parabola is created by clicking the location for the focus and then dragging the position of the apex. You then click and drag the included angle of the parabola. This is a rarely used sketch entity and is often difficult to control with sketch relations or dimensions.
A conic is a special curve that is used to create smooth shapes that are limited to convexity on one side. A spline can have a point of inflection, but a conic cannot. It is similar to a partial ellipse, but it has an additional point called a top vertex in the PropertyManager. To create a conic, place the two end points, then place the top vertex, and finally place the shoulder. (See Figure 3.19.) If you are familiar with systems that use a rho (ρ) value, you can specify the value in the PropertyManager.
The Spline On Surface tool is used in 3D sketches to draw a freeform spline on any 3D surface. The Spline On Surface feature can cross face boundaries as long as the faces are at least tangent (ideally curvature continuous) across the edge. Spline On Surface can be used to trim surfaces or create split lines.
The Sketch Text tool creates editable text in sketches using TrueType fonts installed in your Windows Fonts folder. Some fonts produce sketches that are unusable for solid features, due to violating sketch rules with overlapping or zero thickness. You need to be careful which fonts you select, but I have had success with a wide variety of fonts I have found on the Internet. Sketch Text may be dissolved into lines and arcs so that you can edit them manually. Dissolve is available on the RMB menu. Figure 3.20 points out the key elements of the Sketch Text interface.
For some machine scribing functions, you will want single line or stick fonts. In SolidWorks, the default for that functionality would be OLF SimpleSansOC.
The Intersection Curve tool creates sketch entities in 2D sketches, where the sketch plane intersects selected faces. In 3D sketches, the Intersection Curve sketch tool creates sketch entities where any types of selected faces intersect. This can be an extremely useful tool in many situations.
The Face Curves tool applies the underlying U-V isoparameter mesh to a selected face. It is most commonly used as an evaluation tool for complex surfaces, but you can also use it to create curves to rebuild faces. Accepting the results by clicking OK creates a separate 3D sketch for each spline (unless you have a 3D sketch open before clicking Face Curves, in which case you get a single 3D sketch with all of the curves). Figure 3.21 shows the original surface and the results of using face curves on a complex lofted surface.
The Extend tool extends a sketch entity up to its next intersection with another sketch entity. This is not to be confused with the Extend for surface entities. The Power Trim tool mentioned earlier can be used to extend if you hold down the Shift key while dragging the cursor over sketch entities to be extended.
The Split Entities tool splits a sketch entity into two segments, automatically adding appropriate sketch relations and automatically adding colinear, coradial, or tangent relations for lines, arcs, and splines. You can also delete it later to rejoin the entity back into a single segment. You should be aware that the rejoining works only if there is a colinear relation between line segments, a coradial relation between arcs, or a tangent or Equal Curvature relation between splines. If you split the entity and delete these relations, they cannot be rejoined. Closed-loop entities require at least two split points.
The Dynamic Mirror command can be used when you preselect a centerline and Dynamic Mirror is turned on. Any new sketch entity that you draw is automatically mirrored to the other side of the centerline. The ends of the mirror line have hatch marks on them to remind you that you have mirroring turned on. A word of caution: If a line is drawn normal to the centerline with the endpoint on the centerline, it will just be doubled in size.
The Segment tool either places equally spaced sketch points along an existing sketch entity or breaks the entity up into a number of equal length segments. It acts as a pattern along a curve. The resulting segment is editable, so you can delete or add points, and they will autospace dynamically. This is an excellent tool for the Hole Wizard or for Sketch Driven Patterns.
The Linear Sketch Pattern tool creates a one- or two-directional pattern of sketch entities. You can define spacing and angles.
The Circular Sketch Pattern tool creates a circular pattern of sketch entities.
The Make Path function is intended to help create machine-design motion in sketches, in particular, cam-type motion. Although it is helpful, you do not need to make a block of the cam first. You can then right-click the block and select Make Path. A tangent relation to a path enables a follower to roll around the entire perimeter.
The Modify Sketch tool is one of the few remaining dialog box interfaces in the software that doesn't use the PropertyManager. It enables you to move, rotate, and scale the sketch, as well as mirror about a horizontal or vertical axis or about both axes simultaneously. Figure 3.22 shows the interface, which consists of a dialog box, a special origin-like symbol, and a context-sensitive cursor.
Both the left and right mouse buttons have special functions, which change when the cursor is moved over the three knots on the special Modify Sketch origin. The RMB enables you to mirror or rotate the sketch, and the left mouse button (LMB) enables you to move the origin or move the sketch.
This function has some limitations when you use it with sketches that have external relations. Certain functions may be disabled or a warning message may appear, saying that you need to remove external relations to get a particular function to work correctly. It is best used for controlling the orientation of Derived Sketches that by default cannot have internal relations.
The No Solve Move option enables the moving of sketch entities without solving any relations in the sketch. If you select this option and you move an entity with relations that would otherwise not allow it to be dragged (such as a collinear relation), you are prompted with a choice to delete the existing relation and continue or copy the entity without the relation.
A sketch picture is a picture that is placed in the sketch, lies on the sketch plane, and is listed in the FeatureManager indented under the sketch as a child. The sketch picture may be suppressed independently from the rest of the sketch, and when the sketch is hidden, the picture is not visible. You can easily move, resize, and rotate sketch pictures, as well as apply a transparent background color to them. Sketch pictures are usually used for tracing over or as a planar decal without the need for rendering.
The Equation Driven Curve tool creates a sketch spline driven by either an explicit or a parametric equation, as shown in Figure 3.23. An explicit equation is in the form y = f(x), while a parametric equation uses multiple equations driven by a common parameter value of the form, such as
where t is a number in radians.
The result is a proportional spline in a sketch, not a curve feature as the name suggests. You can drag the spline itself, or its endpoints, in 2D or 3D, and SolidWorks calculates the new transformation. To reposition a sketch, use sketch relations and dimensions.
If you start an equation-driven curve in a 2D sketch, you get the form for a 2D curve equation. If you start in a 3D sketch, you get the form for a 3D curve. After these splines are created, you cannot remove the relation to the equation and manually edit the spline; they are tied to the equation until you delete the entire spline.
One way to get around this limitation would be to create an equation-driven curve in one sketch and then open another sketch and use Convert Entities to copy the spline, delete the On Edge relation, and use Simplify Spline to add control points to it. This is a technique commonly used with other types of curves; it does not enable you to update the overall size or shape of the spline through the equation, but you can manually adjust sections of a curve originally created from equations. Examples of where this might be useful would be a lead-in or lead-out on a cut thread, a special attachment loop in the middle of a spring, or a flare around the edge of a lens or reflector dish for mounting.
The Straight Slot and Curved Slot tools draw slots of a given width and length with full rounds on the ends. All the Slot sketch entities can be seen in the PropertyManager shown in Figure 3.24. If you need to draw a composite slot or a slot with multiple entities, you need to use the bidirectional sketch offset with capped ends mentioned earlier.
All dimensions in SolidWorks sketches can be created with a single tool, the Smart Dimension. Dimensions are half of what you can use to drive changes in sketches with precision, the other half being sketch relations.
The Smart Dimension tool can be used to create length, point to point, aligned, angular, radial, diameter, arc length dimensions, and even reference (nondriving) dimensions.
By default, SolidWorks installs with a setting called Instant2D activated. Instant2D is relatively new and has some advantages and disadvantages. One of the advantages is that it enables you to drag dimensions by the handle as shown in Figure 3.25. One disadvantage is that it disables the Modify box, shown in Figure 3.26.
SolidWorks sometimes forces you to use new functionality by activating it by default, instead of allowing you to decide. This is done in order for you to quickly discover new functionality. Then if you like the new functionality, you keep it; if not, you can turn it off. The downside can be a bit of initial confusion. I think in the case of Instant2D, they should allow users to turn it on if they want. The new setting adds ease-of-use at the expense of precision dimensions. If you wanted to drag type precision, you wouldn't have put a dimension on it. You can turn off Instant2D by deselecting the Instant2D tool on the Sketch CommandManager tab. The rest of the book will assume that this option is turned off.
When you place a dimension you just created, SolidWorks automatically puts you into the Modify box, which enables you to edit the dimension in several ways. You can disable this option by removing the check from the setting at Tools ➢ Options ➢ General ➢ Input Dimension Value. With that setting off, when you place the dimension, it will not display the Modify box.
You can change Smart Dimension values in several ways using the Modify box, shown in Figure 3.25. The most direct method is to key in a value such as 4.052. The software assumes document units unless you key in something specific. You can also key in an expression, even with mixed units, such as 8.5 mm/2+.125 or 25.4+.625 in. You can also key in negative dimensions, which function the same as the Change Dimension Direction button in the Modify box.
To the right of the drop-down arrow is a pair of up and down spin arrows that enable you to change the value in the Modify box by a set increment amount. You set the increment in Tools ➢ Options ➢ System Options ➢ Spin Box Increments. You can also store multiple increment values within the Increment Value icon on the Modify box.
The final way to change the value in the Modify box is by using the wheel underneath the value field. The wheel uses the default increment value. Pressing Ctrl while using the wheel multiplies the increment by 10, and pressing Alt while using the wheel divides the increment by 10. Once you have created the dimension and determined that you do not need the Modify box again, you can click on an existing dimension, and the Modify box will reappear with the value of the new selected dimension. Sketch dimensions can be displayed in dual units (for example, inch and millimeter), using the Dual Dimension panel of the Dimension PropertyManager. Here's a look at the Dimension Properties interface (Figure 3.27).
The Dimensions/Relations toolbar has a few tools that you have already seen; but as the name suggests, it also contains tools that help you to either create or investigate dimensions and sketch relations. Figure 3.29 shows the default toolbar; but in the following pages, you'll look at all the tools available at Tools ➢ Customize ➢ Commands ➢ Dimensions/Relations. These tools are available on the Dimensions/Relations toolbar:
A chamfer dimension is another type of dimension that is only driven and only applied in drawing documents. It works by first selecting the chamfered edge and then selecting the angle reference edge.
However, there is a Sketch Chamfer tool that adds dimensions to the chamfer in the sketch when the chamfer is created.
The Automatic Relations toggle enables and disables the automatic creation of sketch relations while sketching. This toggle is also available through Tools ➢ Sketch Settings ➢ Automatic Relations. Automatic relations help you to create intelligent sketches with less manual intervention. Although using them takes a little practice, it is well worth the effort.
While sketching, symbols appear on the cursor to show that a relation will automatically be created. These symbols have a yellow background and apply horizontal, vertical, coincident, tangent, parallel, and perpendicular relations. Figure 3.32 shows two situations where automatic relations are applied: a horizontal and a tangent relation.
Fully Define Sketch is a tool that can add relations and dimensions to lock down any open degrees of freedom in a sketch when the option for All Entitities In Sketch is enabled. This sounds like a better idea than it is. Although you can control how the sketch and even portions of the sketch are defined, this tool is used mainly to overcome a fear of underdefined sketches. Sketches that are just randomly fully defined are worse to work with than undefined sketches. You are better off to fully define a sketch manually. Although it may seem odd for someone in my position to say this, you are better off with a fully undefined sketch than a large sketch that is fully defined with random dimensions in it. (See Figure 3.33.) Troubleshooting something that goes wrong with a very large sketch can take a lot of time, while a fully undefined sketch can never go wrong unless you move it with the cursor. If your sketch is large, consider breaking it up in multiple features. If it has a lot of small entities, try using sketch relations, which are more flexible than dimensions.
The Add Relations tool is for those times when you have to manually add relations to sketch elements. It is generally better to use the Automatic Sketch Relations tool; but when you're editing, this is not always possible. (See Figure 3.34.) Select the sketch entity and pick the relation.
Automatic Relations is a setting that is turned on by default. When you are sketching, it displays relations that are suggested by the sketch (such as tangent or coincident) as small yellow icons attached to the cursor (inferences are separate and are covered in the next section of this chapter) and adds those relations to the current sketch entity. Some relations displayed as small icons on the cursor do not have the yellow background, and they are not added as relations to the sketch. Figure 3.32 shows examples of automatic relations being added as sketch entities are created.
The Scan Equal tool searches an active drawing sketch for entities of equal length or radius. It will then set Equal sketch relations for those entities.
Again, the Isolate Changed Dimensions tool is used only in drawings. This identifies any dimensions that have changed since the drawing was last saved. This will be covered in a later chapter.
Inferencing refers to the blue dotted lines that display in Sketch mode when the cursor aligns with endpoints, centerpoints, or the origin. Inferencing creates sketch relations only when the symbol shown on the sketch cursor has a yellow background.
When the cursor displays a small sketch-relation symbol with a yellow background, an automatic relation will be applied. If the relation symbol has a white background, the relation is inferenced, but not applied, as an actual sketch relation. The symbols with the blue background are relations that have been applied to existing sketch entities. Be aware that differences in versions and differences in color schemes can cause these colors to be different on your system. (The color may be green in SolidWorks 2008 or later. The symbols look the same, regardless of background color.)
Table 3.1 shows the symbols for the various inferences, automatic relation cursors, and applied sketch relations. The difference among the three types is simply the background colors: white, yellow, and blue, respectively.
TABLE 3.1: Symbols and Their Meanings
SYMBOL | MEANING | SYMBOL | MEANING | SYMBOL | MEANING |
Along X | Along Y | Along Z | |||
At Intersection of Two Faces | Coincident | Collinear | |||
Concentric | Coradial | Equal | |||
Equal Curvature | Fix | Horizontal | |||
Intersection | Midpoint | Offset | |||
On Edge | On Surface | Parallel | |||
Perpendicular | Pierce | Symmetric | |||
Tangent | Vertical | Display/Delete Relations | |||
Fully Define Sketch |
In addition to sketch tools, sketch settings also control sketches. Sketch settings are found in two locations. The first location is at Tools ➢ Options ➢ Sketch. In this chapter, I cover the settings found at the second location, Tools ➢ Sketch Settings, shown in Figure 3.35. These settings mainly affect sketch relations.
Sketch blocks are collections of sketch entities that can be treated as a single entity and can be reused within a single document or shared between documents. You can use sketch blocks in parts, assemblies, and drawings. To create a sketch block, select a group of sketch entities and click the Make Block button on the Blocks toolbar, or select Tools ➢ Blocks ➢ Make. Preselection is not necessary; you also can select the entities after you invoke the command.
Blocks may be internal to a particular document, or they may be saved as an external file. The externally saved block may be linked to each document where it is used so that if the block is changed, it updates in the documents where it is used.
You can use blocks in conjunction with the Make Path function mentioned earlier in this chapter to create functional layouts for mechanisms. You also can use blocks in an assembly to build parts in context.
Refer to Chapter 16, “Working with Assembly Sketches and Layouts,” for a more in-depth examination of the assemblies aspects of blocks in SolidWorks and to Chapter 26, “Using Annotations and Symbols,” for the use of blocks in 2D drawings.
These tools are available on the Blocks toolbar:
*.sldblk
extension) or saves the selected sketch as a block.Reference geometry in SolidWorks is used to help establish locations for geometry that you can't physically touch, such as planes, axes, coordinate systems, and points. (See Figure 3.36.) You often use reference geometry to establish a characteristic of the finished solid model before the model is created or to include an item that you may want to mate another part to in an assembly later. Mate references are also classified as reference geometry and are dealt with in the assembly chapters.
The importance of working with reference geometry becomes obvious in situations where you need to create geometry that doesn't line up with the standard planes. You might use planes to represent faces and axes to represent the centers of holes. Axes are often used to establish a direction, such as in plastic parts where, because of draft, you never truly have any vertical edges; an axis is frequently used to establish the direction of pull for the mold.
Coordinate systems come in handy, especially when translating a part from one system to another for the purpose of machining or some type of analysis. SolidWorks users usually model in such a way that the modeling work is made simpler by the choice of how the part origin is positioned relative to features of the part; however, rapid prototyping, machining, mold building, and sheet metal manufacturing applications may have different requirements. As a part modeler, you cannot account for the needs of all downstream applications with your initial choice of origin placement, but you can always create a reference coordinate system for those downstream applications to use. Coordinate systems are fantastic as input for mates (especially for defining smart mates). They have the same functionality as origins, offering the option to define the location and the orientation with only one mate.
Planes are the most commonly used type of reference geometry because they are used for sketching and cutting, as extrude end conditions, and more. The Plane PropertyManager is shown in Figure 3.37. You start by selecting model items (faces, edges, points, vertices, or other sketch or reference geometry) that you want to have some relationship to the new plane. The new plane uses constraints like sketch relations from the selected references. For example, in Figure 3.37, the new plane is tangent to the selected First Reference cylindrical face and at an angle to the selected Second Reference of a plane.
The good news about this method is that there are a lot more options for creating planes than in the previous method; the bad news is that the options are not all spelled out anywhere. You have to make a selection before it shows you the available constraints. You may need to experiment with this interface to see what works best for the type of modeling you do.
One of the options in the Plane PropertyManager is Flip Normal. This option has little application until you start getting into heavy parametric editing. Keep the existence of this option in the back of your head, because you will someday run into a situation where you make a change and a sketch or feature flips in an unexpected way. That will be the time to use this option.
A newer function of the Plane feature is that it will allow you to make a plane parallel to the display at a selected point. This is a somewhat hidden functionality. To enable it, you have to start the Plane command; and select a point, origin, or vertex; and then click the Parallel To Screen option.
You can use axes to create pivot points in a part where you do not have any hole-type geometry for mating with other parts. You can also use them as a direction of pull for plastic parts or molds. Axes are frequently used to establish direction for rotation, draft, or a number of other things. Figure 3.38 shows that the first three features in a plastic part are axes established from the standard planes.
Consider using axes set up in this way as standard features in your template files (X-, Y-, and Z-direction axes). They can be effective in assemblies for moving parts in orthogonal directions and in parts for pattern or draft directions.
Coordinate systems in SolidWorks are primarily used for import and export, but they also can be used for mates, mass properties, and other purposes. Coordinate systems are usually positioned by selecting a point or a set of edges to determine direction. Figure 3.39 shows the PropertyManager for assigning a coordinate system, along with the Export Options dialog box, which you can access from the Save As dialog box when the Files of Type dropdown is set to an export format.
To use the coordinate system when saving as a translated file type such as IGES or Parasolid, click the Options button (in the Save As dialog box, after setting the translation file type). At the bottom of the Export Options dialog box, a selection box for the Output coordinate system appears.
To use the coordinate system with mass properties, choose Tools ➢ Evaluate ➢ Mass Properties from the menu, and then select the Output coordinate system, as shown in Figure 3.40.
The Point reference geometry feature is infrequently used; however, in some situations, nothing else does the job quite as well. This is not the same as a sketch point and does not require a sketch to be open. It is just a reference point that you can place in space. Figure 3.41 shows the PropertyManager for the Point reference geometry feature. An excellent use of this capability is to mark the center of a face.
The reference point and the sketch point are somewhat different in that you can use sketch points in 2D or 3D sketches, and they can be dragged or driven by dimensions and sketch relations.
Sketching with the touch interface is limited to hardware specifically developed for that purpose. You can use small Wacom tablets for the touch input, but I'm referring to large touch monitors in this case. In some cases, the touch display is able to distinguish between the use of a pen (stylus) for input and your finger. Typically, fingers are used for manipulating the view, rotation, and zoom. The pen is used for tasks that require more precision, such as selecting interface elements and sketching.
You can find special settings for Touch interface in Tools ➢ Options ➢ Touch, as shown in Figure 3.42.
Beyond the settings, SolidWorks also makes available a Sketch Ink toolbar specifically for use with the pen. This is automatically available on the CommandManager of a touch-enabled device. The Sketch Ink toolbar is shown in Figure 3.43.
The Pen tool enables you to change color and width of what is shown on the screen. If you have Auto Sketch Entities turned on, it will take your pen sketch and convert it into lines or arcs, and add an entry called Pen Sketch under the regular sketch feature in the FeatureManager. If Auto Sketch Entities is not turned on, then you will get on the screen whatever squiggle you entered with your pen. The Pen Sketch and squiggle are shown in Figure 3.44.
This tutorial makes sure that you get to know all the major functions in SolidWorks sketches. Almost every part that you build will start with a sketch, so this is a skill worth mastering. Follow these steps to learn about sketch relations:
D:\Library\BibleTemplates
. You can put it where you like, but I recommend a nonsystem drive in a location where it is unlikely to be overwritten or lost.Sketch Relations Tutorial1.sldprt
. Close the part.Sometimes I am amazed at the things that can be done in SolidWorks, even with fairly simple tools. This is one of those times. If you design machines, this tutorial has some extra meaning for you. Blocks and Belts are a valuable toolset for various situations. Follow these steps to learn about using Blocks and Belts.
Blocks and Belts Tutorial.sldprt
. Exit the part.This tutorial steps you through creating reference geometry on an existing part in preparation for locating 3D features.
Chapter 3 Reference Geometry - start.sldprt
.You can tell if any relations have been applied if you go to the View ➢ Hide/Show menu and activate Sketch Relations. Make sure the centerpoint has a coincident relation and that none of the corners has any relations.
You may have to adjust the direction of the extrude using the icon with the arrows just below the Direction1 heading in the Boss-Extrude PropertyManager.