Site Translation Underway
Our translation team is diligently working to provide a fully localized experience.
If you spot any English text, rest assured we're on it—thank you for your understanding.
Contact Us
How to Create a Spring That Will Expand and Compress in a SOLIDWORKS Assembly
This tutorial demonstrates a simple example of how to create a spring part that can be inserted into aSOLIDWORKSassembly that will expand and compress with the movement of other parts.
Creating the Spring Part
TheSweep
The key to allowing a spring to compress and expand at the assembly level is to leave the spring component underdefined. For this reason, we won't use the Helix and Spiral feature. Instead, we'll create an underdefined Sweep. The sweep path sketch will be underdefined with only a relation on one end. The profile sketch can be fully defined as usual.
Start a new part.
Create the path sketch on the Front Plane (Sketch1):
Start a line and make the first end coincident to the origin and place the second end directly above it, allowing a vertical relation. This will leave the top endpoint free and make it appear blue, indicating the sketch is underdefined - which is exactly what we want.
Create the profile sketch on the Front Plane (Sketch2):
Add a circle, with the centerpoint aligned to the fixed endpoint of the path sketch (or the origin) with a horizontal relation. Define the circle diameter and distance to the line to fully define the sketch.
Create the Swept Boss, with a twist:
Select each sketch in its corresponding section; Sketch2 is theProfile, and Sketch1 is thePath.
Expand theOptionssection and change theProfile Twistoption toSpecify Twist Value.Set theTwist Controlto be based onRevolutions, and specify how many revolutions/coils you want for your spring.
Once finished, we should now have the general spring shape.
Flattening the Ends
To make this part more realistic and easier to mate at the assembly level, reference planes and surfacing tools are used to make the spring planar on each end.
Show the path sketch (Sketch1) by right-clicking it in the FeatureManager Design Tree and selecting theshowicon (eyeball). This will allow you to use the endpoints of the sketch to create the needed reference planes. If the sketch doesn’t appear in the graphics area, go toView>Hide/Show, and make sureSketchesis selected.
Create a reference plane. In theFeaturestab, underReference Geometry,choosePlane.
Define the references. One reference will becoincidentwith the sketch endpoint, and the otherperpendicularto the line.
Repeat steps 2-3 for the other end of the part.
Looking at the part from the side, notice that the reference planes are intersecting part of the spring. This is intentional, as we will use these planes to cut each end of the spring so they are planar.
To flatten the ends, useCut With Surface(located in the CommandManager'sSurfacestab, which may not be visible by default).Note: You can always locate features via theCommand Searchbartoo.
Once the tool is open, select one of the reference planes you created and choose which direction you want to cut. In the graphics area, an arrow indicates the direction from the plane where material will be removed. If needed, change the direction by clicking the flip cut icon.
Follow steps 5-6 for the bottom of the part.
Now we have nice planar surfaces on each end to easily mate at the assembly level.
Save the file.
Adding the Spring Into an Assembly
Now we will work on the assembly. The trick with this is keeping the fixed ends together and the free ends together. When creating the spring part, we fixed the bottom of the spring in the path sketch and left the top underdefined. For this example, a simple assembly was created with two discs and a center pin. The base disc is fixed, and the top disc will move to expand or compress the spring.
Create or open the needed assembly.
Insert the spring into the assembly.
Add a coincident mate from the bottom planar face of the spring (the one with the fixed endpoint in the path sketch) to the top of the fixed base disc.
Add a concentric mate between the spring and the pin. The easiest way to do this is to show and select the path sketch and the pin.
The spring will still rotate, so if you want to lock the rotation, right-click on the concentric mate and selectLock Rotation.
Edit Sketch1 from the spring part in-context (this is where the underdefined path sketch from the spring part comes in handy!). Right-click the sketch from the FeatureManager Design Tree or in the graphics area, and selectEdit Sketch.
Now add a relation from the blue endpoint in the sketch to the bottom edge of the top free-moving disc.
Once the relation is accepted and we exit the sketch, the spring part will expand to meet the top disc.
Now, whenever the top disc is moved along the pin, and the assembly is rebuilt (Ctrl + Q or Ctrl + B), the spring will compress with the assembly.
Conclusion
Creating a dynamic spring inSOLIDWORKSthat expands and compresses with the motion of an assembly adds a level of realism and polish to drawing views, screenshots, and animations.
SOLIDWORKS CAD Cheat Sheet
SHORTCUTS ⋅ MOUSE GESTURES ⋅ HOT KEYS
Our SOLIDWORKS CAD Cheat Sheet, featuring over 90 tips and tricks, will help speed up your process.
Want to learn more about SOLIDWORKS? Check out additional tutorials and tips below. Additionally, join the GoEngineer Community, where you can create forum posts, enter design contests, and answer questions from other SOLIDWORKS users.
Tashayla Openshaw is a SOLIDWORKS Technical Support Engineer based out of our Headquarters in Salt Lake City, Utah. She earned her Bachelor’s degree in Mechanical Engineering from the University of Utah in 2018 and has been part of the GoEngineer family since February 2019.
Get our wide array of technical resources delivered right to your inbox.
Unsubscribe at any time.
×
Alert
As of June 2022, Microsoft will no longer support Internet Explorer. To ensure your browsing experience is not interrupted please update to Microsoft Edge.
We Value Your Privacy
We use cookies and similar technologies to analyze site traffic and improve your experience,
and to support advertising and marketing. You can accept all, decline non-essential tracking,
or customize your settings. See our Privacy Policy.