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,
Hideyuki Imaida [DevOps Advocate] Selected answer as best 17th January 2023
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();
Hideyuki Imaida [DevOps Advocate] Selected answer as best 17th January 2023
Hi Jens,
Thank you for the prompt solutions.
It works as expected.