Chapter 1. Introducing SolidWorks

SolidWorks is a feature-based, history-based, associative, parametric 3D CAD program. That seems like many words, but they all have a specific meaning. In SolidWorks, you build 3D parts from a series of simple 2D sketches and features such as extrude, revolve, fillets, and holes, among others. You can then create 2D drawings from the 3D parts and assemblies.

This chapter will familiarize you with some of the tools available to make the transition to SolidWorks, and with some of the basic facts and concepts that you need to know to get the most out of the software.

If you want to start using the software without learning about how or why it works, you can skip directly to Chapter 4 for sketches or Chapter 5 to start making parts, assemblies, and drawings. Of course, I recommend you get a bit of background and some foundation first.

Installing SolidWorks for the First Time

I'm assuming you are installing SolidWorks for the first time on your computer. Detailed instructions for more involved types of installation and uninstallation are beyond the scope of this book.

Some of you will have SolidWorks installed for you by people in your company or by SolidWorks reseller experts, and some of you will do the installation on your own. Regardless, it is best to make sure that your hardware and software are compatible with the SolidWorks system requirements, available on the SolidWorks Web site at www.solidworks.com/sw/support/SystemRequirements.html.

In addition, whether you are installing SolidWorks or someone else is installing it for you, you should consider purchasing a copy of the SolidWorks Administration Bible (Wiley, 2010), which contains all the information you need on installing, configuring, and troubleshooting SolidWorks.

Alternatively, you might not want to get that involved at first. You can install the software with all defaults just to get started, using it as a practice installation, especially if you intend to learn as much as you can about it, and then come back and do a more thorough job of implementing it. If this is the case, just put the DVD in the drive and accept all the defaults. In the Summary page, shown in Figure 1.1, you can choose to change the disk installation location and choose which products are installed.

Changing installation settings on the Summary install page

Figure 1.1. Changing installation settings on the Summary install page

When installing any software, it is best practice to exit out of all other software first, make sure you have enough hard drive space and otherwise meet the system requirements outlined on the SolidWorks System Requirements Web page, and reboot when the installation is complete.

Starting SolidWorks for the First Time

SolidWorks has many tools for beginning users that are available when the software is installed. A default installation presents you with several options when the software is started the first time. Following is a description of these options, and how you can most benefit from them.

If you plan to go to formal SolidWorks reseller-based training classes, it is a very good idea to go through some of the tutorials mentioned in this section first; this way you are prepared to ask educated questions and have a leg up on the rest of the class. You will get more out of the training with the instructor if you have seen the material once before.

SolidWorks License Agreement

It is useful to be familiar with what this document says, but the agreement does not have any bearing on learning how to use the software other than the fact that it allows for a Home Use License. Many users find this part of the license agreement helpful. The primary user of the license at work is also allowed to use the license at home or on a portable computer. This is often a good option for learning techniques, doing additional practice, or completing the design of that deck or soapbox derby car. If your employer uses floating licenses, the rules are somewhat different. Contact your reseller for details.

Welcome to SolidWorks

The Welcome to SolidWorks screen, shown in Figure 1.2, is the next thing to greet you. This helps you establish what type of tools you would like to see in the interface and gives you some help options. You may not get the chance to see this dialog box if someone else, such as an IT person, has installed and done an initial test on your software for you.

The Welcome to SolidWorks screen

Figure 1.2. The Welcome to SolidWorks screen

Quick Tips

Quick Tips enables balloons with tips to help you get started with several tasks. For example, the first Quick Tip you see may be the one shown in Figure 1.3. When you begin to create your first document in SolidWorks, a Quick Tip helps guide you on your way.

The SolidWorks Document Quick Tip

Figure 1.3. The SolidWorks Document Quick Tip

As you continue working, Quick Tips displays a box, shown in Figure 1.4, at the lower-right corner of the Graphics Window that offers context-sensitive help messages. As you work with the software, these messages change to remain relevant to what you are doing.

The main Quick Tip window

Figure 1.4. The main Quick Tip window

You can turn Quick Tips on or off by clicking the small square on the Status Bar in the lower-right corner, as shown in Figure 1.5. You can turn the Status Bar on or off in the View menu; however, the Status Bar serves many useful purposes for all users, so I recommend you leave it selected. You can also turn Quick Tips off in the Help menu by deselecting Quick Tips. The on/off setting is document-type sensitive, so if you deselected Quick Tips off in part mode, you will need to do it again for assemblies and drawings, as well. Quick Tips are a great way to get going or to get a little refresher if it has been a while since you last saw the software.

Turning Quick Tips on or off

Figure 1.5. Turning Quick Tips on or off

Turning Quick Tips on or off

The first time you create a document, SolidWorks prompts you to select units for your default templates, as shown in Figure 1.6. This is an important step, although you can make changes later if needed. SolidWorks stores most of the document-specific settings in document templates, which you can set up with different settings for each type of document — parts, assemblies, and drawings. More information on part and assembly templates can be found later in this chapter. Drawing Templates are described in detail in Chapter 20.

The default template units selection

Figure 1.6. The default template units selection

One of the most common questions new users ask is how they can change the default so that new documents come up with a certain type of units every time. Units in new documents are set by templates. To create a part with inch units, use a template with inch units. You can have as many templates as you want, and can have a different template for each type of units you might use.

