2. Computer-Aided Design

This week we starts exploring some different tools for doing computer-aided design.

Assignment

Learn FreeCAD

As a product designer, I have had come exprience in 3D modeling and rendering, mostly in Blender. Blender is a great tool for doing polygonal modeling and 3D animation rendering. Though it has a non-destructive modifier workflow, there's not very much parametric aspect to it, and due to it's polygonal nature, it's not very convenient to model 3D parts for digital frabrication.

On this week's class, Neil introduced lots of different CAD softwares and used FreeCAD as an example to illustrate many useful techniques that we can do using the parametric workflow. I'm excited to try out the new way to do 3D design, and I started with FreeCAD first to do it.

I went to the offical website of FreeCAD and got a portable download for windows, then I followed a video tutorial on youtube to learn the basics of FreeCAD. I have not settled with my final project idea now so I'll document my learning process first.

FreeCAD has lots of tools and its user interface is a little bit intimidating at first. But it all makes sense after I learned the basics and it's modeling workflow.

The Part Design Workbench

FreeCAD groups its tools into different workbenches based on the workflow that is used, for 3D parts modeling, we need to use its Part Design workbench.

We can select it from the dropdown menu in the middle and from the Task tab on the left, it shows that we need to create an body and a sketch. After clicking the Create sketch button, it lets us pick a plane that we want to work in.

workbench create body create sketch working plane

Now we've entered the sketcher workbench and we have the tools to make the 2D sketch of our parts in the toolbar. We have to create the geometries with the create tools and then use the constrain tools to constrain the shapes to make the sketch. It's logic is different from the softwares I have used but it's very powerful after I got used to it.

I'm working in the XY-plane so I'm sketching out the part from the top view.

First, use the centered rectangle tool to create a rectangle that is centered at the center point of the sketch, the center point is automaticly constraint to the center of the sketch.

center rectangle

Then we can use the constrain vertical distance and constrain horizontal distance tools to constrain the two dimention of the rectangle. After that, the sketch turned green and the left Tasks tab showed that the sketch now is Fully constrained and the edges of the rectangle cannot be moved afterwards.

constrain rect constrain rect1

Then I used the create circle tool to create four circles in the corner of rect, and alse used the constrain tools to constrain the vertical and horizontal positon, as well as the diameter of the circles. The parametric workflow allow me to use the constrain equal tool to make the circles all have the same size and postiion full constrained.

add circles

Then I used the constaint-preserving sketch fillet tool to add fillets to the four corners of the rectangle. Then I went on adding the coincident constraint to the center of the arc to make them use the same center as the corner circles, and the sketch turned orange and the solver on the left shows that the sketcth now is over constraint. By clicking the number on the right, FreeCAD selects and highlights the constrint that is redundant in the viewport and it's the constraint of the arc itself was colliding with the the coincident constraint.

fillet over constraint

Pressing the delete key just deletes the redundant constraint and the sketch is now fully constraint again.

Now press the Ok button on the left brings us out of the sketcher workbench, and we can use the Pad tool in the Part design workbench to pad the sketch that we made to create a solid object. The padded length can be adjusted using the parameters on the left.

pad pad

Then click the create sketch button again to create another sketch, this time I selected the XZ-plane to sketch from the front view.

First use the create external geometry tool to select the two edges on the top surface to get the two intersecting points with the plane, then they can be used to constrain the rectangle that we made.

new sketch external geometry

Also add fillets to the corners.

consrtaint fillets on top

Use the pad tool again to create the solid from the sketch, check the Symmetric to plane checkbox to make it centered on the top.

pad2

I found the length of the top part is not ideal, so I went into the sketch that defines the constraint and changed the parameter, the change is also reflected on the padded object.

change height

Also in the Part Design workbench, there are fillet and chamfer tools to create them directly on the body. Select the tool and on the left tasks tab, I can add the edges I wanted to chamfer and fillet and adjust the size parameters.

chamfer

The TechDraw Workbench

After I finished the model, I can use the TechDraw workbench to generate the technical drawing of the model I have.

First, select the TechDraw workbench from the dropdown menu, and click the insert default page button to create a new page.

create page

Then select the model from the Model tab on the left and change the view port into one of the orthographic view. Click the Insert Projection Group tool and a projection view is added to the page. Use the Secondary Projections checkboxs to add more views.

projection group

Then use the Insert dimentions tools to add dimentions to the drawing, as well as change the editible fields on the drawing.

add dimentions

Then I can use the Export PDF function in the file menu to export the drawing to PDF file, as well as export the 3D model with the Export menu.

export1 export2

The technical drawing and the STL model I made can be downloaded via the links.

Blender

Blender is a polygonal modeling software that is good at modeling polygon objects, 3D rendering and animation. Its modifier and geometry nodes workflow provides a non destructive modeling process and parametric functionalites. This week's class also introduced a blender addon called CAD Sketcher which provides the constrain based CAD sketch drawing functionality to blender. I have some exprience with blender before but have not gone very deep with it, so I start exploring with it.

CAD Sketcher addon

When I'm using blender, I always miss the function of creating shapes that has precise dimentions or aligns with exisiting objects and existing geometries. With this addon, blender can create precise 2D sketch and construct meshes or curves from it, combing with other modifiers to build objects.

Installation

To install the addon, I followed the installation guide from their official website.

First, go to the plugin's Github repository and download the plugin code as the zip archive.

download zip

Open Blender, open the Edit->Preferences... menu, select Add-ons tab and click the Install... button, then select the downloaded zip file to install.

preference window

Select the checkbox of installed addon to enable it, expand the settings tab and in the Preferences->Solver Module, click the install with PIP button. After the Solver Module shows "Registered", the plugin is successfully installed.

The solver module was not registered at the first time and blender displayed a warning. I have to restart blender for the solver module to appear registered

install solver

Learning the Sketcher

Now the addon has been installed, I can press N key to bring out the sidebar access it via the Sketcher tab. Click Add Sketch to select a plane that I can start drawing the sketch.

add sketch

(TODO: not complete)