add_dimension
Create native AutoCAD dimension entities in model space for linear, aligned, radial, diameter, and angular measurements. Use to add accurate dimensions to the open drawing; undoable with Ctrl+Z.
Instructions
Cria uma cota nativa (entidade DIMENSION) no espaço modelo. Desfazível com um Ctrl+Z.
QUANDO USAR: cotar distâncias entre suportes, diâmetros, raios e ângulos direto no desenho aberto.
Parâmetros por tipo: linear (rotação por angle_deg: 0 = horizontal [padrão], 90 = vertical): p1, p2, location
(ponto por onde passa a linha de cota); aligned: p1, p2, location (ponto do texto); radius e diameter: center, radius,
angle_deg (direção do ponto na circunferência; padrão 45); angular: vertex, p1, p2, location (ponto do texto). layer opcional.
Exemplo: add_dimension(kind="linear", p1=[0,0], p2=[1500,0], location=[750,-200], layer="COTAS")
O estilo/tamanho vem do estilo de cota ativo do desenho (DIMSTYLE); a ferramenta não o altera.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p1 | No | ||
| p2 | No | ||
| kind | Yes | ||
| layer | No | ||
| center | No | ||
| radius | No | ||
| vertex | No | ||
| location | No | ||
| angle_deg | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||