SolidWorks Tech Tips – Sketching

Don’t Double-Click to Select a Sketch Plane

If you double-click on a plane it will be deselected, although the plane will stay highlighted. If you have not properly selected a sketch plane, SolidWorks will not begin sketching when you click the Insert Sketch icon. As a windows-native system, Solidworks closely follows the “Object-then-Action” workflow, so pre-selection of geometry is key to allowing the User Interface to anticipate what you want to do next.

On a related note, we recommend that you do not use the INSERT – SKETCH icon for editing an existing sketch, but instead use it only for creating new sketches. Although the documentation suggests that this icon can both Create and Edit, the edit mode will only work if you have carefully pre-selected the desired sketch to edit. It is common for novice users to forget the pre-selection, and thus they end up working on a new sketch on the same plane, but are ‘insulated’ from the lines they had hoped to edit. Since Solidworks 2008 now offers context-sensitive pop-ups, including the EDIT SKETCH icon, on the selection of any sketch entity,, the old method of editing by re-selecting the INSERT SKETCH icon is actually extra clicks and should be disregarded.

Avoiding Accidental References

The Solidworks sketcher saves time and assists the new user by automatically capturing many different relations in a sketch automatically. However, as a user gains experience, and starts to tackle larger, more complex sketches, he or she finds that the sketcher might add un-intended relations. This usually happens when a sketched end-point lies in close proximity to several other lines. This makes it hard to control the cursor finely enough that you can distinguish the difference between a Point-snap, a Horizontal, a Perpendicular, or perhaps a nearby Midpoint relation. Here are some general hints about how to avoid getting the ‘wrong’ relations.

1. Zoom In. If you are squinting, then you are not using Pan and Zoom effectively. “It is hard to assemble a watch, from across the room”. SolidWorks snaps to and selects points/vertices first, then lines/edges, then faces. The further out your zoom is, the more likely you will only be able to snap/select points and vertices.

2. Exaggerate. If a sketch line is to be 3 degrees off the vertical, sketch it at 30 degrees; you can easily correct the parametric dimension later. If a segment is to be .062″ long, make it 1/2″ long, and dimension to the correct size later. While it is over-sized, however, it will be far easier to draw the rest of the profile without getting false Endpoint or Midpoint snaps.

3. Trim instead of Drag. For example, if you want to vertical line attached to an edge, but you keep getting nearby Endpoint, Midpoint, or Perpendicular relations instead, draw the line grossly over-sized, so that the 2nd end is nowhere near the rest of the model. This will avoid getting any relations except the desired Vertical. Then use the Trim tool to remove the excess. (Trimming a line to another automatically creates a Coincident relation).

4. Hold down the Ctrl key while sketching. If you hold down the Ctrl key while you’re in the middle of drawing a line or arc or other sketch entity, this will temporarily disable all relation inferencing and snapping. You can then add the relationships manually.

How to Precisely Position an Un-Constrained Sketch

Sometimes a user does not wish to apply constaints and dimensions needed to fully shape and size a sketch. This could be because the data is imported from another CAD system, or it may be free-form, stylistic data (splines and such). However, it can be hard to align and locate the sketch precisely on the model, because each new constraint tugs the sketch out of shape instead of moving it. There are three good ways to accomplish this, depending on user taste, and also upon how much parametrization of the sketch you plan to eventually apply.
First, the easiest (read: lazy) way is to group-select all the lines, and choose TOOLS – BLOCKS – MAKE BLOCK. The lines are now all ‘frozen’ relative to each other, and can now only translate or rotate as a group. You may now apply sketch relations to the entire block to position it, and when finished, you may then EXPLODE the block to restore individual control to each line.

The second approach also requires that you first pre-select all the lines in the sketch. Then use the icon found under TOOLS – SKETCH TOOLS – MOVE, (you will also see the related tools ROTATE, SCALE, and COPY). These commands will allow you to position the selected lines very precisely, relative to a FROM and TO selection points, or by inputting jog distances or angles, and they result in no new parametric relations.

A third slick solution is to use Derived Sketch. A derived sketch is an associative copy of an existing sketch. It can only be positioned — it’s size and shape is always exactly the same as the original. This behavior is ideal for problems where you want to reference the original sketch several times, or where you prefer to leave the original data as a master sketch in its original location. One disadvantage of this approach is that it is all-or-nothing, you can only DERIVE a sketch that includes every line in the entire sketch, and the other two methods listed above will also work on a few selected lines.

