ASSEMBLIES / HUB75-WOOD-FRAME
Hub75DisplayCase
Parametrized 12 mm plywood box, eight brackets and one GlassStrip type
Model preview
One clearly parametrized assembly: five lightweight HUB75 modules, 12 mm sidewalls/bottom/roof, 9 mm attached rear, 4 mm glass and four straight-mitred wooden retainers from one GlassStrip class. The roof extends 10 mm in front and 1 mm beyond the attached rear sheet. Eight printed corner brackets share the CornerBracket definition.
Key dimensions: Outer 868 × 386 mm; 12 mm ply, 9 mm rear; roof 10/1 mm overhang; eight brackets
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
"""Hub75DisplayCase assembled from named parts and subassemblies."""
from assemblies.corner_brackets import CornerBrackets
from assemblies.glass_frame import GlassFrame
from assemblies.hub75_panels import HUB75Panels
from assemblies.wood_frame import WoodFrame
from parts.window import Window
class Hub75DisplayCase:
"""Top-level adjustable design parameters and composition."""
# Coordinate / datum conventions
#
# X = 0 : horizontal centre of the cabinet/opening.
# Changing frame wood thickness grows the cabinet outwards in ±X;
# the opening itself stays centred and keeps opening_width.
# Y = 0 : front face of the wooden cabinet.
# cabinet_depth grows only towards +Y. The rear sidewall face is
# Y=cabinet_depth and the back board starts at that same plane.
# Z = 0 : outside bottom face of the wooden cabinet.
# frame_wood_thickness grows upwards from here; the opening starts
# at Z=frame_wood_thickness and keeps opening_height.
#
# Derived reference planes:
# opening X = ±opening_width / 2
# cabinet X = ±(opening_width / 2 + frame_wood_thickness)
# opening Z = frame_wood_thickness ..
# frame_wood_thickness + opening_height
# cabinet rear Y = cabinet_depth
# back board front Y = cabinet_depth
# roof front Y = -roof_front_overhang (the deliberate front exception)
#
# Parameter rule: dimensions may move these reference planes, but no
# dependent part may freeze such a relationship into an occurrence.move.
# Parameter intent:
# lower_case = native editable SolidCraft model parameter
# _lower_case = Forge/build-time input; intentionally not native
# UPPER_CASE = fixed constants in the owning part/assembly module
#
# Display / inside opening
opening_width = 844.0
opening_height = 362.0
panel_recess_depth = 25.0
# Wood
frame_wood_thickness = 12.0
panel_wood_thickness = 9.0
cabinet_depth = 100.0
roof_front_overhang = 10.0
roof_rear_overhang = 1.0
corner_radius = 4.0
# Printed corner brackets
bracket_width = 24.0
# Glazing retainers
glazing_wood_width = 12.0
glazing_wood_depth = 12.0
def build(self):
opening_bottom_z = self.frame_wood_thickness
panels = HUB75Panels(
opening_height=self.opening_height,
opening_bottom_z=opening_bottom_z,
panel_recess_depth=self.panel_recess_depth,
)
frame = WoodFrame(
opening_width=self.opening_width,
opening_height=self.opening_height,
frame_wood_thickness=self.frame_wood_thickness,
panel_wood_thickness=self.panel_wood_thickness,
cabinet_depth=self.cabinet_depth,
roof_front_overhang=self.roof_front_overhang,
roof_rear_overhang=self.roof_rear_overhang,
corner_radius=self.corner_radius,
)
brackets = CornerBrackets(
opening_width=self.opening_width,
opening_height=self.opening_height,
frame_wood_thickness=self.frame_wood_thickness,
cabinet_depth=self.cabinet_depth,
bracket_width=self.bracket_width,
corner_radius=self.corner_radius,
)
glazing = GlassFrame(
opening_width=self.opening_width,
opening_height=self.opening_height,
opening_bottom_z=opening_bottom_z,
glazing_wood_width=self.glazing_wood_width,
glazing_wood_depth=self.glazing_wood_depth,
)
window = Window(
opening_height=self.opening_height,
opening_bottom_z=opening_bottom_z,
front_y=self.glazing_wood_depth,
)
return panels + frame + brackets + glazing + window
Generated output SolidCraft command sequence 143 generated operations · expand to inspect
component.create{ "activate": false, "grounded": false, "name": "HUB75Panels" }component.create{ "activate": false, "grounded": false, "name": "WoodBoxFrame" }component.create{ "activate": false, "grounded": false, "name": "CornerBrackets" }component.create{ "activate": false, "grounded": false, "name": "WoodGlassFrame" }component.create{ "grounded": false, "name": "Hub75PanelBasic", "parent": "HUB75Panels" }sketch.create{ "name": "d1_Hub75PanelBasic__Profile", "plane": "XZ" }sketch.line{ "closed": true, "ids": [ "a", "b", "c", "d" ], "points": [ [ -79.85, 0 ], [ 79.85, 0 ], [ 79.85, -319.71 ], [ -79.85, -319.71 ] ] }sketch.finishsolid.extrude{ "body_name": "Hub75PanelBasic", "direction": "symmetric", "distance": 14.5 }material.create{ "color": "#242B32", "density_g_cm3": 1.2, "name": "LED panel envelope" }material.assign{ "bodies": [ "Hub75PanelBasic" ], "material": "LED panel envelope" }component.activate{ "component": "root" }occurrence.copy{ "component": "Hub75PanelBasic" }occurrence.copy{ "component": "Hub75PanelBasic" }occurrence.copy{ "component": "Hub75PanelBasic" }occurrence.copy{ "component": "Hub75PanelBasic" }parameters.add{ "expression": "12", "name": "frame_wood_thickness", "unit": "mm" }parameters.add{ "expression": "100", "name": "cabinet_depth", "unit": "mm" }parameters.add{ "expression": "362", "name": "opening_height", "unit": "mm" }component.create{ "grounded": false, "name": "Board", "parent": "WoodBoxFrame" }solid.box{ "body_name": "Board", "corner": [ "-(frame_wood_thickness / 2)", 0, 0 ], "height": "opening_height", "length": "frame_wood_thickness", "width": "cabinet_depth" }material.create{ "color": "#CBA36B", "density_g_cm3": 0.55, "name": "LIGHTPLY side board" }material.assign{ "bodies": [ "Board" ], "material": "LIGHTPLY side board" }component.activate{ "component": "root" }occurrence.copy{ "component": "Board" }parameters.add{ "expression": "844", "name": "opening_width", "unit": "mm" }parameters.add{ "expression": "4", "name": "corner_radius", "unit": "mm" }component.create{ "grounded": false, "name": "Board 2", "parent": "WoodBoxFrame" }solid.box{ "body_name": "Board_2", "corner": [ "-((opening_width + (frame_wood_thickness * 2)) / 2)", 0, 0 ], "height": "frame_wood_thickness", "length": "opening_width + (frame_wood_thickness * 2)", "width": "cabinet_depth" }solid.fillet{ "body": "Board_2", "edges": [ [ -434, 50, 0 ], [ 434, 50, 0 ] ], "radius": "corner_radius" }material.create{ "color": "#CBA36B", "density_g_cm3": 0.55, "name": "LIGHTPLY bottom" }material.assign{ "bodies": [ "Board_2" ], "material": "LIGHTPLY bottom" }component.activate{ "component": "root" }parameters.add{ "expression": "9", "name": "panel_wood_thickness", "unit": "mm" }parameters.add{ "expression": "1", "name": "roof_rear_overhang", "unit": "mm" }parameters.add{ "expression": "10", "name": "roof_front_overhang", "unit": "mm" }component.create{ "grounded": false, "name": "Board 3", "parent": "WoodBoxFrame" }solid.box{ "body_name": "Board_3", "corner": [ "-((opening_width + (frame_wood_thickness * 2)) / 2)", 0, 0 ], "height": "frame_wood_thickness", "length": "opening_width + (frame_wood_thickness * 2)", "width": "((cabinet_depth + (panel_wood_thickness)) + (roof_rear_overhang)) - (-(roof_front_overhang))" }solid.fillet{ "body": "Board_3", "edges": [ [ -434, 60, 12 ], [ 434, 60, 12 ] ], "radius": "corner_radius" }material.create{ "color": "#CBA36B", "density_g_cm3": 0.55, "name": "LIGHTPLY roof" }material.assign{ "bodies": [ "Board_3" ], "material": "LIGHTPLY roof" }component.activate{ "component": "root" }component.create{ "grounded": false, "name": "Board 4", "parent": "WoodBoxFrame" }solid.box{ "body_name": "Board_4", "corner": [ "-((opening_width + (frame_wood_thickness * 2)) / 2)", 0, 0 ], "height": "frame_wood_thickness + (opening_height)", "length": "opening_width + (frame_wood_thickness * 2)", "width": "panel_wood_thickness" }material.create{ "color": "#A87D4D", "density_g_cm3": 0.55, "name": "LIGHTPLY rear" }material.assign{ "bodies": [ "Board_4" ], "material": "LIGHTPLY rear" }component.activate{ "component": "root" }parameters.add{ "expression": "24", "name": "bracket_width", "unit": "mm" }component.create{ "grounded": false, "name": "CornerBracket", "parent": "CornerBrackets" }sketch.create{ "name": "d6_CornerBracket__Profile", "plane": "XZ" }sketch.line{ "closed": true, "ids": [ "i_corner", "tip_hor_relief", "o_hor_tip", "o_hor_bevel", "o_hor", "o_corner", "o_vert", "o_vert_bevel", "o_vert_end", "tip_vert_relief", "v_tip" ], "points": [ [ 0, 0 ], [ 59.4, 0 ], [ 60, -0.6 ], [ 60, -9 ], [ 57, -12 ], [ -6, -12 ], [ -12, -6 ], [ -12, 57 ], [ -9, 60 ], [ -0.6, 60 ], [ 0, 59.4 ] ] }sketch.finishsolid.extrude{ "body_name": "CornerBracket", "direction": "symmetric", "distance": "bracket_width" }solid.fillet{ "body": "CornerBracket", "edges": [ [ 0, 0, -0 ] ], "radius": "corner_radius" }solid.chamfer{ "body": "CornerBracket", "distance": 2, "edges": [ [ 60, -12, 4.8 ], [ 58.5, -12, 10.5 ], [ 25.5, -12, 12 ], [ -9, -12, 9 ], [ -12, -12, -25.5 ], [ -10.5, -12, -58.5 ], [ -4.8, -12, -60 ], [ 60, 12, 4.8 ], [ 58.5, 12, 10.5 ], [ 25.5, 12, 12 ], [ -9, 12, 9 ], [ -12, 12, -25.5 ], [ -10.5, 12, -58.5 ], [ -4.8, 12, -60 ] ] }solid.chamfer{ "body": "CornerBracket", "distance": 0.6, "edges": [ [ 29.7, -12, -0 ], [ 29.7, 12, -0 ] ] }sketch.create{ "name": "d6_CornerBracket__Horizontal tip relief +Y", "plane": { "origin": [ 57.292893218813454, 12.707106781186548, 0 ], "x_dir": [ 0.7071067811865476, 0.7071067811865475, 0 ], "y_dir": [ 0, 0, 1 ] } }sketch.line{ "closed": true, "ids": [ "a", "b", "c" ], "points": [ [ -1.6, -1 ], [ 1, -1 ], [ 1, 1.6 ] ] }sketch.finishsolid.extrude{ "direction": "positive", "distance": 4.82842712474619, "operation": "cut", "targets": [ "CornerBracket" ] }sketch.create{ "name": "d6_CornerBracket__Horizontal tip relief -Y", "plane": { "origin": [ 57.292893218813454, -12.707106781186548, 0 ], "x_dir": [ 0.7071067811865476, -0.7071067811865475, 0 ], "y_dir": [ 0, 0, 1 ] } }sketch.line{ "closed": true, "ids": [ "a", "b", "c" ], "points": [ [ -1.6, -1 ], [ 1, -1 ], [ 1, 1.6 ] ] }sketch.finishsolid.extrude{ "direction": "negative", "distance": 4.82842712474619, "operation": "cut", "targets": [ "CornerBracket" ] }sketch.create{ "name": "d6_CornerBracket__Vertical tip relief +Y", "plane": { "origin": [ 0, 9.292893218813452, -60.707106781186546 ], "x_dir": [ 0, 0.7071067811865476, -0.7071067811865475 ], "y_dir": [ -1, 0, 0 ] } }sketch.line{ "closed": true, "ids": [ "a", "b", "c" ], "points": [ [ -1.6, -1 ], [ 1, -1 ], [ 1, 1.6 ] ] }sketch.finishsolid.extrude{ "direction": "positive", "distance": 4.82842712474619, "operation": "cut", "targets": [ "CornerBracket" ] }sketch.create{ "name": "d6_CornerBracket__Vertical tip relief -Y", "plane": { "origin": [ 0, -9.292893218813452, -60.707106781186546 ], "x_dir": [ 0, -0.7071067811865476, -0.7071067811865475 ], "y_dir": [ -1, 0, 0 ] } }sketch.line{ "closed": true, "ids": [ "a", "b", "c" ], "points": [ [ -1.6, -1 ], [ 1, -1 ], [ 1, 1.6 ] ] }sketch.finishsolid.extrude{ "direction": "negative", "distance": 4.82842712474619, "operation": "cut", "targets": [ "CornerBracket" ] }solid.hole{ "depth": 1, "diameter": 10.4, "direction": [ 0, 0, -1 ], "position": [ 24, 0, 12 ], "targets": [ "CornerBracket" ] }solid.hole{ "cs_angle": 90, "cs_diameter": 10.4, "depth": 11, "diameter": 5.4, "direction": [ 0, 0, -1 ], "position": [ 24, 0, 11 ], "targets": [ "CornerBracket" ], "type": "countersink" }solid.hole{ "depth": 0.2, "diameter": 10.8, "direction": [ 0, 0, -1 ], "position": [ 24, 0, 12 ], "targets": [ "CornerBracket" ] }solid.hole{ "depth": 0.2, "diameter": 5.800000000000001, "direction": [ 0, 0, 1 ], "position": [ 24, 0, 0 ], "targets": [ "CornerBracket" ] }solid.hole{ "depth": 1, "diameter": 10.4, "direction": [ 0, 0, -1 ], "position": [ 42, 0, 12 ], "targets": [ "CornerBracket" ] }solid.hole{ "cs_angle": 90, "cs_diameter": 10.4, "depth": 11, "diameter": 5.4, "direction": [ 0, 0, -1 ], "position": [ 42, 0, 11 ], "targets": [ "CornerBracket" ], "type": "countersink" }solid.hole{ "depth": 0.2, "diameter": 10.8, "direction": [ 0, 0, -1 ], "position": [ 42, 0, 12 ], "targets": [ "CornerBracket" ] }solid.hole{ "depth": 0.2, "diameter": 5.800000000000001, "direction": [ 0, 0, 1 ], "position": [ 42, 0, 0 ], "targets": [ "CornerBracket" ] }solid.hole{ "depth": 1, "diameter": 10.4, "direction": [ 1, 0, 0 ], "position": [ -12, 0, -24 ], "targets": [ "CornerBracket" ] }solid.hole{ "cs_angle": 90, "cs_diameter": 10.4, "depth": 11, "diameter": 5.4, "direction": [ 1, 0, 0 ], "position": [ -11, 0, -24 ], "targets": [ "CornerBracket" ], "type": "countersink" }solid.hole{ "depth": 0.2, "diameter": 10.8, "direction": [ 1, 0, 0 ], "position": [ -12, 0, -24 ], "targets": [ "CornerBracket" ] }solid.hole{ "depth": 0.2, "diameter": 5.800000000000001, "direction": [ -1, 0, 0 ], "position": [ 0, 0, -24 ], "targets": [ "CornerBracket" ] }solid.hole{ "depth": 1, "diameter": 10.4, "direction": [ 1, 0, 0 ], "position": [ -12, 0, -42 ], "targets": [ "CornerBracket" ] }solid.hole{ "cs_angle": 90, "cs_diameter": 10.4, "depth": 11, "diameter": 5.4, "direction": [ 1, 0, 0 ], "position": [ -11, 0, -42 ], "targets": [ "CornerBracket" ], "type": "countersink" }solid.hole{ "depth": 0.2, "diameter": 10.8, "direction": [ 1, 0, 0 ], "position": [ -12, 0, -42 ], "targets": [ "CornerBracket" ] }solid.hole{ "depth": 0.2, "diameter": 5.800000000000001, "direction": [ -1, 0, 0 ], "position": [ 0, 0, -42 ], "targets": [ "CornerBracket" ] }component.activate{ "component": "root" }occurrence.copy{ "component": "CornerBracket" }occurrence.copy{ "component": "CornerBracket" }occurrence.copy{ "component": "CornerBracket" }occurrence.copy{ "component": "CornerBracket" }occurrence.copy{ "component": "CornerBracket" }occurrence.copy{ "component": "CornerBracket" }occurrence.copy{ "component": "CornerBracket" }parameters.add{ "expression": "12", "name": "glazing_wood_depth", "unit": "mm" }parameters.add{ "expression": "12", "name": "glazing_wood_width", "unit": "mm" }component.create{ "grounded": false, "name": "GlassStrip", "parent": "WoodGlassFrame" }sketch.create{ "name": "d7_GlassStrip__Profile", "plane": "XZ" }sketch.line{ "closed": true, "ids": [ "a", "b", "c", "d" ], "points": [ [ "-(opening_width / 2)", 0 ], [ "opening_width / 2", 0 ], [ "(opening_width / 2) - (glazing_wood_width)", "-(glazing_wood_width)" ], [ "(-(opening_width / 2)) + (glazing_wood_width)", "-(glazing_wood_width)" ] ] }sketch.finishsolid.extrude{ "body_name": "GlassStrip", "direction": "positive", "distance": "glazing_wood_depth" }material.create{ "color": "#E3BF80", "density_g_cm3": 0.55, "name": "PINE glazing horizontal" }material.assign{ "bodies": [ "GlassStrip" ], "material": "PINE glazing horizontal" }component.activate{ "component": "root" }occurrence.copy{ "component": "GlassStrip" }component.create{ "grounded": false, "name": "GlassStrip 2", "parent": "WoodGlassFrame" }sketch.create{ "name": "d8_GlassStrip_2__Profile", "plane": "XZ" }sketch.line{ "closed": true, "ids": [ "a", "b", "c", "d" ], "points": [ [ "-(opening_height / 2)", 0 ], [ "opening_height / 2", 0 ], [ "(opening_height / 2) - (glazing_wood_width)", "-(glazing_wood_width)" ], [ "(-(opening_height / 2)) + (glazing_wood_width)", "-(glazing_wood_width)" ] ] }sketch.finishsolid.extrude{ "body_name": "GlassStrip_2", "direction": "positive", "distance": "glazing_wood_depth" }material.create{ "color": "#A9793E", "density_g_cm3": 0.55, "name": "PINE glazing vertical" }material.assign{ "bodies": [ "GlassStrip_2" ], "material": "PINE glazing vertical" }component.activate{ "component": "root" }occurrence.copy{ "component": "GlassStrip 2" }component.create{ "grounded": false, "name": "Window" }solid.box{ "body_name": "Window", "corner": [ -420, "glazing_wood_depth", "frame_wood_thickness + ((opening_height - 360 mm) / 2)" ], "height": 360, "length": 840, "width": 4 }material.create{ "color": "#B7DAEF", "density_g_cm3": 1.19, "name": "Plexiglass" }material.assign{ "bodies": [ "Window" ], "material": "Plexiglass" }component.activate{ "component": "root" }parameters.add{ "expression": "25 mm", "name": "panel_recess_depth" }occurrence.move{ "occurrence": "$hub75panelbasic_occurrence_1", "translate": [ 0, "panel_recess_depth + 7.25 mm", "frame_wood_thickness + ((opening_height - 319.71 mm) / 2)" ] }occurrence.move{ "occurrence": "$hub75panelbasic_occurrence_2", "translate": [ -320, "panel_recess_depth + 7.25 mm", "frame_wood_thickness + ((opening_height - 319.71 mm) / 2)" ] }occurrence.move{ "occurrence": "$hub75panelbasic_occurrence_3", "translate": [ -160, "panel_recess_depth + 7.25 mm", "frame_wood_thickness + ((opening_height - 319.71 mm) / 2)" ] }occurrence.move{ "occurrence": "$hub75panelbasic_occurrence_4", "translate": [ 160, "panel_recess_depth + 7.25 mm", "frame_wood_thickness + ((opening_height - 319.71 mm) / 2)" ] }occurrence.move{ "occurrence": "$hub75panelbasic_occurrence_5", "translate": [ 320, "panel_recess_depth + 7.25 mm", "frame_wood_thickness + ((opening_height - 319.71 mm) / 2)" ] }occurrence.move{ "occurrence": "$left", "translate": [ "-((opening_width / 2) + (frame_wood_thickness / 2))", 0, "frame_wood_thickness" ] }occurrence.move{ "occurrence": "$right", "translate": [ "(opening_width / 2) + (frame_wood_thickness / 2)", 0, "frame_wood_thickness" ] }occurrence.move{ "occurrence": "$roof", "translate": [ 0, "-(roof_front_overhang)", "frame_wood_thickness + (opening_height)" ] }occurrence.move{ "occurrence": "$rear", "translate": [ 0, "cabinet_depth", 0 ] }occurrence.move{ "occurrence": "$cornerbracket_occurrence_1", "translate": [ "-((opening_width / 2) + (frame_wood_thickness))", "bracket_width / 2", "opening_height + (frame_wood_thickness * 2)" ] }occurrence.move{ "occurrence": "$cornerbracket_occurrence_2", "translate": [ "-((opening_width / 2) + (frame_wood_thickness))", "cabinet_depth - (bracket_width / 2)", "opening_height + (frame_wood_thickness * 2)" ] }occurrence.move{ "angle": "90 deg", "axis": [ 0, 1, 0 ], "occurrence": "$cornerbracket_occurrence_3", "translate": [ "(opening_width / 2) + (frame_wood_thickness)", "bracket_width / 2", "opening_height + (frame_wood_thickness * 2)" ] }occurrence.move{ "angle": "90 deg", "axis": [ 0, 1, 0 ], "occurrence": "$cornerbracket_occurrence_4", "translate": [ "(opening_width / 2) + (frame_wood_thickness)", "cabinet_depth - (bracket_width / 2)", "opening_height + (frame_wood_thickness * 2)" ] }occurrence.move{ "angle": "180 deg", "axis": [ 0, 1, 0 ], "occurrence": "$cornerbracket_occurrence_5", "translate": [ "(opening_width / 2) + (frame_wood_thickness)", "bracket_width / 2", 0 ] }occurrence.move{ "angle": "180 deg", "axis": [ 0, 1, 0 ], "occurrence": "$cornerbracket_occurrence_6", "translate": [ "(opening_width / 2) + (frame_wood_thickness)", "cabinet_depth - (bracket_width / 2)", 0 ] }occurrence.move{ "angle": "270 deg", "axis": [ 0, 1, 0 ], "occurrence": "$cornerbracket_occurrence_7", "translate": [ "-((opening_width / 2) + (frame_wood_thickness))", "bracket_width / 2", 0 ] }occurrence.move{ "angle": "270 deg", "axis": [ 0, 1, 0 ], "occurrence": "$cornerbracket_occurrence_8", "translate": [ "-((opening_width / 2) + (frame_wood_thickness))", "cabinet_depth - (bracket_width / 2)", 0 ] }occurrence.move{ "occurrence": "$glassstrip_occurrence_1", "translate": [ 0, 0, "frame_wood_thickness" ] }occurrence.move{ "angle": "180 deg", "axis": [ 1, 0, 0 ], "occurrence": "$glassstrip_occurrence_2", "translate": [ 0, "glazing_wood_depth", "frame_wood_thickness + (opening_height)" ] }occurrence.move{ "angle": "90 deg", "axis": [ 0, 1, 0 ], "occurrence": "$glassstrip_2_occurrence_1", "translate": [ "-(opening_width / 2)", 0, "(frame_wood_thickness + (frame_wood_thickness + (opening_height))) / 2" ] }occurrence.move{ "angle": "-90 deg", "axis": [ 0, 1, 0 ], "occurrence": "$glassstrip_2_occurrence_2", "translate": [ "opening_width / 2", 0, "(frame_wood_thickness + (frame_wood_thickness + (opening_height))) / 2" ] }
Durable build evidence
Build information
- Build scope
main- Build variant
hub75-wood-frame- Physical owner
hub75-wood-frame- Built source
1f2fdb32d67d9af42779500c949f2900ee59c7ae- Forge
v0.23.0 ·- SolidCraft
0.49.0- Runtime
ghcr.io/brainboxemb/cad-solidcraft:v0.3.6
