← Garden room - 4x3 - Design Profile Demo

Left Top Plate

v1 Gemini approved

Create the left top timber plate, approx 2767mm long x 122mm wide x 45mm thick, C24 structural timber. Sits flush on the sloped top face of the left wall SIP panel, fitting between the front and back top plates. Provides a sloped top face for the roof to bear on. Oriented at a 5-degree pitch falling from front to back.

Dependencies

left_wall_sip.top_face

Interfaces Provided

left_top_plate.top_face (FACE)
◉
Agent initialized (status: waiting_for_dependencies, action: check_dependencies)
◉
Provider: google | Profile: balanced
◇
Seeded interface left_wall_sip.top_face from DB (provider already approved)
◉
All dependencies resolved, starting generation
◉
Generating v1
○
Calling Gemini API for code generation (gemini-3.1-pro-preview)...
◉
Generation token budget: max_tokens=12288, thinking_budget=0 (retry_count=0)
●
Received response (309 tokens)
◆
left_top_plate_v1.py · 27 lines
import FreeCAD
import Part
from FreeCAD import Vector

# === PARAMETRIC CONSTANTS ===
WIDTH = 122        # mm (X-axis)
LENGTH = 2767      # mm (Y-axis)
THICKNESS = 45     # mm (Z-axis)

# === DOCUMENT & BODY ===
doc = FreeCAD.ActiveDocument or FreeCAD.newDocument("Model")

# === SKETCHES & FEATURES ===
# Create the timber plate as a solid rectangular cuboid
# Modelled at the origin in local coordinates. 
# The 5-degree pitch will be applied at the assembly level.
plate = Part.makeBox(WIDTH, LENGTH, THICKNESS, Vector(0, 0, 0))

# Add the solid to the document as a Part Feature named "Body" 
# to ensure it is picked up by export scripts correctly.
body = doc.addObject("Part::Feature", "Body")
body.Shape = plate

# === FINAL ===
doc.recompute()
if FreeCAD.GuiUp:
    FreeCAD.Gui.ActiveDocument.ActiveView.fitAll()
●
Executing in FreeCAD...
◉
StepAnalyzer failed: FreeCAD could not read STEP file: FreeCAD exception thrown (File to load not existing or not readable) — skipping
●
FreeCAD execution succeeded
●
Exported: model.stl
◉
Generation succeeded and component was auto-approved (v1)
◉
All components approved — triggering placement recomputation
◉
Provider updated to google / balanced
◉
Provider updated to google
◉
Provider updated to google / balanced
◉
Provider updated to google / balanced
◉
Provider updated to google / balanced
◉
Provider updated to google / balanced
◉
Provider updated to google / balanced
◉
Provider updated to google / balanced
◉
Provider updated to google / balanced
◉
Provider updated to google / balanced
◉
Provider updated to google / balanced
v0.0.985