Commands › › Add Filled Region
Add Filled Region
Coming soon
Before you run this
Active document must be open with a detail-capable view. At least 3 XY points must be provided in mm as a JSON array: [[x,y],[x,y],...].
After it runs
A new FilledRegion element is created in the active view using the resolved or default region type.
When to use this
- User wants to create a hatched or solid region to highlight an area on a plan or section.
- AI needs to annotate a view with a bounded filled region.
Don't use this when
Creating 3D floor slabs or model regions (use Floor or ModelLine API). Drawing open polylines (use AddDetailLineCommand in a loop).
Inputs
| Name | Kind | Type | Required | Default | Description |
|---|---|---|---|---|---|
points |
config | string |
no | — | JSON array of XY points in mm: [[x,y],[x,y],...] |
regionType |
config | string |
no | — | Optional filled region type name |
Returns
| Name | Type | Description |
|---|---|---|
Result | JSON | Filled region creation result with element ID |
What you'll see in the chat
on start
Creating a filled region in the active view...
Drawing your filled region now...
Drawing your filled region now...
thinking
Parsing point coordinates from JSON...
Resolving filled region type...
Building curve loop and creating filled region...
Resolving filled region type...
Building curve loop and creating filled region...
on success
Filled region created successfully (ID: {Result}).
on failure
Could not create filled region: {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/add_filled_region- Request body schema (from
[RestApiParam]) - Response schema (from
[RestApiResponse]) - curl / JS / Python code examples
Keywords & intent patterns
add filled region · create filled region · draw region · hatch region · annotation region
Related
| Related commands | AddDetailLineCommand |
|---|---|
| Pillar |