AddDynamicTagUserFunction
Adds an item in a Dynamic Tag.
Syntax:
Int AddDynamicTagUserFunction(string
tagName, Dictionary<string, object> properties);
Params:
String tagName: A string parameter that contains the tag name.
Dictionary properties: A dictionary parameter that contains the properties of the tag.
Return:
Int: The position of the tag created in the dynamic vector.
Example:
Setting the MinRaw and the MaxRaw of tags NewTag1 and NewTag2:
Dictionary<string, object> propsToAdd= new Dictionary<string, object>(); propsToAdd.Add("NewTag1.MaxRaw", 5000); propsToAdd.Add("NewTag1.MinRaw", -5000); propsToAdd.Add("NewTag2.MaxRaw", 5000); propsToAdd.Add("NewTag2.MinRaw", -5000); SVTags.AddDynamicTagUserFunction(propsToAdd);
|