Create drawing views
drw_create_viewsAdds associative standard views with centerlines to a KOMPAS-3D drawing from a saved model, so projections follow model changes. Position views, set scale, then add sections and dimensions.
Instructions
Add standard ASSOCIATIVE views of a saved model to a drawing (they follow model changes), with centre lines. Check the layout with view_capture. Sections: drw_add_section. Dimensions: drw_add_dimension.
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": {
"doc": "<doc>",
"model_path": "<model_path>"
},
"name": "drw_create_views"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | front view position on the sheet, mm | |
| y | No | front view position on the sheet, mm | |
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| gap | No | distance between views, mm | |
| scale | No | ГОСТ 2.302: 1, 0.5, 0.4, 0.25, 2, 2.5, 4 … | |
| views | No | standard projections (ЕСКД layout: top below, left to the right of the front view) | |
| model_path | Yes | saved .m3d/.a3d inside the allowed roots | |
| centerlines | No |