Skip to main content

FreeCAD For Beginners: CAD Thinking Part 3

Step-by-Step FreeCAD CAD Thinking Tutorial Part 3: Modeling a Base Part for a Latch Assembly

Introduction

This tutorial supports the video that guides you through modeling a base part for a latch assembly in FreeCAD (version 0.21) using the Part Design workbench. You’ll learn to select an optimal profile (top view) to minimize operations, leverage symmetry, create a reverse pocket, add holes, and apply finishing touches like chamfers and mirrors. The tutorial compares modeling from the top versus the front to highlight efficiency. It’s designed for intermediate FreeCAD users familiar with sketching and part design. Prerequisites include FreeCAD 0.21 and basic knowledge of the Part Design workbench.


Part 123 and 4 have been released.  

Step 1: Set Up a New Document and Analyze the Part

  • Description: Create a new FreeCAD document and analyze the base part’s geometry to choose the best modeling approach.
  • Instructions:
    1. Open FreeCAD 0.21 and select File > New to create a new document.
    2. Save the document as “Base_Part.fcstd” (File > Save As).
    3. Review the technical drawing or reference image. Note key dimensions: 17 mm length, 8 mm width, 21 mm height, 3 mm hole diameter, 3.5 mm slot radius, and 0.5 mm chamfer.
    4. Identify symmetry along the XZ plane to reduce sketching by mirroring.
    5. Choose the top profile (XY plane) for modeling to minimize operations compared to the front profile (XZ plane), which requires more steps (e.g., multiple pockets, fillets).
  • Tips:
    • The top profile simplifies the workflow by using a single sketch with a reverse pocket and fewer operations.
    • Use the technical drawing to confirm dimensions and symmetry.

Step 2: Create the Base Sketch (XY Plane)

  • Description: Sketch the top profile of the base part, incorporating symmetry and key features like holes and slots.
  • Instructions:
    1. Switch to the Part Design workbench.
    2. Click Create Body and then Create Sketch on the XY_Plane.
    3. Enable Auto Constraints and Avoid Redundant Auto Constraints in the sketcher settings.
    4. Use the Point tool to place points for key dimensions based on the technical drawing:
      • Place points at (0, 0), (8, 0), (8, 17), and (0, 21).
      • Apply a Vertical Constraint to align points at x=0 and x=8.
      • Apply a Horizontal Constraint across points at y=0 and y=17.
      • Set distances: 8 mm between x=0 and x=8, 17 mm between y=0 and y=17, and 21 mm for the height.
    5. Use the Polyline tool to connect the points, forming the outer shape, ensuring it snaps to the points (use Coincident Constraint if needed).
    6. Add a Constraint-Preserving Fillet to the top corners (e.g., at (0, 17) and (8, 17)) with a Radius of 3 mm.
    7. Create a Circle for the hole, initially unconstrained to the top arc using Tangent Constraints to both sides.
    8. Toggle the circle to Construction Geometry (blue) using Sketch > Sketcher Geometries > Toggle Construction Geometry.
    9. Add a new Circle centered within the construction circle, set its Diameter to 3 mm, and position it 1 mm from the top edge using a Vertical Distance Constraint.
    10. Create a Slot for the triangular cutout using the Slot tool, centered on the sketch.
    11. Trim the slot’s inner lines using the Trim tool to form a single arc, and apply a Point on Object Constraint to align endpoints with the sketch’s sides.
    12. Apply a Symmetry Constraint using the slot’s endpoints and the sketch’s centerline (e.g., x=4).
    13. Set the slot’s arc Radius to 3.5 mm.
    14. Verify the sketch is fully constrained and close it.
    15. Save the document.
  • Tips:
    • Use points to establish dimensions before sketching to avoid resizing issues.
    • Construction geometry helps position features like holes without affecting the final shape.

Step 3: Pad the Base Sketch

  • Description: Extrude the sketch to create the base part’s solid geometry.
  • Instructions:
    1. Select the sketch in the Tree View and click Pad.
    2. Set the Length to 10 mm (per the technical drawing) and click OK.
  • Tips:
    • Ensure the pad height matches the part’s thickness.
    • Check the 3D view to confirm the extrusion direction.

