vw_apply_class_standard
Apply a consistent Spotlight class standard (colors and line weights) to a Vectorworks document; create missing classes and optionally restyle existing ones without changing objects.
Instructions
Give the document a consistent set of Spotlight classes with colours and line weights. Use it once per show file so plots look tidy and layers can be filtered; for a single ad-hoc class use vw_create_class. Missing classes are created and styled; existing ones are left alone unless overwrite=True. No object changes class: afterwards pass class_name= to the insert tools or use vw_set_record. One revertible step (created classes are deleted, restyled ones restored). Returns {standard, created: [...], restyled: [...], unchanged: [...], note?}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "vw_apply_class_standard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only | No | Limit the work to these class names or name prefixes, for example ['Lighting', 'Rigging-Truss']. Omitted: the whole standard. | |
| 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. | |
| standard | No | Name of the bundled class standard. 'spotlight' (the only one today) defines Lighting-Instruments / -Labels / -Positions / -Focus Points / -Cables, Rigging-Truss / -Hoists, Stage-Decks / -Steps, Soft Goods, Audio, Video, Scenery, People, Venue-Architecture / -Seating, Notes, Dimensions. | spotlight |
| overwrite | No | True restyles classes that already exist (pen, fill, line weight; recorded for revert). Default False leaves existing classes alone. |