Summary:
Looking for info on ELEMENT.SynchTaggedValues(String,String)
Background:
Occasionally I will add an element to the repository as a specific MDG stereoType and then change my mind. Instead of deleting and re-creating the element, I wanted to be able to "convert".
The builtin option "Element -> Advanced -> Change type" work's ok, but I wanted to create an API script that would let me "bulk convert" elements from one type to another, including adding any required tagged values.
I've got most of this working.
For the initial "conversion" I set:
.Type = inType;
.StereoType = inStereotype;
.StereoTypeEx = inStereotype; * unless you want multiple stereoTypes
.MetaType = inMetaType;
This give's me most of what I need.
I can then manually sync, by selecting the stereotype in the toolbox, and selecting (rightMouse -> Synchonize Stereotype).
But, I would prefer that this all happens as part of the script.
There is the function ELEMENT.SynchTaggedValues(String,String)
But I can't find any information on this function, or the two strings. I tried StereoType,Type (and Type,StereoType) , but that didn't seem to work.
Any ideas?