Hi Dojo,
What is the most performant way to retrieve all elements for a certain protocol?
Engine
var elements = engine.FindElementsByProtocol("protocol name", "protocol version");
Class Library
var dms = engine.GetDms();
var protocol = dms.GetProtocol("protocol name", "protocol version");
var elements = dms.GetElements().Where(x => x.Protocol == protocol);
Hi Jens, if performance is critical for you I would suggest using the engine.FindElementsByProtocol as it is using the GetLiteElementInfo SLNET Message in the background.
Right now, IDms is using multiple SLNET messages (GetInfo + GetElementByIDMessage) for this. Note that the GetProtocol call would also imply requesting more information than needed (GetProtocolMessage).
Kind Regards,
Jarno