Commands  ›  Architecture / Casings  ›  Architecture Create Enclosure Walls Around Rectangle

Architecture Create Enclosure Walls Around Rectangle

Architecture / Casings writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document open; Level exists; WallType resolves (or default-wall-type is available); height > 0; four corners present.

After it runs

Four Wall elements added to the model inside one committed Transaction. Their ids returned in tracker output.

When to use this

Don't use this when

Computing the rectangle itself (use GetEnclosureRectangle).

Decision flow

1) User or Bot supplies four corner XYZ values (feet) + height mm + level id + wall type id?. 2) Validate preconditions — level exists; height > 0; wallTypeId valid (fall back to Doc.GetDefaultElementTypeId(ElementTypeGroup.WallType) only if wall type id is null — never silently). 3) Open Transaction 'Create enclosure walls'. 4) For each of (A→B, B→C, C→D, D→A) call Wall.Create(doc, Line.CreateBound(p0_on_level, p1_on_level), wallTypeId, levelId, heightFt, 0, false, false) and collect the result. 5) If any Wall.Create returns null → tracker.Fail + WireError + rollback. 6) Commit. 7) Bot: JSON {ok, wall_ids, level_id, height_mm}. User: toast 'Placed 4 enclosure walls on level {level.Name}.' 8) Any exception → tracker.Fail(ex); WireFault {corners, level_id, height_mm, wall_type_id}.

What you'll see in the chat

on start
Placing four walls around enclosure rectangle…
thinking
Validating level + wall type + height…
Creating Wall A→B, B→C, C→D, D→A…
on success
Placed 4 enclosure walls on level {level_name}.
on failure
Could not place enclosure walls: {error}.

REST API

Not yet exposed

This command does not carry a [RestApi] attribute today. Once tagged, this section will auto-populate with:

  • POST /api/v1/commands/architecture_create_enclosure_walls_around_rectangle
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

enclosure walls · rectangle of walls · box out walls · IPS enclosure walls · beam boxing walls

PillarArchitecture / Casings