Hi Dojo,
I’m exploring ideas for integrating Visio with Automation Scripts, and I’d like your input on the following use case:

1. Automation Script 1 retrieves values from an element table and processes them into output options for SetVar dropdown lists.

2. Automation Script 1 then assigns these SetVar dropdown options to Dropdown 1 and Dropdown 2 shapes in Visio, allowing users to click the dropdown shapes and select a value.
3. After the user selects values in Dropdown 1 and Dropdown 2 and clicks the Set button, Automation Script 2 should retrieve these selections and perform further processing.
My question is - is there a way in Automation Scripts to set or pass a shape’s data value and read values from the SetVar dropdowns to use them as input for Automation Script?
Thank you in advance.
Hi Jeeva,
The values you select from the dropdowns are stored as session variables. Each one is assigned to the session variable name you set in the SetVar shape data. You can then reference these session variables when running the script using the [var:] syntax.
Script:MyScript|Parameters:MyParameter=[var:SelectedValue1]|Options:NoConfirmation