I was trying to get the maximum number of elements for each DMA License from a DMS but I've only found this notify
string[] licenses = (string[])protocol.NotifyDataMiner(154,null,null);
This notify only retrieves the license of the DMA where the element is present, I want to get the several license information from all DMA in the cluster.
For some notifys the null can be replaced by DMAId or ElementId but I could not find any information how should this 154 be filled on the documentation.
I've also checked IDma methods without any result about license info.
Do you know if there is a way to get this license info?
You can achieve this with the following code (it's an automation script but it should also work from a QAction).
var licenseInfo = engine.SendSLNetSingleResponseMessage(new GetInfoMessage(InfoType.Licenses)) as GetLicensesResponseMessage;
engine.GenerateInformation("Max Element License count: " + licenseInfo.VolumeLicense["elements"]);
Hi, this is great. How do I use this code inside a QAction as mentioned? Thanks.
Indeed it works and it is possible to add the DMA ID inside GetInfoMessage(DMA ID,InfoType.Licenses), Thanks !