vw_point_to_world
Convert a pixel from the last mapped screenshot into Vectorworks drawing coordinates so you can locate pictured objects or verify placements.
Instructions
Turn a pixel of the last mapped screenshot into drawing coordinates.
Pure arithmetic, no job, read-only. Use it to say where something seen in the picture is, such as the gap a truss should fill, or to check that an object landed where it looks. Needs a prior vw_screenshot(mapping=True). Exact in Top/Plan views only; otherwise the result carries a warning. Returns {x, y, units, warning?}.
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": {
"px": "<px>",
"py": "<py>"
},
"name": "vw_point_to_world"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| px | Yes | Pixel x in the screenshot image, from its left edge. | |
| py | Yes | Pixel y in the screenshot image, from its top edge. | |
| mapping | No | The `mapping` dict returned by an earlier vw_screenshot(mapping=True). Default: the most recent one in this server session. |