Commands  ›  Annotation  ›  Annotation Add Dimension Between Two Gridlines

Annotation Add Dimension Between Two Gridlines

Annotation writes to model Public API · not yet exposed

Coming soon

Before you run this

Active view is a plan / RCP. Two gridlines selected (or pickable in sequence). Project annotation style for grid dimensions defined.

After it runs

One DimensionString placed between the two gridlines on the active view, using the configured grid-dimension type; existing annotation untouched.

When to use this

Don't use this when

Element-to-grid dimensions (use the dimension-from-gridline command), elevation views, or non-orthogonal grid geometry.

Decision flow

1. Confirm the active view is a plan / RCP and read its scale.
2. Read the two gridline references the user picked.
3. Compute a perpendicular dimension line clear of other annotation.
4. Create a DimensionString in one Transaction using the project grid-dimension type.
5. Report the dimension created + its measured value.

What you'll see in the chat

on start
I'll add a dimension between those two gridlines now.
thinking
Reading the gridline references and finding a clear position for the dimension line.
on success
Done — dimension added between {grid_a} and {grid_b} ({distance} mm).
on failure
Couldn't add the dimension: {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/annotation_add_dimension_between_two_gridlines
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

dimension between gridlines · grid dimension · setting out · plan dimensions

PillarAnnotation