Week 2 - Computer-Aided Design
This week, I chose Rhino and OnShape. I have done more work in GIMP and Inkscape which I will update soon.
Assignment
Computer-Aided Design
- Model (raster, vector, 2D, 3D, render, animate, simulate, ...) a possible final project, compress your images and videos, and post a description with your design files on your class page
From Assignment Details
Sections
Rhino

GIMP
GIMP is a free and open source Image Manipulation Program. I used it for compressing photos and images to use in documentation.

Basic tools include crop, or Shift + C,
, and, from the top menu, Image > Scale Image.

Use File > Export As... to see further dialogue about compression. For a Jpeg, you can choose how much to compress as well as more advanced compression settings. Use the preview option to see the effect of the compression.

Conclusion
In order to improve this workflow, I will try the following. The Squoosh App is very visual, and you can see a preview of each image. The Batcher plugin - work in GIMP, do a whole folder at a time, and use GIMP GUI to template the action and you are in the GIMP application already, for bespoke work, eg annotaion, overlays, preparation of high-quality hero images. Ffmpeg, command line tool, very powerful, use on images and video and can highly automate your workflow.
Links:
- the Batcher Plugin for GIMP, by Kamil Burda:https://kamilburda.github.io/batcher/
- ffmpeg command line tool.
- The Squoosh App (squoosh.app), recommended by an instructor in the lecture chat.
Inkscape
tbd
Additional OnShape Experimentation:
Rhino
The first task I set myself was to draw up an existing part. It aligns to my final project, which is a glue. (This is an antique from the Print Making department in the Art College).

Learn to use a callipers and the Vernier Scale for extra accuracy.

Roller Pin

The screwhead is a cylindrical extrusion that is then heavily filleted to create the curve. Then the slot is subtracted.
The commands for this were:
_Circle. Type diameter of screwhead._Rotate, and then rotate on the Green axis, 90º. Or use the Gumball. Use_Moveif you need to move it to the centre again. The mouse snaps to centre points. Make sure you have snaps on andCentreenabled._ExtrudeCrv, and you can type the distance._Cap, or use theSolidoption to close the shape._FilletEdge, and type the radius. It will be less than or equal to the extrusion distance.

However, this slot is a little wider at the top. So I went back a step, and used Scale1D to make the shape a little more widge-like. Scale1D takes a startpoint, an endpoint and from that it takes the vector to apply a non-uniform scale, then you can type a number to scale to or click something to match.

Then, Boolean_Difference, select screwhead, then Enter/Spacebar/Right-Click, and then the negative space of the slot, and then accept again.
Strap
The strap is a bent bar of metal with a threaded hole for the handle, and holes to hold the roller.
This has fillets on bends, and fillets laterally on the end corners. I used _Sweep1, with a Rail and a Cross-sectional profile. Then _Cap. Then _Fillet Edge. This was applied a number of times to get the final shape.


Handle
The Handle is axial, and based on the Rhino _Revolve command.

There were two features added by the lathe. This was created by subtracting two Toruses (_Circle, and _Pipe).

And, move to join the assembly. Follow Centre Snaps to make sure the parts line up.
Too big:

...Try again:

And with Fillet:

Assemble together:

Wingnut Design
Vertical bars in this model are to be threaded (not done in this model). Wingnuts, threaded on the inside, tightens down the material stack.
This is a basic version of this part. Base and shaft to fit M8. Three wings at 120º to allow the nut be worked manually.

The wings are drawn as a cross-section joined with a handled curve, extruded to thickness, and copied and rotated around the central axis (I used the _ArrayPolar command in this case, but _Rotate with the Copy option could do the same).
To avoid these gaps, move the extrusion towards the centre before copying.

Use the Gumball Widget to move the extrusion, or adjust the points of the curve in plane. (The blue and green grid in this case).

Files
Extra 1. Parametric Dome in OnShape

![]()
You can make Variables and use them ("after" == below in model tree structure). You can call variables instead of measurements and numbers (eg. of sides of a polygon). Type # followed by the variable name. As you type, it will prompt available variables.

Using Variables in a Sketch
However, let's declare these variables in the Variable Studio. Create it with the + icon beside your drawing tabs.

Variables on this table have document-wide scope. So, we can use the same variable in the sides of our part, as well as the pattern in our assembly.



Hinge Constraint With Limits

Note: sides variable not updated!

These were not the original intention, but we can still export a .3MF and get it to slice in PrusaSlicer!

Next Approach
I will make a construction sphere and then project a circular pattern on its surface. Or use a Flow Along a Surface command.

Extra 2. Getting a DXF into OnShape
Used the MeArm project (V3.0).

Started by using the
+icon to import the .DXF file from the computer. Found the DXF viewer unusable. Ignored.


Started a new sketch, and used the icon above the screen to import a DXF straight into the open sketch.
Some features (tabs for the laser cutter) break the DXF lines, and I ended up redrawing those lines. Overlapping edges, better for material use, make it more difficult to isolate individual parts. So, I end up duplicating a new sketch, and creating a new body for each part. This can be done in the same parts work bench, as long as you're careful to make new bodies each time.
A new nomenclature is required. I chose "Strut_Straight80082", for the 80mm x 8.2mm plain straight strut.

The elbow connector required more than just tracing. I drew the basic centre-line construction, used circles, and experimented with this metaball-like technique with bezier curves (used a tangent constraint at the tangent, and only a single handle point, to ensure perfect smoothness. I constrained the handle to the midpoint of the construction line, but this was just laziness. You could, if you wanted, build another construction line perpendicular, and use it to define a weight for the bezier.)

Mating The Components to Make the full Assembly


