Hi Dojo,
I want to show an existing service to some views by an automation script.
Regarding elements, I could do with element.FindViews() and AddElementMessage with updated views information.
But I want to know how to do with services.
best regards,
Hi Hideyuki,
Below code example shows how you can control the views to which your service belongs.
IDms myDms = engine.GetDms();
IDmsService myService = myDms.GetService("my Service name");
IDmsView dmsView = myDms.GetView("my View");myService.Views.Add(dmsView);
myService.Update();
You can achieve this with the AddServiceMessage.
Hi Kevin,
Thank you for the another solution.
#I tried before but didn’t work with some exceptions…
I’ll check again with ‘AddServiceMessage’ later.
Hi Jens,
Thank you for the prompt solutions.
It works as expected.