vw_export_geometry
Exports 2D geometry from a design layer as numeric data to verify drawing contents or compare fill and pen attributes before matching styles.
Instructions
Read the 2D geometry of one design layer as numbers, in document units.
Read-only. Lines and polygons come as points, arcs as centre / radius / angles, texts with origin and string, dimensions with their text; groups are descended, plug-in objects (chain dimensions, doors) are one entry each. Use it to verify what is really in the file, or to compare fill and pen attributes with neighbouring objects before drawing in the same style; vw_render_layers draws the same data as a picture, vw_screenshot shows the real window instead. Returns {document, layer, objects: [{type, class, uuid, points | origin | center, attrs?...}], truncated}, or with out_path {path, count, by_type, by_class, extent}.
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_export_geometry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Name of the design layer to read. Default: the active layer. | |
| limit | No | Maximum number of objects to export; the result says `truncated` when the layer has more. Default 20000. | |
| classes | No | Only objects in these classes (exact names). Default: every class. | |
| timeout | No | Seconds to wait for Vectorworks once it has taken the job. Default 60. | |
| out_path | No | File path on this Mac ("~" is expanded). When given, the full JSON is written there and only a summary comes back; use it for large layers to keep the conversation small. Default: the geometry is returned inline. | |
| attributes | No | True (default): each object also carries `attrs` with its fill (pattern 0 none / 1 solid background colour / 2 solid foreground colour, colours as #rrggbb), its pen (colour, weight in mils, style) and whether each follows the class (`by_class`). False: geometry only. |