vw_create_class
Creates a single named class with default attributes in the open Vectorworks document, leaving the active class unchanged and moving no objects into it.
Instructions
Create one class in the open document with default attributes. For a whole consistent class set with colours and line weights use vw_apply_class_standard instead. The active class is left unchanged and no object is moved into the new class (pass class_name= to the insert tools, or vw_set_record). One revertible step: vw_revert_last deletes the class. Returns {name}.
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": {
"name": "<name>"
},
"name": "vw_create_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Class name; use '-' for hierarchy, for example 'Lighting-Truss'. Fails if the class exists. | |
| document | No | Name of the document this call may change, as listed by vw_list_documents. If given and another document is in front, nothing changes and the call fails; use vw_switch_document first. Always pass it for writes. |