Step 4: Create a Reverse Pocket (XZ Plane)

  • Description: Use a reverse pocket to remove material and form the part’s front profile.
  • Instructions:
    1. Switch to the front view (XZ_Plane) using the view toolbar.
    2. Create a new sketch on the XZ_Plane (or select the front face of the pad if preferred).
    3. Use the External Geometry tool to import the top and side edges of the pad (e.g., 17 mm length and 2 mm height).
    4. Use the Polyline tool to sketch the inner profile (e.g., a trapezoid with a 2 mm height and 8 mm base).
    5. Apply constraints:
      • Set the top line to 2 mm and the base to 8 mm.
      • Apply an Equal Constraint to ensure symmetrical sides.
      • Use Coincident Constraints to align with imported geometry.
    6. Create a Rectangle around the profile to act as a “cookie cutter,” enclosing the area to keep.
    7. Ensure the rectangle’s edges are constrained to the XZ plane’s origin to avoid crossing the symmetry axis.
    8. Close the sketch.
    9. Select the sketch, click Pocket, and set it to Through All to remove material outside the inner profile.
    10. Click OK.
  • Tips:
    • The reverse pocket keeps the sketched area and removes the rest, avoiding multi-body errors.
    • Ensure the sketch does not cross the symmetry axis to prevent mirroring issues.

Step 5: Add Side Holes

  • Description: Create holes on the side faces of the part.
  • Instructions:
    1. Select a side face of the pocketed part and click Create Sketch.
    2. Use the External Geometry tool to import the face’s corner points.
    3. Create two Circles, each centered on the face using Symmetry Constraints with the imported corners and the circle’s center.
    4. Set each circle’s Diameter to 3 mm.
    5. Close the sketch.
    6. Select the sketch, click Pocket, and set it to Through All.
    7. Click OK.
  • Tips:
    • Use symmetry to position holes accurately in the center of the face.
    • Verify hole placement in the 3D view.

Step 6: Add a Chamfer

  • Description: Apply a chamfer to round off the part’s edges.
  • Instructions:
    1. Select the top outer edge of the part.
    2. Click Chamfer in the Part Design toolbar.
    3. Set the Chamfer Length to 0.5 mm (per the technical drawing).
    4. Click OK.
  • Tips:
    • Check the technical drawing for chamfer size.
    • Select only the edges requiring chamfer to avoid unnecessary operations.

Step 7: Mirror the Part

  • Description: Mirror the part across the XZ plane to complete the symmetrical geometry.
  • Instructions:
    1. Select the operations in order: Pad, Pocket (reverse), Pocket (holes), and Chamfer.
    2. Click Mirrored in the Part Design toolbar.
    3. Set the Mirror Plane to Base XZ Plane.
    4. If the mirror fails (e.g., “transformed shape does not intersect support”), edit the reverse pocket sketch to ensure it does not cross the symmetry axis:
      • Open the sketch, trim lines crossing the axis, and apply Point on Object Constraints to align with the axis.
      • Close the sketch and retry the mirror.
    5. Click OK.
    6. Select the Mirrored feature, set Refine to True in the properties to merge coplanar faces, and click OK.
  • Tips:
    • Select operations in sequence to ensure correct mirroring.
    • Fix sketch errors (e.g., crossing the symmetry axis) to resolve mirror failures.

Step 8: Compare with Front Profile Approach

  • Description: Understand the efficiency of the top profile approach by comparing it to the front profile.
  • Instructions:
    1. Note the top profile workflow used 5 operations: Pad, Pocket (reverse), Pocket (holes), Chamfer, and Mirror.
    2. The front profile approach requires more operations:
      • Pad to create the initial shape.
      • Pocket for the triangular cutout.
      • Pocket for the central hole.
      • Pocket for side holes.
      • Fillet for rounded corners.
      • Chamfer for edge finishing.
      • Mirror for symmetry.
    3. Recognize that the top profile reduces operations (5 vs. 7), improving model stability.
  • Tips:
    • Fewer operations reduce the chance of errors in complex models.
    • The reverse pocket simplifies material removal in the top profile approach.