To DERIVE a sketch, first you must exit the sketch you were working on. Now use Ctrl-select or Shift-select to choose the sketch you just exited, and also select the plane that the new sketch should be built on. With these two items pre-selected, you will be able to Insert – Derived Sketch. You will now be editing a second sketch, an associative copy of the first. You may align and position this sketch, without causing any deformation. You can now Hide the original sketch. To make any shape changes later, edit the original sketch, an the derived one will update with those changes.
Optional: You may wish to sever the link between the two sketches, and delete the first sketch. To do this, right-click the derived sketch in the FeatureManager, and select Underive. Then you can delete the earlier sketch.

Dragging Features and Sketches in 2008 with “Instant 3D”

What was old is new again! A function added to SolidWorks 99 gave the ability to edit a sketch without having to invoke the Edit Sketch command. This function is called Move/Size Features. It allowed you to reach into a sketch from the 3D model environment and drag any unconstrained sketch geometry dynamically. The function was NOT available on your Features toolbar by default, so you had to add a special icon to your toolbar. Right up until Solidworks 2007, you would have to use Tools – Customize – Commands – Features, then drag and drop the icon for Move/Size Features onto your Feature Toolbar.

The icon looked like two green dots with arrows sticking out, as shown here: Green DotThis function was fun, powerful, and a little bit dangerous in terms of what it could do to some of your relations internal the sketch, (such as if you rotated the sketch plane away from the default Horizontal and Vertical directions), and so it went largely unnoticed by all but the most expert of Solidworks users.

In Solidworks 2008, this function comes out from the shadows! The programmers re-wrote the command thoroughly to make it even more powerful, and remove the hazards that it originally presented to the novice user, and the command is now called Instant3D. Instant 3D icon The icon for this command is now found on the default Solidworks toolbars and Command Manager, and in the templates of a new installation, it will be turned ON by default. This icon is what allows you to drag on the face of any solid, and pull it in any direction not yet constrained within the sketch. If a feature does have parametric dimensions, Instant3D model will display those dimensions with a blue drag-ball at the free end of the dimension, allowing you to re-size the dimension with the aid of a ruler scale. Features not yet located parametrically can also be re-positioned within their sketch planes via dragging. If long-time users of Solidworks are a little un-nerved by the ease with which features can be re-positioned and re-sized, and wish to return to the version 2007 (and prior) edit mode where a double-click is required to edit a parameter, they need only to turn this icon OFF.

Relations for Points in a Sketch: Coincident vs. Merge

The Add Relations dialog permits two different relations for points in a sketch: Merge or Coincident. Fortunately, users need never worry about choosing one or the other — only one of these relations is ever available at a time, and the system automatically hides the other, based upon the pre-selected geometry. What is the difference between these?

Coincident applies to any point belonging to the current sketch, and a point that is referenced outside the current sketch (a model vertex, endpoint of a different sketch, etc.). Even though the two points will now co-exist in space, they retain their individual identities.

Merge applies between two endpoints or centerpoints that both belong to the current sketch. In this case, the system ‘dissolves’ one of the endpoints, and the other endpoint becomes common to both adjacent lines or arcs. This simplification greatly streamlines the management of other relations that the user may wish to apply at this point.

Why can’t I create a Sketch Point at the Same Location as an Existing Point?

When a line’s endpoint is drawn sufficiently close to another line in the same sketch – it performs a Merge (see above). When the endpoint is drawn within snapping distance of a model vertex, it captures a Coincident relation. The only exception is in the placement of a Sketch Point [Tools – Sketch Entities – Point], which you cannot place on the endpoint of a line or arc. This is prevented because the Merge relation would cause the Sketch Point to dissolve into nothing. However, for the Hole Wizard and Sketch-Driven Pattern and other situations with laying out construction sketches, the user sometimes wishes to put a Sketch Point on top of an existing endpoint.

There are actually two easy ways to place sketch points on the end of some other sketch entity:

1) Although you cannot snap a Point onto the end of a Line, you can perform the reverse. Sketch the Point first, then snap the Line over it.

2) Alternately, you can place the Sketch Point graphically near the desired endpoint, and then create a Coincident relation.

How can I Locate the Focus of a Sketched Ellipse?

The SolidWorks sketch environment lets us easily create an ellipse with a simple tool. This ellipse has a number of reference points on it to help us to locate and dimension it. Figure 1 shows what we get from SolidWorks: four vertices, and a center point. In some optical designs and other applications, the focal points of the ellipse are needed. We can add some geometry and relations to automatically locate the foci of the ellipse.

