Set Shape Data
visio_set_shape_dataUpdate or create a Shape Data field on a Visio shape by specifying its ID, name, value, and optional label, page, or document.
Instructions
Set a Shape Data field on a shape, creating the row if it is missing.
Args: shape_id: Id from visio_list_shapes. name: Row name, as shown in visio_get_shape's shape_data keys. Letters, digits and underscores only. value: Value to store. label: Display label shown in Visio's Shape Data window. page: Page name or 1-based index. Omit for the page on screen. document: File name or 1-based index. Omit for the active document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| page | No | ||
| label | No | ||
| value | Yes | ||
| document | No | ||
| shape_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| page | No | ||
| action | Yes | ||
| detail | Yes | ||
| affected | No | ||
| document | No | ||
| shape_id | No |