ISO (International Organization for Standardization) and ANSI (American National Standards Institute) standards use different methods of projecting views, and these standards are controlled by templates. ISO is typically a European standard and uses First angle Projection, while ANSI is an American standard and uses Third angle Projection. The standard projection used throughout this book is Third angle.

The difference between Third and First angle projections can cause parts to be manufactured incorrectly if those reading the prints (or making the prints) do not catch the difference or see that there is some discrepancy. Figure 1.7 demonstrates the difference between the two projection types. Make sure to get the option correct. If someone else, such a computer specialist who is not familiar with mechanical drafting standards, initially sets up SolidWorks on your computer, you will want to verify that the default templates are correct.

Differences between First (left) and Third (right) angle projections

Figure 1.7. Differences between First (left) and Third (right) angle projections

Another setting affecting projections that you will want to check can be accessed by choosing Tools

Differences between First (left) and Third (right) angle projections

SolidWorks documentation

Several types of documentation are available to help SolidWorks learners along their path. A great place to start is the SolidWorks Resources tab in the Task Pane (on the right side of the screen). This is the first tab in the list and has the Home icon. The Getting Started option in the SolidWorks Resources tab is shown in Figure 1.8.

The Getting Started option on the SolidWorks Resources tab of the Task Manager

Figure 1.8. The Getting Started option on the SolidWorks Resources tab of the Task Manager

The terminology SolidWorks has used over the past several releases has changed and may seem confusing to some of you. In 2007, SolidWorks changed the name Online User's Guide to SolidWorks Help. This is a help file on the local computer; it is not online in that it is not on the Internet. For several years after software companies eliminated hard copy documentation, it was popular to call electronic documentation "online" even though the documentation was only on the local computer. In 2010, the SolidWorks Web Help option was added to the Help menu. This option is online in that it is on the Internet.

Tutorials

When you select the Online Tutorials option in the Help menu, you get a list of tutorials on subjects from sheet metal to macros in parts, assemblies, and drawings. These tutorials are certainly worth your time, and will build your skills and knowledge of basic functionality. This SolidWorks Bible distinguishes itself from the tutorials by going into far more detail and depth about each function, adding information such as best practices, performance considerations, and cautionary data, acting as a thorough desk reference. The purpose of this book is not to duplicate all the resources for beginners, but to take the information into far more depth and detail, and answer the "why" questions instead of just the "how" questions.

What's New

