Hello guys i have issue .
I'm working with DataMiner version 10.5.6 and trying to create elements dynamically from within an Automation Script when i click on button on lowcode Add Element to create in dataminer cube element with specific name protocol and etc. I attempted to use engine.CreateElement()
and also tried sending a CreateElementMessage
through engine.SendSLNetSingleResponseMessage()
.
i tried to use from here too https://docs.dataminer.services/develop/devguide/ClassLibrary/ClassLibraryElementCreation.html but saying error
cant recongnise and IDMS dms = engine.Getdms() any step by step how to do it or alternative stuffs of this thanks
However, I'm getting the following errors:
'IEngine' does not contain a definition for 'CreateElement'
'CreateElementMessage' could not be found (are you missing a using directive or an assembly reference?)
Hi Davor,
First you need to install the nuget package Skyline.DataMiner.Core.DataMinerSystem.Automation in your automation script solution.
Then in your script instead of doing protocol.GetDms like in the documentation link you do engine.GetDms, after that everything is equal to the documentation link.