Рубрики

sketches

How to sketch spring easily

Position nodes in a spiral layout.


How to make a spring in solidworks – 2 easy ways

In the next exercise we are going to show how to make a simple and a variable pitch spring. In order to make these springs we’ll have to learn how to make a simple and a variable pitch helix to be used as a sweep path. This is the sequence of features to complete the springs:

How to Make a Spring in SOLIDWORKS

How to make a spring in solidworks with Variable Pitch Spring

1.- In order to make a helix, first we need to make a sketch with a circle. This circle is going to be the helix’s diameter. Select the “Front Plane” and make a sketch using the following dimensions. Exit the sketch when done.

2. – In the Features tab select “Curves, Helix and Spiral” from the drop-down icon or the menu “Insert, Curve, Helix/Spiral.” If asked to select a plane or a sketch, select the sketch we just drew.

If we don’t exit the sketch, we’ll only have the “Helix and Spiral” option from the “Curves” command. If we select the “Helix and Spiral” before exiting the sketch, the sketch will be automatically selected.

The helix is defined by selecting two parameters between Pitch, Revolutions, or Height; the third parameter is automatically calculated from the other two. For this example we’ll select “Pitch and Revolution” from the “Defined By:” drop down menu, make the pitch 0.325″ with 6 Revolutions.

The “Start Angle” value defines where the helix will start. By setting it to 90 degrees we are defining the start of the helix at the top, coincident with the “Front Plane.” If we had made it 0 degrees, it would be coincident to the “Top Plane” instead. (Feel free to explore the options.) Click OK to complete the helix.

Note the Helix command has options to make it Counterclockwise, Clockwise, Tapered, Variable pitch and reversed (going right or left).

3. – Once the Helix is done, we need to make the profile sketch for the sweep. Switch to a Right view, and add a new sketch in the “Right Plane” as shown. Make the circle close to the Helix…

  • and add a “Pierce” geometric relation between the center of the circle and the helix. This way the profile will be located at the beginning of the helix. This relation will make the sketch fully defined. Exit the profile sketch when done.

A pierce relation is done between an element that is oblique or perpendicular to the sketch plane and a point (or endpoint) in the sketch. Think of it as a needle piercing through a fabric, the sketch being the fabric and the helix (or curve, model edge or another sketch element) the needle.

4. – Select the Sweep command and make the sweep using the last sketch as a profile and the Helix as a Path. Note the Preview and click OK to finish.

If needed/desired, hide the “Helix/Spiral1” in the FeatureManager, save the part as ‘Spring’ and close the file.

How to Make a Spring in SOLIDWORKS: Variable Pitch Spring

1. How to make a spring in solidworks – For the variable pitch spring we’ll start the same way and make the following sketch in the “Front Plane.” This will be the spring’s outside diameter.

2. How to make a spring in solidworks – While still editing the sketch, in the Features tab from the “Curves” drop down icon select “Helix and Spiral”; notice it is the only option available.

In the Helix/Spiral command select “Pitch and Revolution” from the “Defined by:” selection box and “Variable Pitch” in the Parameters box.

After selecting it we are presented with a table; fill in the values for the helix using the next table. Click OK when finished to build the helix.

3. How to make a spring in solidworks – After the helix is complete add a new sketch in the “Right Plane.” Draw the circle first, then add a center rectangle, trim and dimension as needed. Locate the sketch to either side of the helix.

Add a centerline from the center to the top line (make sure it is coincident). Add a “Pierce” geometric relation between the top endpoint of the centerline and the helix to fully define the sketch. Exit the sketch and optionally rename it ‘Profile’.

The Pierce relation allows us to fix the profile to the path and can be added to any part of the sketch. We chose to add it to the top because the original sketch used for the helix is the spring’s outside diameter.

4. How to make a spring in solidworks – Just as we did before, select the “Sweep” command, add the path and profile as shown and click OK to finish and hide the “Helix/Spiral1” feature.

5. How to make a spring in solidworks – As a finishing touch we’ll make a cut to flatten the sides of the spring. Change to a Right view and add a sketch in the “Right Plane.” Draw a single line starting at the midpoint of the indicated edge and long enough to cross the part.

6. (How to make a spring in solidworks)- Select the “Extruded Cut” command; if we use an open sketch to make a cut, selecting either the “Through All” or the “Through All – Both” option, automatically activates the “Direction 2” checkbox with the “Through All” end condition and one side of the model is cut using the open sketch. The small arrow located at the center of the line indicates which side of the model will be cut.

Use the “Flip side to cut” option if needed to cut the left side. Click OK to complete the cut, and repeat the same sketch to cut the right side. Note the cutting plane is shown in the graphics area.

When using an open sketch to cut a model, we can only use a single open profile. If we have multiple open profiles we cannot make the Cut Extrude using these options, we would get multiple thin cuts with a different behavior.

7. – Save the model as ‘Variable Pitch Spring’. – How to make a spring in solidworks

  • Mastercam Mill tutorial
  • CNC Lathe Programming

Thank for reading [How to make a spring in solidworks]! See You next Post.




Matplotlib#

Draw networks with matplotlib.

Examples#

>>> G = nx.complete_graph(5) >>> nx.draw(G) 

See Also#

  • matplotlib
  • matplotlib.pyplot.scatter()
  • matplotlib.patches.FancyArrowPatch

Draw the graph G with Matplotlib.

draw_networkx (G[, pos, arrows, with_labels])

Draw the graph G using Matplotlib.

Draw the nodes of the graph G.

Draw the edges of the graph G.

Draw node labels on the graph G.

Draw edge labels.

Draw the graph G with a circular layout.

Draw the graph G with a Kamada-Kawai force-directed layout.

Draw a planar networkx graph G with planar layout.

Draw the graph G with a random layout.

Draw the graph G with a spectral 2D layout.

Draw the graph G with a spring layout.

Draw networkx graph G with shell layout.

Graphviz AGraph (dot)#

Interface to pygraphviz AGraph class.

Examples#

>>> G = nx.complete_graph(5) >>> A = nx.nx_agraph.to_agraph(G) >>> H = nx.nx_agraph.from_agraph(A) 

See Also#

  • Pygraphviz: http://pygraphviz.github.io/
  • Graphviz: https://www.graphviz.org
  • DOT Language: http://www.graphviz.org/doc/info/lang.html

Returns a NetworkX Graph or DiGraph from a PyGraphviz graph.

Returns a pygraphviz graph from a NetworkX graph N.

Write NetworkX graph G to Graphviz dot format on path.

Returns a NetworkX graph from a dot file on path.

Create node positions for G using Graphviz.

Create node positions for G using Graphviz.

Graphviz with pydot#

Import and export NetworkX graphs in Graphviz dot format using pydot.

Either this module or nx_agraph can be used to interface with graphviz.

Examples#

>>> G = nx.complete_graph(5) >>> PG = nx.nx_pydot.to_pydot(G) >>> H = nx.nx_pydot.from_pydot(PG) 

See Also#

  • pydot: erocarrera/pydot
  • Graphviz: https://www.graphviz.org
  • DOT Language: http://www.graphviz.org/doc/info/lang.html

Returns a NetworkX graph from a Pydot graph.

Returns a pydot graph from a NetworkX graph N.

Write NetworkX graph G to Graphviz dot format on path.

Returns a NetworkX MultiGraph or MultiDiGraph from the dot file with the passed path.

Create node positions using Pydot and Graphviz.

Create node positions using pydot and Graphviz.

Colin Wynn
the authorColin Wynn

Leave a Reply