Hi,
I'm trying to figure out how to assign a Visio file to an element through a script. The element is being created with the following code:
Engine.SLNetRaw.HandleSingleResponseMessage(new AddElementMessage) {property initialization}.
However, it appears there isn't an attribute where I can specify the Visio name.
Additionally, I know there's a way to assign Visio files to views using "AssignVisualToViewRequestMessage".
There are also methods for assigning Visio files to services and DMAObjects, but I haven't been able to find a similar method for elements.
Thanks!
Hi Tarik,
There is a SLNetMessage "UpdateElementActiveVisioMessage" which can be used to assign a visio to an element.
Moderator note: This is an internal call and we do not recommend using this, as it is not officially supported and we cannot guarantee that it will still work in the future. As a rule, you should avoid using SLNet calls, as these are subject to change without notice.