cad_render
Render the active CAD document to PNG, GIF, or WebGL delta using orthographic, 3D view, section, exploded, or animation modes. Pick the mode that produces the visual you need.
Instructions
Render the document in a selected mode.
按 ``mode`` 渲染当前文档:
- ortho:2D 正交投影 PNG(top/front/side)
- view_3d:按存储的三维视图定义渲染 PNG
- section:平面剖切 PNG(plane=XY/YZ/XZ)
- explode:爆炸视图 PNG
- animation:orbit/turntable GIF 动画
- webgl:WebGL 增量同步 delta
When not to use: ``cad_render`` produces images / sync deltas only. To
store or edit a named view *definition* before rendering use
``cad_view``; for drawing-sheet exports (SVG/DXF/PDF) use
``cad_drawing`` (action=export); for interop geometry files use
``cad_file`` (export).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| render | Yes | Render request, discriminated by `mode`: ortho, view_3d, section, explode, animation or webgl. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Render mode used | |
| path | No | Path of the written output file | |
| status | Yes | Operation status | |
| message | No | Status description | |
| payload | No | Extra mode-specific data (webgl deltas) | |
| data_uri | No | Output data URI (base64) | |
| size_bytes | No | Output size in bytes |