Hi!
I'd like to read a custom property from a view in an automation script.
I know that it is possible to do that with Element or service.
For example:
Service service = engine.FindService("ServiceName");
service.GetPropertyValue("propertyName");
but does anybody know how to get a property of a view? Unfortunatly nothing found in docs.
Thanks in advance
Hi Michael,
You can achieve this by using the Class Library:
IDms myDms = engine.GetDms();
IDmsView myView = myDms.GetView("my View Name");
IDmsViewProperty myProperty = myView.Properties.SingleOrDefault(x => x.Definition.Name == "property name");
Hi Jens,
Thank you for this. I've read in the docs that i have to install the NuGet packets accordingly to be able to import those libraries. I will try that.
Thank you again