vw_set_vertices
Replaces every vertex of a polygon or polyline with a new point list, adding or removing vertices to match. Returns read-back points and area changes for validation.
Instructions
Replace every vertex of one polygon or polyline with a new point list.
Changes the document; one revertible step (vw_revert_last restores the previous vertices). Works the same for both object types (the plain vs.SetPolyPt silently does nothing on polylines). Use vw_move_objects to shift a shape unchanged. Returns {points (read back), area_before, area_after, applied, warning?}; applied is false when Vectorworks did not take every point.
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": {
"uuid": "<uuid>",
"points": "<points>"
},
"name": "vw_set_vertices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | UUID of the polygon or polyline (from vw_find_objects, vw_get_selection or vw_export_geometry). | |
| points | Yes | The complete new vertex list, [[x, y], ...] in document units; vertices are added or removed to match its length. | |
| document | No | Name of the document this must run in, as vw_list_documents shows it (".vwx" may be left out) or its full path. If another document is active, nothing changes. Omit to act on whatever document is active. | |
| arc_radii | No | Polylines only: one radius per point in document units, used for type 4 (radius) vertices. Default: none. | |
| vertex_types | No | Polylines only: one type per point, 0 corner, 1 bezier, 2 cubic, 3 arc, 4 radius. Default: all corners. Ignored for polygons. |