SolidWorks Ellipse Figure 1

The procedure requires two construction lines sketched as follows:SolidWorks Ellipse Figure 2

1) Sketch the construction line AF from one of the vertices of the major axis to the center of the ellipse. This line represents half of the longer diameter.

2) Sketch the second line DE with one endpoint on the vertex of the minor axis and the other endpoint coincident to the line AF drawn in step 1.

3) Set these two construction lines equal by adding a geometric relation

4) The free endpoint E of the second line is a focus of the ellipse!

5) Optionally, add a second point G and a construction line DF. Add a symmetric relationship between points E and G about line DF.SolidWorks Ellipse Figure 3

Why is this true? Well, recall some high school analytic geometry: an ellipse is a collection of points for which the sum of the distances from two specific points (the foci) is a constant. In other words, if I travel from focus E, to any point on the ellipse, and then to focus G, the distance traveled is the same no matter what point on the ellipse I travel to. This distance is equal to the major diameter. The two equal construction lines each represent half of that constant distance.

Detecting invalid sketches

Once a sketch is created for use with a feature, users can use Tools – Sketch Tools – Check Sketch For Feature, to determine if there are any flaws that would prevent use. However, one type of flaw is displayed graphically on-the-fly and so is easier to detect.

Creation of a three-way junction of lines may eventually yield the error message, “… an endpoint is wrongly shared by multiple entities”. If you have a flaw of this type, you will notice that at least one of your sketch lines changes thickness, appearing thinner than usual sketch entities. The thin line is adjacent to the problem endpoint, and if you trim away the offending line(s), it will change back to normal thickness.

How can I measure the overall length of a 3D Sketch?

If you open the Measure Tool, and then identify the sketch, you will have to manually select on each sketch segment comprising the total length. For reasonably complex sketches, a much faster method is as follows:

Edit the 3D sketch. Activate your Selection Filter, and set it to only select Sketch Segments. (This is done to avoid getting any sketch points, which have zero length). Now group-select the entire sketch by dragging a “bounding box” around all elements. [Or you could instead right-click on one sketch element and choose Select Chain.] Now that the desired elements are pre-selected, open your Measure Tool, and the overall length is already computed. (Source: Per Hoel)

How to re-position sketch data imported from a drawing (Method 1):

When 2D lines are imported from a drawing (via Insert – Sketch from Drawing, Insert – DXF/DWG, or a copy/paste technique) the sketch lines are almost always shifted to the right and above the origin of the desired sketch plane. This happens because the (0,0) origin point of a drawing is typically the lower-left corner of the drawing sheet. Trying to window-select and then drag and drop the imported sketch geometry to the desired location often causes just one or two entities to drag and resolve instead of moving the entire selection.

Instead, perform a window-select to group the entire set of sketch lines, and then use a Ctrl-Drag to re-locate the entities. As is usual, a Ctrl-drag method creates a copy of the entities. The reason for using a Ctrl-drag (instead of a Shift-drag, which would not leave a duplicate behind) is that the Shift-drag action does not allow you to snap the entities to another object like the origin.

To avoid creating a copy of the entities, once you’ve Ctrl-dragged them to get them moving, you can let go of the Ctrl key (but keep holding your mouse button). The software will now behave similar to a Shift-drag, moving instead of copying, and yet you will still have good snap inferencing.

How to re-position sketch data imported from a drawing (Method 2):

In a complex sketch, the technique described above might still not be satisfactory. There is another way to accomplish the desired end result that takes a few more steps to perform but does not rely so much on precise mouse technique.

SolidWorks 2001Plus added some 2D to 3D tools to help in situations like this. If you want to relocate the entirety of the sketch, just select a sketch point that you would like to be aligned to the origin and choose Tools – Sketch Tools – Align – Sketch. This command is also located in your 2D to 3D toolbar. This moves the entire sketch contents so the selected point lines up with the model origin. Or, if you have lines from other adjacent sketches you wish to line up with, you must pre-select first a POINT in the current sketch, then a LINE in the target position, and the Align Sketch icon will slide the sketch point up to that datum.

How to re-position sketch data imported from a drawing (Method 3, 4, and 5):
Are you kidding? Five methods for this? Yes indeed… this task is common enough for users who are migrating 2D data into Solidworks that a host of tools have evolved to satisfy every user style and level of sketching faculty. The last 3 methods are more general to sketching in a 3D part file, and are listed under a different page.  To see these, go to Tech Tips – Sketch Constraints

CT | MA | ME | NH | RI | VT
800.424.2255