Hi Dojo,
I'm trying to loop over several elements and retrieve around 20 parameter values for each element. This takes quite some time, so I'm looking for ways to improve performance. However, I haven't found any method so far that helps with this. Could anyone help me out with the following questions?
-
Is there a method in the IDms or IDmsElement class (or elsewhere in ad hoc) that allows fetching multiple parameters at once?
-
Is there a GetParametersMessage variant in SLNet similar to GetParameterMessage, so I can request multiple parameters at once?
-
I also tried using DMS.SendMessages, but it seems to send all my GetParameterMessages individually. Does anyone have experience with this?
Thanks in advance!
Hi Sofian,
I havent used a GetParameter(s)Message sucessfully before, just fetching them individually with IDmsElement.
Are these individual parameters or table params? If they are individual parameters then IDmsElement.GetStandAloneParameter<T>(pid).GetValue(); is the main way I use to get remote element parameters. If it is a table and you are sending an slnetmessage to get multiple columns then GetPartialTable is a great way to filter by columns and values keeping the overhead low. Let me know if you have any questions on how to implement these if you think they could be useful.
Regards,
Meekaeel