Step 9: Finalize the Model

  • Description: Verify the model and prepare for assembly.
  • Instructions:
    1. Inspect the part for errors (e.g., incorrect dimensions or missing features).
    2. Adjust sketches or constraints if needed to match the technical drawing.
    3. Save the file (File > Save).
  • Tips:
    • Toggle the Axis Cross to confirm symmetry and orientation.
    • Hide sketches in the Tree View to reduce clutter.

Conclusion

You’ve modeled a base part for a latch assembly in FreeCAD by using a top profile approach, leveraging symmetry, and applying a reverse pocket, holes, chamfer, and mirror. This method minimizes operations compared to the front profile approach, enhancing model stability. If issues arise, check sketch constraints or ensure sketches align with the symmetry axis. The part is now ready for assembly in a future tutorial. Save your work and refine as needed for precision.

Additional Resources

Comments

  1. As someone who's been using CAD software for decades (both 2D and 3D) but new
    to FreeCAD, your blog and channel are excellent.

    The only critique I would offer (and in fairness the same could be said about a lot of other sources that teach CAD) is that more mention could be given to the actual manufacturability of parts. It's much too easy to create something in 3D CAD that would be way too expensive to manufacture in practice.

    Most of the parts of this latch look like sheet metal design. But some of the geometry it not consistent with that. In case of this part; the sharp corners on the right angles.

    This would be an excellent opportunity to use the sheet metal workbench.

    ReplyDelete

Post a Comment

Popular posts from this blog

Beginners FreeCAD: Exercise 5.1 & 5.2 (Reference Images)

Welcome to the total beginners course to FreeCAD 0.20. In this is a two part lesson we will practice our tracing skill in the form of a mini project. Using the below reference photos we will create a more complex part which will consist of repeating features. We will utilise the symmetry tools to ease construction in both FreeCAD sketcher and Part Design workbench. This project work will help teach the fundamentals of freeCAD allowing a understanding of the basics but delivering this information via teaching you different workflows. In this tutorial we will be tracing photos imported into FreeCAD via the image workbench https://wiki.freecadweb.org/Image_Workbench JUMP TO IMAGES Do you want to purchase the complete series along with others and keep forever?  Check out my shop https://ko-fi.com/mang0/shop The story of this tutorial The idea and first attempt at creating this tutorial was back in FreeCAD 0.18.  The physical part itself, well, I have no idea what really it is, i...

FreeCAD For Beginners: CAD Thinking Part 1

Step-by-Step CAD Thinking FreeCAD Tutorial: Modeling a Latch Part (Part 1) Learning how to turn real life objects into CAD Models. Using FreeCAD we explain at a beginner level how to break down a physical object into its primitive shapes to digitise it into a 3D model, with this episode we are looking at a multi-part assembly, modelling each piece individually. The series aims to open your eyes and mind giving you the ground skills to pick the correct profiles, geometry and workflow when it comes to modelling your parts. This is not just for FreeCAD but for all CAD packages out there. Introduction This tutorial is the first in a series guiding you through modeling a latch assembly in FreeCAD (version 0.21) using the Part Design and A2Plus workbenches. It focuses on modeling the first part (a slotted component) by selecting the top profile to create a slot and adding side arcs, emphasizing CAD thinking to break down complex shapes into primitives. The tutorial highlights model stability...

Beginner FreeCAD Tutorial 14: Reference Document for Exercise 1

This tutorial focuses on modelling a deck eye plate. These items are normally made of stainless steel with some kind of galvanised coating to stop corrosion. They are used in many industries but are most commonly found around boats, ships, sail lofts and docks where they play an important part in marine industry. Finding their use in many applications, they are often wall mounted acting as lashing points for mooring and for tying down sails or canopies. They can even be used for domestic use around the house and garden, for example to anchor ropes, cords and lines. So if your into 3D printing your finished creations, you can make use of the finished result.   Disclaimer : The strength of the part will depend on the internal structure, settings of the slicer and the material it has been printed on.  This will limit its application as failure of the part, damage to property and injury is a possibility.  These items are normally made of steel and are tested to take a...