dxf_draw
Append 2D entities like lines, polylines, circles, arcs, and text to a DXF drawing, automatically creating the file if absent.
Instructions
向 DXF 图纸追加 2D 实体;文件不存在时自动创建。
每个实体是一个 dict,公共可选字段:layer(图层名,默认 0)、 color(ACI 数字 / 颜色名如 "red" / "#RRGGBB")。
实体类型与必填字段: line: start, end polyline: points[[x,y],...], closed(bool, 默认 false) rectangle: corner[x,y], width, height circle: center[x,y], radius arc: center[x,y], radius, start_angle, end_angle(度, 逆时针) ellipse: center[x,y], major_radius, ratio(0~1), rotation(度, 可选) point: point[x,y] text: point[x,y], text, height, rotation(度, 可选) mtext: point[x,y], text, char_height, width(可选)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| entities | Yes | ||
| dxfversion | No | R2010 |