Hi,
We noticed we still use this way to update the element name from a connector, is this still valid or is there are a better way in the class library? Are there some examples available?
//update elementname
string sEditElementString = newName + "| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ";DMSClass dms = new DMSClass();
Object returnValue;
dms.Notify(67, 0, (UInt32)dataMinerId, (UInt32)elementId, out returnValue);
string elementName = Convert.ToString(returnValue);
Regards,
The DMSClass is part of the Interop.SLDms assembly and is deprecated for use in connectors. Instead, you can use the class library NuGet.
An example of how to rename an element can be found here: https://docs.dataminer.services/develop/devguide/ClassLibrary/ClassLibraryExamples.html#setting-a-property-and-renaming-the-element