BASIC / BOLTED-FLANGE
Bolted Flange
A simple flange built from cylinders and native hole features
Model preview
A compact primitive model: Ø100 × 10 flange, Ø44 × 16 hub, Ø24 bore and six Ø9 bolt holes on a 70 mm PCD.
Key dimensions: Ø100 × 26 mm overall; Ø44 hub; Ø24 bore; 6 × Ø9 on 70 mm PCD
SolidCraft model
Open in SolidCraft Web
The editable .sc model is loaded directly from the accepted build branch.
Source
SCPF source
The exact SCPF Python source declared by this build variant.
scpf/model.py
"""Simple bolted flange built from SolidCraft primitives."""
class Flange:
bolts = 6
pcd = 70.0
def build(self):
flange = Cylinder(d=100, h=10, anchor=Anchor.BOTTOM)
hub = Cylinder(d=44, h=16, anchor=Anchor.BOTTOM).at(
0, 0, 10, anchor=Anchor.BOTTOM
)
flange = flange + hub
bore = Hole(
d=24,
depth=26,
direction=(0, 0, -1),
).at(0, 0, 26)
flange = flange + bore
bolt_hole = Hole(
d=9,
depth=10,
direction=(0, 0, -1),
).at(self.pcd / 2, 0, 10)
flange = flange + bolt_hole
return flange.circular_pattern(
bolt_hole,
count=self.bolts,
axis=Axis.Z,
)
Generated output SolidCraft command sequence 7 generated operations · expand to inspect
parameters.add{ "expression": "70", "name": "pcd", "unit": "mm" }parameters.add{ "expression": "6", "name": "bolts", "unit": "" }solid.cylinder{ "axis": "Z", "base": [ 0, 0, 0 ], "body_name": "Flange", "diameter": 100, "height": 10, "operation": "new" }solid.cylinder{ "axis": "Z", "base": [ 0, 0, 10 ], "diameter": 44, "height": 16, "operation": "join", "targets": [ "Flange" ] }solid.hole{ "depth": 26, "diameter": 24, "direction": [ 0, 0, -1 ], "position": [ 0, 0, 26 ], "targets": [ "Flange" ] }solid.hole{ "depth": 10, "diameter": 9, "direction": [ 0, 0, -1 ], "position": [ "pcd / 2", 0, 10 ], "targets": [ "Flange" ] }solid.pattern.circular{ "alignment": "right", "axis": "Z", "count": "bolts", "features": [ "Hole2" ], "reversed": false }
Durable build evidence
Build information
- Build scope
main- Build variant
bolted-flange- Physical owner
bolted-flange- Built source
1f2fdb32d67d9af42779500c949f2900ee59c7ae- Forge
v0.23.0 ·- SolidCraft
0.49.0- Runtime
ghcr.io/brainboxemb/cad-solidcraft:v0.3.6
