Execute Ezdxf Script
execute_ezdxf_scriptExecute custom ezdxf Python scripts to automate parametric drafting and calculations, with access to document, model space, and math functions. Assign results to a variable for direct output.
Instructions
Execute custom Python code using ezdxf for advanced parametric drafting or calculations.
Variables provided in scope: doc, msp, ezdxf, math, target_file, result.
Assign any final output message to variable result.
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": {
"script_code": "<script_code>"
},
"name": "execute_ezdxf_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_code | Yes | ||
| target_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||