Hello,
Using Automation Scripts, I would like to return all Elements but excluding DVEs.
I'm calling engine.FindElements with an ElementFilter, but the it does not have any property for this.
https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.ElementFilter.html
var myElementFilter = new ElementFilter { DataMinerID = dmaId };
Element[] elements = engine.FindElements(myElementFilter);
Does anyone know how to achieve this?
Thanks in advance.
Hi Adel,
You cannot filter out DVEs using the ElementFilter.
You can however filter them out in the script itself, after retrieving the elements from the agent.
Element[] elements = engine.FindElements(myElementFilter).Where(element => !element.RawInfo.IsDynamicElement).ToArray();
Thank you Robbe, that was very helpful!