Commands  ›  General  ›  Create Section From Object

Create Section From Object

General writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document must be open with an active view. User must be able to pick points or select elements in the view.

After it runs

A new ViewSection is created in the document, oriented perpendicular to the picked line. Section is NOT placed on a sheet (separate command).

When to use this

Don't use this when

Creating sections along gridlines (use CreateSectionFromGridlineCommand). Creating sections through corridors (use CreateSectionForCorridorCommand).

Inputs

NameKindTypeRequiredDefaultDescription
mode config string no "points" Selection mode: points or elementEndpoints

Returns

NameTypeDescription
CreatedSectionViewSectionThe created section view

What you'll see in the chat

on start
Creating a section view from your selected points...
Setting up custom section view...
thinking
Getting start and end points...
Calculating section orientation...
Determining section depth and height from levels...
Creating section view box...
on success
Section created: {CreatedSection} at 1:{Scale}
on failure
Couldn't create section: {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/create_section_from_object
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

create section from object · section from points · section from element · custom section · user-defined section
Patterns: create * section * object · create * section * points · section * from * element

Related commandsCreateSectionFromGridlineCommand · PlaceViewOnSheetCommand
PillarGeneral