# Managed text API v1

RC173 routes ordinary plugin labels to A-TEXT. Use the existing managed `kind: "note"` shape for native plain text. Check `(await snip.board.context()).managedTextContractVersion === 1` when your plugin requires this behaviour.

```js
const label = {
  role: "plan.title",
  shape: {
    kind: "note",
    anchor: {x: 0, y: 1800},
    widthMm: 2400,
    heightMm: 400,
    text: "CURVED RAMP PLAN",
    paperTextHeightMm: 2.5,
  },
  style: {color: "#20242A"},
};
```

Add the label to `snip.instance.propose().members`. Its top-left anchor, frame width and frame height use model millimetres. Text height uses paper millimetres. Use a stable role for each label. The instance, its label and its other members are placed or regenerated in one Undo step.

Find A-TEXT availability at `snip.board.context().textLayer`. If the layer is locked, hidden, missing or ambiguous, the host explains what to fix before placement. On an approved regeneration, labels from an older instance move to A-TEXT with their existing object IDs. A label already on the board is available for normal Text editing where it currently sits.

Double-click the label and save its text in the native editor. A manual content edit follows the same managed role when the plugin regenerates the original instance. The plugin still controls the label's location and frame through its proposal. Native saves and .snipboard packages retain the link and edits. DXF exchanges the visible text on A-TEXT. Keep a native board package when you need the editable plugin recipe.

Use `dimension` for a native DIM and `scopeNote` for a calculation or workshop note. Use the native blocks API for parking bay tags and schedules.

[Managed proposal schema](/plugins/instance-propose.schema.json) · [TypeScript declarations](/plugins/api-v1.d.ts)
