Hi Dojo,
Does someone has some sample code for assigning a visual to a view from in a script? I had a look in the Class Library but couldn't find a method/property on the IDmsView class.
Hi Jens,
I have found this piece of code that I used, probably it can be improved by checking the response.
AssignVisioToView(eurView.Id, "Europe View.vsdx", engine);
private void AssignVisioToView(int viewId, string viewVDX, Engine engine)
{
engine.SendSLNetSingleResponseMessage(new AssignVisualToViewRequestMessage(viewId, viewVDX));
}
Regards,
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.