With every release, SolidWorks publishes a What's New document to help you keep up to speed with the changes. This is typically a PDF file with accompanying example files. If you have missed a version or two, reading through the What's New files can help get you back on track. (You can find every What's New document from SolidWorks 98+ through SolidWorks 2010 on Ricky Jordan's blog, at http://rickyjordan.com.) Again, don't expect many detail or interface screen shots; it introduces you to the basic changes.

Moving from AutoCAD

In the Help menu is a selection called Moving from AutoCAD. You may also see it referred to as Moving from 2D to 3D in various places in the SolidWorks interface. It is intended to help transitioning users acclimate to their new surroundings. Terminology is a big part of the equation when making this switch, and figures prominently in the Moving from AutoCAD help file.

Likely, the most helpful sections in Moving from AutoCAD are Approach to Modeling and Imported AutoCAD Data. The information in these categories is useful whether you are coming to SolidWorks from AutoCAD or from another CAD package.

SolidWorks Help

SolidWorks Help (formerly The Online User's Guide) is the new Help file. There are two formats: the traditional Help format and a Web-based help file. You can use Search capabilities to find what you are looking for. The SolidWorks Help has tutorials and a separate API (application programming interface) help file. Frankly, it lacks detail, and often skips over important facts such as what you might use a certain function for, what the interface looks like, or where you might find the command in the first place. This SolidWorks Bible fills in most of the gaps in information about the standard version of the software.

Tip of the Day

The SolidWorks Tip of the Day is displayed at the bottom of the SolidWorks Resources tab in the Task Pane. Cycling through a few of the tips or using them to quiz co-workers can be a useful skills-building exercise.

Hardcopy documentation

Unfortunately, hardcopy documentation has dwindled from all software companies. Software suppliers often claim that keeping up with the changes in print is too much work and inefficient. This is the same reason that SolidWorks gives for changing from help files that are on your local computer to help files that are only available across the Internet. Still many users prefer to have a physical book in their hands, one they can spread out on the desk next to them; earmark, highlight, and mark with Post-its; and take notes in, as evidenced by you holding this book at this moment. Hardcopy documentation has an important role in the dissemination of information.

Identifying SolidWorks Documents

SolidWorks has three main data type files: parts, assemblies, and drawings; however, there are additional supporting types that you may want to be familiar with if you are concerned with customization and creating implementation standards. Table 1.1 outlines the document types.

Table 1.1. Document Types

Design Documents

Description

.sldasm

SolidWorks assembly file type

.slddrw

SolidWorks drawing file type

.sldprt

SolidWorks part file type

Templates and Formats

Description

.asmdot

Assembly template

.asmprp

Assembly custom properties tab template

.drwdot

Drawing template

.drwprp

Drawing custom properties tab template

journal.doc

Design journal template

.prtdot

Part template

.prtprp

Part custom properties tab template

.sldbombt

BOM template (table-based)

.sldtbt

General table template

.slddrt

Drawing sheet format

.sldholtbt

Hole table template

.sldrevtbt

Revision table template

.sldwldtbt

Weldment cutlist template

.xls

BOM template (Excel-based)

Library Files

Description

.sldblk

Blocks

.sldlfp

Library part file

Styles

Description

.sldgtolfvt

Geometric tolerance style

.sldsffvt

Surface finish style

.sldweldfvt

Weld style

Symbol Files

Description

gtol.sym

A symbol file that enables you to create custom symbols

swlines.lin

A Line style definition file that enables you to create new line styles

Others

Description

.btl

Sheet metal bend table

calloutformat.txt

Hole callout format file

.sldclr

Color palette file

.sldreg

SolidWorks settings file

.sldmat

Material database

.sldstd

Drafting standard

.swb, swp

Macros, macro features

.txt

Custom property file, sheet metal bend line note file

.xls

Sheet metal gauge table

Saving your setup

If you have taken time to set up a computer and then need to reinstall SolidWorks, move to another computer, or duplicate the setup for another user, you need to copy out the files you have used or customized. By default, all these files are located in different folders within the SolidWorks installation directory. Chapter 2 deals with interface settings and creating a registry settings file to copy to other computers or use as a backup.

Best Practice

It is especially important to have copies of these files in a location other than the default installation folder when you are doing complex implementations that include templates for various types of tables or customized symbol files. Uninstalling SolidWorks or installing a new version will wipe out all your hard work. Choose Tools

Saving your setup
Options
Saving your setup
File Location to save these files in separate library folders on the local hard drive or on a network location
.

Using Templates

I have included some of my part and assembly templates on this book's CD-ROM for you. Copy these files to the location specified at Tools

Using Templates

When you begin to create a new document, and the New SolidWorks Document dialog box gives you the option to select one of several files to start from, those files are templates. Think of templates as "start parts" that contain all the document-specific settings for a part (Tools

Using Templates

Tip

The Novice interface for the New SolidWorks Document dialog box (File

Using Templates
New SolidWorks Document) only enables you to select default templates. The Advanced interface enables you to select any available template.

As shown in Figure 1.9, several tabs can be displayed on the advanced interface. Each of these tabs is created by creating a folder in the template directory specified in the Options dialog box (Tool

Using Templates

Having multiple document templates available

Using multiple templates enables you to start working from multiple starting points, which is an advantage in many situations, such as:

  • Standardization for a large number of users

  • Working in various units

  • Preset materials

  • Preset custom properties

  • Parts with special requirements, such as sheet metal or weldments

  • Drawings of various sizes with formats (borders) already applied

  • Drawings with special notes already on the sheet

The Novice and Advanced interfaces for the New SolidWorks Document dialog

Figure 1.9. The Novice and Advanced interfaces for the New SolidWorks Document dialog

Cross-Reference

Drawing templates and formats are complex enough that I cover them in a separate chapter. Chapter 20 discusses the differences between templates and formats, and how to use them to your advantage. This chapter addresses part and assembly templates.

Depending on your needs, it might be reasonable to have templates for metric and inch part and assembly, templates for steel and aluminum, and templates for sheet metal parts and for weldments, if you design these types of parts. If your firm has different customers with different requirements, you might consider using separate templates for each customer. Over time, you will discover the types of templates you need, because you will find yourself making the same changes repeatedly.

To create a template, open a document of the appropriate type (part or assembly), and make the settings you want the template to have; for example, units are one of the most common reasons to make a separate template, though any Document Property setting is fair game for a template, from the dimensioning standard used to the image quality settings.

Some document specific settings do not appear in the Document Properties dialog box. Still, these settings are saved with the template. Settings that fall into this category are the View menu entity type visibility option and the Tools

The Novice and Advanced interfaces for the New SolidWorks Document dialog

Custom Properties are another piece of the template puzzle. If you use or plan to use BOMs (Bills of Materials), PDM (Product Data Management), or linked notes on drawings, you need to take advantage of the automation options available with custom properties. Setting up custom properties is covered in detail in Chapter 20.

In addition, the names of the standard planes are template specific. For example, the standard planes may be named Front, Top, and Side; or XY, XZ, and ZY; or Plane1, Plane2, and Plane3; or North, Plan, and East; or Elevation, Plan, and Side for different uses.

Locating templates

You can set the location of the templates folder at Tools

Locating templates

After all the Document Properties, custom properties, and other settings are set to your liking and you are ready to save the file as a template, choose File

Locating templates

You can also create additional tabs on the New SolidWorks Document dialog box by making subfolders in the main folder in the File Locations area. For example, if your File Locations list for Document Templates looks like Figure 1.10, your New SolidWorks Document dialog box will look like Figure 1.11.

The Tools Options File Locations list

Figure 1.10. The Tools

The Tools Options File Locations list
Options
The Tools Options File Locations list
File Locations list

The New SolidWorks Document dialog box

Figure 1.11. The New SolidWorks Document dialog box

Adding subfolders to either of the locations listed in File Locations results in additional tabs in the New SolidWorks Document dialog box, as shown in Figures 1.12 and 1.13.

Additional subfolders added to a File Locations path

Figure 1.12. Additional subfolders added to a File Locations path

The tabs associated with the subfolders in New SolidWorks Document dialog box

Figure 1.13. The tabs associated with the subfolders in New SolidWorks Document dialog box

Default templates

Default templates are established at Tools

Default templates
The Tools Options Default Templates settings

Figure 1.14. The Tools

The Tools Options Default Templates settings
Options
The Tools Options Default Templates settings
Default Templates settings

There are two Default Template options: Always use these default document templates and Prompt user to select document template. The Default Template options apply to situations when a template is required by an automatic feature in the software such as an imported part or a mirrored part. In this situation, depending on the option selected, the system automatically uses the default template or the user is prompted to select a template.

Performance

Allowing the software to apply the default template automatically can have a great impact on speed. This is especially true in the case of imported assemblies, which would require you to select templates manually for each imported part in the assembly if the Prompt user to select document template option is selected.

Sharing templates

If you are administering an installation of a large number of users, or even if there are just a couple of users working on similar designs, shared templates are necessary. If every user does what she thinks best, you may get an interesting combination of conflicting ideas, and the consistency of the company's documentation may suffer. Standardized templates cannot make users model, assemble, and detail in exactly the same way, but they do start off users on the same foot.

To share templates among several users, create a folder for templates on a commonly accessible network location, preferably with read-only access for users and read-write permissions for administrators. Then point each user's File Locations and Default templates to that location. Access problems due to multiple users accessing the same files do not arise in this situation because users copy templates to create new documents, and do not use them directly.

Warning

One of the downfalls of this arrangement is that if the network goes down, users no longer have access to their templates. This can be averted by also putting copies of the templates on the local computers; however, it has the tendency to undermine the goal of consistent documentation. Users may tend to use and customize the local templates rather than use the standardized network copies.

CAD administration and organizing any group of people on some level always comes down to trusting employees to do the right thing. There is no way to completely secure any system against all people trying to work around the system, so you must rely on hiring people you can train and trust.

Understanding Feature-Based Modeling

You need to be familiar with some terminology before diving into building models with SolidWorks. Notice that I talk about "modeling" rather than "drawing," or even "design." This is because SolidWorks is virtual prototyping software. Whether you are building an assembly line for automotive parts or designing decorative perfume bottles, SolidWorks can help you visualize your geometrical production data in the most realistic way possible without actually having it in your hand. This is more akin to making a physical model in the shop than drawing on paper.

"Feature-based" modeling means that you build the model by incrementally identifying functional shapes and applying processes to create the shapes. For example, you can create a simple box by using the Extrude process, and you can create a sphere using the Revolve process. However, you can make a cylinder using either process, by revolving a rectangle or extruding a circle. You start by visualizing the 3D shape, and then apply a 3D process to a 2D sketch to create that shape. This concept on its own is half of what you need to know to create models with SolidWorks.

Figure 1.15 shows images of simple feature types along with the 2D sketches from which they were created.

Simple extruded and revolved features

Figure 1.15. Simple extruded and revolved features

Many different feature types in SolidWorks enable you to create everything from the simplest geometry shown in Figure 1.15 to more complex artistic or organic shapes. In general, when I talk about modeling in this book, I am talking about solid modeling, although SolidWorks also has a complete complement of surfacing tools. I discuss the distinction between solid and surface modeling in Chapter 27.

Table 1.2 lists some of the most common features that you find in SolidWorks, and classifies them according to whether they always require a sketch, a sketch is optional, or they never require a sketch.

Table 1.2. Feature Types

Sketch Required

Sketch Optional

No Sketch (Applied Features)

Extrude

Loft

Fillet

Revolve

Sweep

Chamfer

Rib

Dome

Draft

Hole Wizard

Boundary

Shell

Wrap

Deform

Flex

In addition to these features, other types of features create reference geometry, such as curves, planes, axes, surface features (Chapter 27); specialty features for techniques like weldments (Chapter 31); plastics/mold tools (Chapter 32); and sheet metal (Chapter 29).

Understanding History-Based Modeling

In addition to being feature-based, SolidWorks is also history based. To show the process history, there is a panel to the left side of the SolidWorks window called the FeatureManager. The FeatureManager keeps a list of the features in the order in which you have added them. It also enables you to reorder items in the tree (in effect, to change history). Because of this, the order in which you perform operations is important. For example, consider Figure 1.16. This model was created by the following process, left to right starting with the top row:

  1. Create a sketch.

  2. Extrude the sketch.

  3. Create a second sketch.

  4. Extrude the second sketch.

  5. Create a third sketch.

  6. Extrude Cut the third sketch.

  7. Apply fillets.

  8. Shell the model.

Features used to create a simple part

Figure 1.16. Features used to create a simple part

If the order of operations used in the previous part were slightly reordered (by putting the shell and fillet features before Step 6), the resulting part would also look slightly different, as shown in Figure 1.17.

Using a different order of features for the same part

Figure 1.17. Using a different order of features for the same part

Figure 1.18 shows a comparison of the FeatureManager design trees for the two different feature orders. You can reorder features by dragging them up or down the tree. Relationships between features can prevent reordering; for example, the fillets are dependent on the second extruded feature and cannot be reordered before it. This is referred to as a Parent/Child relationship.

Cross-Reference

Reordering and Parent/Child relationships are discussed in more detail in Chapter 11.

Compare the FeatureManager design trees for the parts shown in Figure 1.16 and Figure 1.17.

Figure 1.18. Compare the FeatureManager design trees for the parts shown in Figure 1.16 and Figure 1.17.

On the CD-ROM

The part used for this example is available in the material on the CD-ROM, named Chapter 1 — Features.SLDPRT.

The order of operations, or history, is important to the final state of the part. For example, if you change the order so that the shell comes before the extruded cut, the geometry of the model changes, removing the sleeve inside instead of the hole on top. You can try this for yourself by opening the part indicated previously, dragging the Shell1 feature in the FeatureManager, and dropping it just above the Cut-Extrude1 feature.

Note

You can only drag one item at a time in the FeatureManager. Therefore, you may drag the shell, and then drag each of two fillets, or you could just drag the cut feature down the tree. Alternatively, you can put the shell and fillets in a folder and drag the folder to a new location. Reordering is limited by parent-child relationships between dependent features.

Cross-Reference

You can read more about reordering folders in Chapter 11.

In some cases, reordering the features in the FeatureManager may result in geometry that might not make any sense; for example, if the fillets are applied after the shell, they might break through to the inside of the part. In these cases, SolidWorks gives an error that helps you to fix the problem.

In 2D CAD programs where you are just drawing lines, the order in which you draw the lines does not matter. This is one of the fundamental differences between history-based modeling and drawing.

Features are really just like steps in building a part; the steps can either add material or remove it. However, when you make a part on a mill or lathe, you are only removing material. The FeatureManager is like an instruction sheet to build the part. When you reorder and revise history, you change the order of operations and thus the final result.

Sketching with Parametrics

Sketching is the foundation that underlies the most common feature types. You will find that sketching in parametric software is vastly different from drawing lines in 2D CAD.

Dictionary.com defines the word parameter as "one of a set of measurable factors . . . that define a system and determine its behavior and [that] are varied in an experiment." SolidWorks sketches are parametric. What this means is that you can create sketches that change according to certain rules, and maintain relationships through those changes. This is the basis of parametric design. It extends beyond sketching to all the types of geometry you can create in SolidWorks. Creating sketches and features with intelligence is the basis of the concept of Design Intent, which I cover in more detail later in this chapter.

In addition to 2D sketching, SolidWorks also makes 3D sketching possible. Of the two methods, 2D sketches are by far more widely used. You create 2D sketches on a selected plane, planar solid, or surface face and then use them to establish shapes for features such as Extrude, Revolve, and others. Relations in 2D sketches are often created between sketch entities and other entities that may or may not be in the sketch plane. In situations where other entities are not in the sketch plane, the out-of-plane entity is projected into the sketch plane in a direction that is normal to the sketch plane. This does not happen for 3D sketches.

You can use 3D sketches for the Hole Wizard, routing, weldments, and complex shape creation, among other applications.

Cross-Reference

For more information on 3D sketching, please refer to Chapter 31.

For a simple example of working with sketch relations in a 2D sketch, consider the sketch shown in Figure 1.19. The only relationships between the four lines are that they form a closed loop that is touching end to end, and one of the corners is coincident to the part origin. The small square icon near the origin shows the symbol for a coincident sketch relation. These sketch relations are persistent through changes, and enable you to dynamically move sketch elements with the cursor on the screen. The setting to enable or disable displaying the sketch relation symbols is found at View

Sketching with Parametrics
A sketch of four lines

Figure 1.19. A sketch of four lines

If you drag any of the unconstrained corners (except for the corner that is coincident to the origin), the two neighboring lines will follow the dragged endpoint, as shown in Figure 1.20. Notice the ghosted image left by the original position of the sketch. This is helpful when experimenting with changes to the sketch because you can see both the new and the old states of the sketch. The setting to enable or disable this ghosted position is found at Tools

A sketch of four lines

If you add a parallel relation between opposing lines, they now act differently, as shown in Figure 1.21. You add a parallel relation by selecting the two lines to make parallel and selecting Parallel from the PropertyManager panel. You can also select the Parallel relation from the context bar that pops up in the graphics window when you have both lines selected.

Dragging an endpoint

Figure 1.20. Dragging an endpoint

Cross-Reference

You can read more about the PropertyManager in Chapter 2.

Dragging an endpoint where lines have relations

Figure 1.21. Dragging an endpoint where lines have relations

Next, add a second parallel and a horizontal relation, as shown in Figure 1.22. If you are following along by re-creating the sketch on your computer, you will notice that one line has turned from blue to black.

Horizontal and parallel relations are added.

Figure 1.22. Horizontal and parallel relations are added.

The colors represent sketch states. It may be impossible to see this in the black and white printing of this book, but if you are following along on your own computer, you can now see one black line and three blue lines. Sketch states include Underdefined, Overdefined, Fully Defined, Unsolvable, Zero Length, and Dangling, and are described as follows:

  • Blue: Underdefined. The sketch entity is not completely defined. You can drag a portion of it to change size, position, or orientation.

  • Black: Fully Defined. The sketch entity is fully defined by a combination of sketch relations and dimensions. A sketch cannot be fully defined without being connected in some way to something external to the sketch, such as the part origin or an edge. (The exception to this rule is the use of the Fix constraint, which, although effective, is not a recommended practice.)

  • Red: Overdefined – Not Solved. When a sketch entity has two or more relations and one of them cannot be satisfied, the unsatisfied will be red. For example, if a line has both Horizontal and Vertical relations, and the line is actually vertical, the Vertical relation will be yellow (because it is conflicting but satisfied), and the Horizontal will be red (because it is conflicting and not satisfied).

  • Yellow: Overdefined - Conflicts. Solving the sketch relations would result in a zero-length entity; for example, this can occur where an arc is tangent to a line, and the centerpoint of the arc is also coincident to the line.

  • Brown: Dangling. The relation has lost track of the entity to which it was connected.

  • Pink. The pink sketch status is no longer used.

There can be entities with different states within a single sketch. In addition, endpoints of lines can have a different state than the rest of the sketched entity. For example, a line that is sketched horizontally from the origin has a coincident at one endpoint to the origin, and the line itself is horizontal. As a result, the line and first endpoint are black, but the other endpoint is underdefined because the length of the line is not defined. Sketch states are indicated in the lower-right corner of the graphics window and in the status bar. You can see that dragging one corner allows only the lines to move in certain ways, as shown in Figure 1.23.

Sketch motion is becoming more constrained.

Figure 1.23. Sketch motion is becoming more constrained.

In addition to sketch relations, dimensions applied using the Smart Dimension tool are also part of the parametric scheme. If you apply an angle dimension (by clicking the two angled lines with the Smart Dimension tool) about the origin and try dragging again, as shown in Figure 1.24, you see that the only aspect that is not locked down is the length of the sides. Notice also that when the angle dimension is added, another line turns black.

Open degrees of freedom can be dragged.

Figure 1.24. Open degrees of freedom can be dragged.

Finally, adding length dimensions for the unequal sides completes the definition of the sketch, as shown in Figure 1.25. At this point, all lines have turned black. This state is called "fully defined." Between the dimensions and sketch relations, there is enough information to re-create this sketch exactly.

Best Practice

It is considered best practice to fully define all sketches. However, there are times when this is not practical. When you create freeform shapes, generally by using splines, these shapes cannot easily be fully defined, and even if they are fully defined, the extra dimensions are usually meaningless, because it is impractical to dimension splines on manufacturing drawings.

The fully defined sketch cannot be dragged, and there are no degrees of freedom.

Figure 1.25. The fully defined sketch cannot be dragged, and there are no degrees of freedom.

Parametric relations within a sketch control how the sketch reacts to changes from dimensions or relations within the sketch or by some other factor from outside the sketch. Other factors can also drive the sketch, such as equations, other model geometry that is external to the sketch, and even geometry from another part in an assembly, as you shall see later.

Understanding Design Intent

Design Intent is a phrase that you will hear often among SolidWorks users. I like to think of it as "design for change." Design Intent means that when you put the parametric sketch relations together with the feature intelligence, you can build models that react to change in predictable ways. This gives you a great deal of control over changes.

An example of Design Intent could be a written statement that describes general aspects that help define the design of a part, such as "This part is symmetrical, with holes that line up with Part A and thick enough to be flush with Part B." From this description, and the surrounding parts, it is possible to re-create the part in such a way that if Part A or Part B changes, the part being described updates to match.

Some types of changes can cause features to fail or sketch relations to conflict. In most situations, SolidWorks has ample tools for troubleshooting and editing that you can use to repair or change the model. In these situations, it is often the Design Intent itself that is changing.

Best Practice

When editing or repairing relations, it is considered best practice to edit rather than delete. Deleting often causes additional problems further down the tree. Many users find it tempting to delete anything that has an error on it.

Editing Design Intent

Design Intent is sometimes thought of as a static concept that controls changing geometry. However, this is not always the way things are. Design Intent itself often changes, thus requiring the way in which the model reacts to geometric changes to also change. Fortunately, SolidWorks has many tools to help you deal with situations like this.

Choosing Sketch Relations

Seeing the sketch relation symbols is the best tool for visualizing Design Intent. You can show or hide icons that represent the relations by choosing View

Choosing Sketch Relations

Tip

The Sketch Relations option is an excellent candidate for use with a hotkey, thus enabling you to toggle the display easily on and off.

Cross-Reference

For more information on creating and managing hotkeys, see Chapter 2.

You can use the sketch relation icons on the screen to delete relations by selecting the icon and pressing Delete on the keyboard. You can also use them to determine the status quickly of sketch relations by referring to the colors defined earlier.

Selecting Display/Delete Relations

Selecting Display/Delete Relations
  • All in This Sketch

  • Dangling

  • Overdefining/Not Solved

  • External

  • Defined in Context

  • Locked

  • Broken

  • Selected Entities

In the lower Entities panel of the Display/Delete Relations PropertyManager, shown in Figure 1.26, you can also replace one entity with another, or repair dangling relations.

Cross-Reference

You can read more about repairing dangling entities in Chapter 11.

The Display/Delete Relations PropertyManager enables you to repair broken relations

Figure 1.26. The Display/Delete Relations PropertyManager enables you to repair broken relations

Using Suppressed sketch relations

Suppressing a sketch relation means that the relation is turned off and not used to compute the position of sketch entities. Suppressed relations are generally used in conjunction with configurations.

Cross-Reference

Configurations are discussed in detail in Chapter 10.

Working with Associativity

In SolidWorks, associativity refers to links between documents, such as a part that has an associative link to a drawing. If the part changes, the drawing updates as well. Bi-directional associativity means that the part can be changed from the part or the drawing document window. One of the implications of this is that you do not edit a SolidWorks drawing by simply moving lines on the drawing; you must change the model, which causes all drawing views of the part or assembly to update correctly.

Other associative links include using inserted parts (also called base or derived parts), where one part is inserted as the first feature in another part. This might be the case when you build a casting. If the part is designed in its "as cast" state, it is then inserted into another part where machining operations are performed by cut features and the part is transformed into its "as machined" state. This technique is also used for plastic parts where a single shape spans multiple plastic pieces. A "master part" is created and split into multiple parts. An example would be a mouse cover and buttons.

One of the most important aspects of associativity is file management. Associated files stay connected by filenames. If a document name is changed, and one of the associated files is not updated appropriately, the association between the files can become broken. For this reason, you should use SolidWorks Explorer to change names of associated files. Other techniques will work, but there are some techniques you should avoid. I discuss these techniques in Chapter 28 with master model techniques.

Best Practice

It is considered poor practice to change filenames, locations, or the name of a folder in the path of documents that are referenced by other documents with Windows Explorer. Links between parts, assemblies, and drawings can be broken in this way. Using SolidWorks Explorer or a PDM application is the preferred method for changing filenames.

Tutorial: Creating a Part Template

This simple tutorial steps you through making a few standard part templates for use with inch and millimeter parts, as well as making some templates for a couple of materials.

  1. Choose Tools

    Tutorial: Creating a Part Template
    Options
    Tutorial: Creating a Part Template
    System Options
    Tutorial: Creating a Part Template
    File Locations and then select Document Templates from the Show folder for list
    .

  2. Click the Add button to add a new path to a location outside of the SolidWorks installation directory; for example, D:LibraryTemplates.

  3. Click OK to dismiss the dialog box and accept the settings.

  4. Choose File

    Tutorial: Creating a Part Template
    New from the menu.

  5. Select any part template.

  6. Choose Tools

    Tutorial: Creating a Part Template
    Options
    Tutorial: Creating a Part Template
    Document Properties
    Tutorial: Creating a Part Template
    Drafting Standard
    .

  7. Make sure the ANSI standard is selected.

  8. Click the Units page.

  9. Change the unit system to IPS, inches with 3 decimal places, using millimeters as the dual units with 2 decimal places. Set angular units to Degrees with 1 decimal place.

  10. Change to the Grid/Snap page.

  11. Turn off Display grid.

  12. Change to the Image Quality page.

  13. Move two-thirds of the way to the right, so it is closer to High. Make sure the Save tessellation with part document option is selected.

  14. Click OK to save the settings and exit the Tools

    Tutorial: Creating a Part Template
    Options dialog box.

  15. Click the right mouse button (RMB) on the Materials entry in the FeatureManager, and select 1060 Alloy from the list. If it is not there, click Edit Material and find it from the larger list.

  16. Choose File

    Tutorial: Creating a Part Template
    Properties, and click the Custom tab.

  17. Add a property called Material of type Text. In the Value/Text Expression column, click the down arrow and select Material from the list. Notice that the Evaluated Value shows 1060 Alloy.

  18. Add another property called description and give it a default value of Description. At this point, the window should look like Figure 1.27.

    Setting up Custom Properties

    Figure 1.27. Setting up Custom Properties

  19. Click OK to close the Summary Information window.

  20. Change the names of the standard planes by clicking them twice slowly or clicking once and pressing F2. Rename them Front, Top, and Side, respectively.

  21. Ctrl+select the three planes from the FeatureManager, click the RMB, and select Show (the eyeglasses icon).

  22. From the View menu, make sure that Planes is selected.

  23. Setting up Custom Properties
  24. Select the Line tool and click and drag anywhere to draw a line.

  25. Select the Smart Dimension tool and click the line, then click in the space in the Graphics Window to place the dimension. If you are prompted for a dimension value, press 1 and click the check mark, as shown in Figure 1.28.

  26. Press Esc to exit the Dimension tool and click the RMB on the displayed dimension and select Link Value.

  27. Type thickness in the Name box, and click OK.

    Drawing a line and applying a dimension

    Figure 1.28. Drawing a line and applying a dimension

  28. Press Ctrl+B (rebuild) to exit the sketch, select the sketch from the FeatureManager, and press Delete on the keyboard.

Note

You do the exercise of creating the sketch and deleting it only to get the link value "thickness" entered into the template. Once you've done it, every part made from this template that uses an Extrude feature will have an option box for Link to Thickness, which enables you to establish a thickness variable automatically for each part you create. This is typically a sheet metal part feature, but you can use it in all types of parts.

  1. Choose File

    Drawing a line and applying a dimension
    Save As and then select Part Template from the drop-down list. Ensure it is going into your template folder by giving it an appropriate name reflecting the inch units and 1060 material, and then click Save.

  2. Edit the material applied to change it from 1060 Alloy to Plain Carbon Steel, and save it as another template with a different name.

  3. Change the primary units to millimeters with 2 places, and save as a third template file.

  4. Exit the file.

Tutorial: Using Parametrics in Sketches

What separates parametric CAD tools from simple 2D drawing programs is the intelligence that you can build in to a parametric sketch. In this tutorial, you learn some of the power that parametrics can provide in both structured (using actual dimensions) and unstructured (just dragging the geometry with the mouse) changes.

  1. Open a new SolidWorks document by clicking the New toolbar button or by choosing File

    Tutorial: Using Parametrics in Sketches
    New.

  2. From the list of templates, select a new part template, either inch or millimeter.

  3. Press the Spacebar on the keyboard to open the View Orientation dialog box, and double-click the Front view.

  4. Tutorial: Using Parametrics in Sketches
  5. Click on the View menu, and make sure the Sketch Relations item is depressed. This shows small icons on the screen to indicate when parametric relations are created between sketch entities.

  6. Click the Circle from the Sketch toolbar (choose Tools

    Tutorial: Using Parametrics in Sketches
    Sketch Entities
    Tutorial: Using Parametrics in Sketches
    Circle)
    .

  7. Tutorial: Using Parametrics in Sketches
  8. Deactivate the circle by clicking its toolbar icon or pressing the Esc key on the keyboard. Now click and hold the cursor on the circle, then drag it to change the size of the circle. The center of the circle is locked to the Origin as the Coincident icon near the Origin appears. The radius is undefined, so it can be dragged by the cursor. If the centerpoint were not defined, the location of the center of the circle could also be dragged.

    Sketching a circle

    Figure 1.29. Sketching a circle

  9. Sketching a circle
  10. Click the first point inside the circle, click the second point outside the circle, and click the third point such that one end of the rectangle is completely inside the circle. Use Figure 1.30 as a reference. Avoid making any two points vertical or horizontal from one another. You will learn in Chapter 3 about how to control automatic relations in more detail.

    Sketching a three-point rectangle

    Figure 1.30. Sketching a three-point rectangle

  11. Sketching a three-point rectangle
  12. Select the centerline and Ctrl+select the line with which it shares the midpoint relation. After making the second selection, do not move the cursor, and you will see a set of options in a pop-up context toolbar. Click the Make Perpendicular icon, as shown in Figure 1.32, and the rectangle becomes symmetric about the centerline.

    Creating a midpoint relation between a centerline and a line

    Figure 1.31. Creating a midpoint relation between a centerline and a line

    Making the rectangle symmetric about the centerline

    Figure 1.32. Making the rectangle symmetric about the centerline

  13. Drag one of the corners of the rectangle from inside the circle and drop it on the circumference of the circle itself. The point here is that you want the corner of the circle to be right on the circle always. A coincident relation is created by the drag-and-drop action. Now when you move either the circle or the rectangle, the other may change in size. Try dragging the circle itself, a corner point of the rectangle, or a line of the rectangle. Try dragging the centerline and the free endpoint of the centerline. Notice that the result of moving each different sketch entity is different from any of the others.

  14. Making the rectangle symmetric about the centerline
    Placing a dimension on an angled line

    Figure 1.33. Placing a dimension on an angled line

  15. Drag the endpoint of the centerline around the center of the circle to see how the sketch reacts. Notice that the dimension added to the rectangle keeps it a constant width and makes it react more predictably.

  16. Put a dimension on the circle. Click the circumference of the circle with the Smart Dimension tool, and then place the dimension anywhere on the screen without clicking any other geometry. Notice that diameter values of less than the dimension created in Step 14 cause errors. This makes geometrical sense. Change the diameter value to 1 inch or 25 mm.

  17. Drag the endpoint of the centerline again. Notice that as you define more sizes and relationships between sketch entities, the motion of the sketch as you drag becomes more constrained and predictable.

  18. Activate the Smart Dimension tool again. Click the Top plane from the FeatureManager and then click the centerline. This creates an angle dimension. Position the angle dimension and change its value to 60 degrees, as shown in Figure 1.34.

    Creating an angle dimension

    Figure 1.34. Creating an angle dimension

  19. Double-click any dimension and use either the up and down arrows to the right of it or the scroll wheel below it to change the value, as shown in Figure 1.35. Notice that not all values of all dimensions produce valid results. Also, notice that the entire sketch is black except for the outer end of the rectangle, which is now blue. This is the only thing you can now drag.

Using arrows or scroll wheel to change dimension values

Figure 1.35. Using arrows or scroll wheel to change dimension values

Summary

While product development is about design, it is even more about change. You design something once, but you may modify it endlessly (or it may seem that way sometimes). Similarly, SolidWorks is about design, but it really enables change. Think of SolidWorks as virtual prototyping software that enables you to change your prototype rather than having to make a new one. Virtual prototypes will never completely replace physical models, but they may reduce your dependence on them to some extent.

SolidWorks is also about reusing data. Associativity enables you to model a part once and use it for Finite Element Analysis (FEA), creating 2D drawings, building assemblies, creating photorealistic renderings, and so on. When you make changes to the model, your drawing is automatically updated, and you don't have to reapply FEA materials and conditions or redo the rendering setup. Associativity saves you time by reusing your data. Associativity and change driven by feature-based and history-based modeling can take some getting used to if you have had limited exposure to it, but with some practice, it becomes intuitive and you will see the many benefits for enabling change. Parametric sketching and feature creation help you to maintain Design Intent as well as adjust it as necessary.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset