Created the knob from Solidworks Modelmania 2006 #107
Replies: 2 comments
-
I finally managed to create most of the fillets in OnShape as well. This made me rethink my approach towards filleting. Instead of "filleting late" I tried the approach of "filleting early": I filleted the inner ribs and the stem (cylinder) before fusing this to the rest of the shape. Here is the result in Replicad. The changed code is: // create 3 ribs and a stem
let rib = makeBaseBox(4,40,40).translate(0,20,4).fillet(1);
let rib1 = makeBaseBox(4,40,40).translate(0,20,4).fillet(1).rotate(120,[0,0,0],[0,0,1]);
let rib2 = makeBaseBox(4,40,40).translate(0,20,4).fillet(1).rotate(240,[0,0,0],[0,0,1]);
let stem = makeCylinder(10,30,[0,0,0],[0,0,1]).fillet(1).translate(0,0,4);
rib = rib.fuse(rib1)
rib = rib.fuse(rib2)
stem = rib.fuse(stem)
// make the stem hollow, note that ribs had to be created first
let stemHole = makeCylinder(6,40,[0,0,0],[0,0,1]);
stem = stem.cut(stemHole);
stem = stem.fillet(1.0,(e)=>e.inPlane("XY",4)) I then again tried the methods contained in the code shared above to find the missing edges, but these all resulted in either kernel errors or errors as no edges were selected. |
Beta Was this translation helpful? Give feedback.
-
After tweaking some of the dimensions I was a able to achieve this result in Replicad: The outer fillets were increased to 5 mm, the wall thickness was decreased to 3 mm. These changes yield a larger rounding on the inside of the knob before filleting. The inner fillets were decreased to 0.7 mm. I used the sideView = sideView.fillet(0.7,(e)=>e.inBox([-29,-29,3],[29,29,20])); The complete code can be found here https://github.com/raydeleu/ReplicadManual/blob/main/models/knob10.js |
Beta Was this translation helpful? Give feedback.
-
As an exercise to use Replicad, I modelled the knob that was used in Solidworks Model Mania 2006. If you want to know more about these types of exercises, have a look at https://blogs.solidworks.com/tech/2023/02/24-years-of-model-mania.html.
I encountered several issues while creating this model, but after comparing the results with other CAD programs the result with Replicad is still quite good.
The main issues I encountered were:
The knob is a hollow shape (thin solid) with a wall thickness of 4 mm. As the outer edge of this shape has a fillet of 4 mm, the radius at the inside becomes 0 mm. OpenCascade has issues in creating this, so I used a reduced wall thickness of 3.9 mm. Strangely enough I encountered the same issue in OnShape which is based on the Parasolid kernel, the same kernel used in Solidworks.
The structure at the inside of the knob should be filleted with a radius of 1 mm. This seemed to be possible only for a limited number of edges. Again the same issue occured in OnShape.
As always, the code is shown below:
Beta Was this translation helpful? Give feedback.
All reactions