insert_block
Places one existing AutoCAD block reference at given coordinates and fills its attributes by tag, with optional scale, rotation, and layer.
Instructions
Insere UMA referência de bloco (definição já existente) e preenche atributos por TAG.
QUANDO USAR: para colocar um suporte/símbolo em coordenadas conhecidas. Para muitos blocos a partir de planilha, use import_blocks_from_excel. Desfazível com um Ctrl+Z. Parâmetros: name (bloco existente; ver list_block_definitions), point ([x, y] ou [x, y, z] na unidade do desenho), scale (número ou [sx, sy, sz]), rotation (GRAUS, anti-horário), layer (existente, ou crie com create_missing_layer=true), attributes ({TAG: valor}; tags não existentes geram aviso). Exemplo: insert_block("SUP-GUIDE", [1250.5, 830, 4200], rotation=90, layer="SUPORTES", attributes={"TAG": "PS-101", "LINHA": "10-P-1001"}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| layer | No | ||
| point | Yes | ||
| scale | No | ||
| rotation | No | ||
| attributes | No | ||
| create_missing_layer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||