Class IDgnWorkSetInfo has methods relating to properties...
IDgnWorkSetInfo
AddProperty
AreAllPropertiesLoaded ()
RemoveProperty
But there's no GetProperty(). How can we obtain the properties owned by a DgnWorkSetInfo object?
GetProperty()
DgnWorkSetInfo
Any response, Bentley?
Regards, Jon Summers LA Solutions
Hi Jon,
I am not WorkSet developer. Still, let me try to answer from pure EC point of view. When you call *AddProperty*, internally it generates on-the-fly ECSchema and ECClass that references DgnFileSchema. you should able to do polymorphic query to *DgnFileSchema*/*DgnWorkSetProperties* ECClass. Try polymorphic query.
I could see internal GetValue method which accepts property name and returns ECValue. If you are specifically looking for this method, I can forward this request to appropriate developer to expose API for both native and managed.
Let me know it helps.
Thanks,
Mangesh
Answer Verified By: Jon Summers
Hi Magesh,
thanks for the details. So in fact, you confirmed my former (and written quickly ;-) answer.
Honestly, it sounds like what I treat as a standard approach: When anything is not available in API, to check whether it's available as EC data and described by what EC class, should be the first step. In the past, it helped me to solve several similar situations (e.g. how to work with parametric solids or tags from NET ;-)
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Mangesh.Shelar said:I can forward this request to appropriate developer to expose API
Thanks! After all, the purpose of an API is to hide internal detail. It makes sense to complete the list of methods...
AreAllPropertiesLoaded
GetProperty
I have added enhancement 1108579.
Hi,
This Enhancement 1108579 is done. This will be available in upcoming build.
Thanks and Regards,
Snehal Deshpande
FYI. I have confirmed the following will be available in MSCE U15 SDK (very soon to be released):
[UPDATE-RH-20201210: GetProperty method will become available in the MSCE/SDK U15.1 release.]