manage_annotations
Create architectural annotations by labeling room centroids with computed areas, generating linear dimension chains, and adding leader callouts in CAD drawings.
Instructions
Create automated architectural annotations, centroid room labels, and linear dimension chains.
Behavior:
Mutation: Mutates drawing by generating and placing new annotation text, dimensions, and leaders.
Persistence: Inserted annotations persist in DWG/DXF database upon save.
Side Effects: Auto-creates destination annotation layers (e.g. A-ANNO-TEXT, A-ANNO-DIMS) if nonexistent.
Usage Guidelines:
When to Use: Call to automatically label room centroids with computed areas (m²), generate overall or wall-by-wall linear dimension chains, or add leader callouts with arrowheads.
Sibling Routing / Alternatives:
For manually drafting single primitive dimensions or leaders with custom points, use
draw_entities(entities="dimension|... / leader|...").For modifying, moving, restyling, or deleting existing annotation entities, use
manage_entities.For room scheduling tables, use
manage_entities(operations="area_table|...").
Actions & Parameters:
"label_spaces": Places text label with room name and computed area at centroid of closed room spaces.
"auto_dimension": Generates exterior linear dimension chain along bounding box or wall segments.
"add_leader": Inserts architectural callout leader pointing to specified geometry.
Parameters:
action: Action to perform ("label_spaces", "auto_dimension", "add_leader"). Default: "label_spaces".
handles: Optional entity handle or list of handles to annotate. If None, processes all spaces.
style: Dimensioning style for "auto_dimension" ("overall" for global extents, "segments" for each wall). Default: "overall".
offset: Offset distance in drawing units between geometry and dimension line. Default: 1.0.
text_height: Text height for labels and dimensions in drawing units. Default: 0.35.
prefix: Text prefix added before calculated area value (e.g. "Sup = "). Default: "".
suffix: Text suffix appended after area value. Default: " m²".
layer: Target layer name (default: "A-ANNO-TEXT" for space labels, "A-ANNO-DIMS" for dimensions).
color: Optional color name or ACI number.
Returns: JSON string containing created annotation handles, count, and status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| layer | No | ||
| style | No | overall | |
| action | No | label_spaces | |
| offset | No | ||
| prefix | No | ||
| suffix | No | m² | |
| handles | No | ||
| text_height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |