Hi,
I would like to create an automation script to periodically (2x/day) save the current actual matrix crosspoints to a file.
In the UI one can right-click the matrix object and select 'save crosspoints'.
How to access this feature through automation ??
Hi,
To reproduce the behavior of the UI you can use the MatrixBackupCrossPointsRequestMessage SLNet call.
If you add it as in the following snippet
var request = new MatrixBackupCrossPointsRequestMessage
{
BackupFileName = "MyBackupName",
DataMinerID = 11,
ElementID = 2,
HostingDataMinerID = 11,
MatrixParamId = 100,
OutputsToBackup = null
};
engine.SendSLNetSingleResponseMessage(request);
You should be able to achieve your goal with this, but I do have to add a disclaimer here that these kinds of SLNet calls are internal calls and are typically not recommended to use since there is no official support, and may be subject to change in the future.
As far as I am aware there are currently no plans to do it but in any case, a new feature request can always be added here https://community.dataminer.services/feature-suggestions
This would help us in defining priorities in the roadmap for future release
I took the liberty of creating a request
https://community.dataminer.services/new-feature-suggestions/save-matrix-status-via-code/
Thanks for the clear answer João,
I’ll certainly try yous sample code out.
Any chance that this will be implemented as a standard code in a future release ?
After all this is not an exotic request I presume.