Commands  ›   ›  Add Filled Region

Add Filled Region

writes to model Public API · not yet exposed

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

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

NameKindTypeRequiredDefaultDescription
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

NameTypeDescription
ResultJSONFilled 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...
thinking
Parsing point coordinates from JSON...
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 commandsAddDetailLineCommand
Pillar