Hello, I need to delete an element from an Automation Script... I need the correct call, as I haven't been able to find the relevant part of the documentation.
Hi Matej,
To delete an element from an automation script you can use the IDMs class in the following way:
IDms dms = engine.GetDms();
DmsElementId id = new DmsElementId(dataminerId, elementId);
var element = dms.GetElement(id);element.Delete();
To have access to the IDMS class it is necessary to have installed the following Nuget packages in your Automation Script Project:
- Skyline.DataMiner.Core.DataMinerSystem.Automation;
- Skyline.DataMiner.Core.DataMinerSystem.Common;
Documentation: Method Delete | DataMiner Docs
Thank you Daniela !