Hi,
I would like to know if it is possible to restart the current element from within a QAction. Specifically, I want to evaluate a condition in the QAction, and if the condition is not met, restart the element so the evaluation can be performed again.
Thanks
Hi Jose,
Having a look at the class library, the IDmsElement interface has a method to restart an element:
Method Restart | DataMiner Docs
Hope it helps.

Hi Jose,
I could not find an example in DataMiner Docs for this specific, but I found one to create an element:
https://docs.dataminer.services/develop/devguide/ClassLibrary/ClassLibraryExamples.html
Basically, once you instantiate a IDms object, you could use the method GetElement (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Core.DataMinerSystem.Common.IDms.GetElement.html) to retrieve a reference to the element. From there you can use the method 'Restart' to restart the element.
Hope it helps.

thanks !! this is helpful
Can you elaborate the use case why you would like to restart the element? Depending on your use case, there might bet better alternatives than restarting the element.
Hi Miguel,
You have some example how can use this method.
Thanks