Posts

check plugs

# 1. Reset Delete(All) # 2. Force Variable Creation (Prevents "Undefined" errors) d_beam = 400 w_plate = 200 t_plate = 16 t_flange = 10 bolt_gauge = 60 # 3. Create Sliders linked to those variables # Syntax: Slider(Min, Max, Increment) d_beam = Slider(200, 800, 10) SetCaption(d_beam, "Beam Depth") # Re-assert value to be safe SetValue(d_beam, 400) w_plate = Slider(100, 500, 10) SetCaption(w_plate, "Plate Width") SetValue(w_plate, 200) t_plate = Slider(5, 50, 1) SetCaption(t_plate, "Plate Thk") SetValue(t_plate, 16) t_flange = Slider(5, 30, 1) SetCaption(t_flange, "Flange Thk") SetValue(t_flange, 10) # 4. Define Geometry Points # Origin O = (0, 0) # Plate Corners (Flush with beam depth) # Note: We use the variables defined above Plate_BL = (0, -d_beam / 2) Plate_TL = (0, d_beam / 2) Plate_TR = (t_plate, d_beam / 2) Plate_BR = (t_plate, -d_beam / 2) # 5. Draw the Plate PolyPlate = Polygon(Plate_BL, Plate_TL, Plate_TR, Plate_BR) SetColor(P...