library_import_model
Cleans vendor DXF/DWG front-view models into 1:1 mm catalog blocks by removing CADENAS ATTDEFs, connection points, and dimensions, converting DWG, and moving the lower-left corner to 0,0.
Instructions
Clean a vendor 2D model (DXF or DWG front view) into a 1:1 mm block and add it to your catalog.
Removes CADENAS ATTDEFs, connection points and (by default) dimensions, converts DWG through
CADCraft, moves the lower-left corner to 0,0. Use target_width_mm (real device width) when
the file is not drawn in mm. The cleaned DXF goes to /library.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_path": "<source_path>",
"catalog_id": "<catalog_id>"
},
"name": "library_import_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | generic | |
| mount | No | din_rail | |
| ports | No | ||
| scale | No | ||
| catalog_id | Yes | ||
| keep_texts | No | ||
| description | No | ||
| part_number | No | ||
| source_path | Yes | ||
| manufacturer | No | ||
| keep_dimensions | No | ||
| target_width_mm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||