Commands › Architecture / Tracing › Architecture Create Walls From Flattened Curves
Architecture Create Walls From Flattened Curves
Coming soon
Before you run this
Active document open; level id resolves; at least one curve id resolves to a ModelCurve / DetailLine / Line-like element.
After it runs
N Walls added where N = usable curves. Skipped count returned. One committed Transaction. Audit entry recorded.
When to use this
- Batch wall tracing from CAD-traced curves or detail lines.
Don't use this when
Creating a single wall manually (use Revit's native Wall tool).
Decision flow
1) Resolvers: curve element ids csv, level id, wall type id?, height mm (default 3000). 2) Validate — level id resolves to a Level; height > 0; at least one curve id present. Else WireError + abort. 3) Resolve wall type id (explicit → validate; else doc.GetDefaultElementTypeId(WallType); if none → WireError + abort). 4) Open Transaction 'Create walls from curves'. 5) For each curve id: resolve element; if not a ModelCurve-like → WireRecoverable + skipped++. Otherwise flatten via FlattenCurveToLevelElevation.ToZ(curve, level.Elevation); if null → WireRecoverable + skipped++; else Wall.Create and accumulate id. 6) Commit. 7) Bot: JSON {ok, wall_ids, skipped, level_id, height_mm}. User: toast 'Created {n} wall(s) (skipped {m}).' 8) Any exception → tracker.Fail(ex); WireFault payload.
What you'll see in the chat
on start
Creating walls from flattened curves…
thinking
Validating level + wall type + height…
Flattening each curve to level elevation…
Calling Wall.Create per curve…
Flattening each curve to level elevation…
Calling Wall.Create per curve…
on success
Created {wall_count} wall(s); skipped {skipped}.
on failure
Could not create 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_walls_from_flattened_curves- Request body schema (from
[RestApiParam]) - Response schema (from
[RestApiResponse]) - curl / JS / Python code examples
Keywords & intent patterns
walls from curves · batch wall create · curve to wall · trace walls · CAD-to-wall
Related
| Pillar | Architecture / Tracing |
|---|