IUAVariable.SetDynamicLink(source, sourceArrayIndex, mode)
    Sets a dynamic link to a specific array (first argument) cell (second argument). The third argument is optional and sets the dynamic link mode.
void SetDynamicLink(IUAVariablesource, uintsourceArrayIndex, DynamicLinkModemode);
Arguments
      - source(IUAVariable)
- TheBrowseNameof the source variable.
- sourceArrayIndex(uint)
- A cell of the source array.
- mode(DynamicLinkMode)
- An optional argument that specifies the dynamic link mode.The following dynamic link modes are available:- DynamicLinkMode.Read(default)
- Read (from source node to parent).
- DynamicLinkMode.Write
- Write (from parent to source).
- DynamicLinkMode.ReadWrite
- Read and write (bidirectional).
- ResourceURI
- A C# object that contains the path indicated in the argument.
 
Example
      The following example shows an API that sets a read dynamic link on the 
Speed
 property (whose node is represented by SpeedVariable
) of the Motor1
 object. The link source is the second cell of the SpeedList
 array:var myObj = Owner.Get<Motor>("Motor1"); var speedValue = Project.Current.FindVariable("SpeedList"); myObj.SpeedVariable.SetDynamicLink(speedValue, 2, DynamicLinkMode.Read);
Provide Feedback