vw_import_resource
Import a symbol or plug-in style from a Vectorworks library file into the open document's resource list, keeping full record data. Places nothing in the drawing; insert afterward.
Instructions
Import one symbol or plug-in style from a library file into the open document. Goes through Vectorworks' own importer, so the resource arrives complete (a truss symbol brings its Braceworks record, a fixture symbol its Lighting Device data). Changes the document's resource list only; nothing is placed in the drawing. Afterwards place it with vw_insert_symbol (plain symbols) or the typed insert tools (truss runs, lighting devices). One revertible step: vw_revert_last removes the imported resource. Returns {name, type_code} with the name as it exists in the document.
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": {
"path": "<path>",
"name": "<name>"
},
"name": "vw_import_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact resource name inside that file (from vw_list_library). | |
| path | Yes | Absolute path of the library .vwx file (from vw_list_library). | |
| 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. | |
| new_name | No | Name for the imported copy when the document already has a resource called `name`. Omitted: imported under its own name. | |
| type_code | No | Resource type: 16 = symbol definition or plug-in style (default), 47 = record format. |