Hello,
I am looking to create an Expression to retrieve the Variation value of a profile which is part of a paramteric solid.
It looks like this:
The for me most obvious expression would be this.GetElement().GetDisplayValue("Variation"), but that does not give any result.
Is it possible to retrieve this info and if yes, how to do that?
Thanks,Andre
Hi Andre,
We need to pull variation using relationship expression. However, parametric are not that straight forward. I have forwarded this request to my team member. She will look into it and try to revert as early as possible. If you don't mind, is it possible for you to share your file?
Thanks,
Mangesh
Mangesh.Shelar said:We need to pull variation using relationship expression
Can you tell us more about relationship expressions?
Regards, Jon Summers LA Solutions
Jon Summers said:I'm sure that I'm not the only person looking forward to a blog on this topic of EC relationships.
I agree with Mangesh that this discussion is too long now, so I do not want to extend the discussion, so last comment:
There are some source of information available already in my opinion (when EC documentation delivered with MicroStation SDK is checked carefully ;-)
The problem with relationship classes (which is quite simple concept, but with complex syntax) is that it's "a superstructure" based on general EC knowledge. So without perfect understanding things like EC schema, EC class, difference between class and instance, properties and attributes (and how attributes are applied to EC classes and EC properties), it can be quite complicated to understand the relationships.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Jon/Jan,
EC documents published with U13 and onward SDKs pretty much explained EC schema, EC class, difference between class and instance, properties and attributes (and how attributes are applied to EC classes and EC properties). Please go through it and let me know if I am missing something there. I will try to get it correct for U15.
Based on all of your previous EC concern, I feel, you need to know what EC content has been persisted in dgn. What schema are in dgn, what classes are in dgn. How they are related each other. But I am not 100% sure of your need.
If you don't mind, please file an idea for new EC blog and please write all your questions there. We will try to write answers to all these question in new blog.
Thanks a lot for your offer.
I can say for myself I am happy now and there is no immediate need for extra information. I maybe uncritical, but I think I understand (after 10 years of self-study and testing) EC world very well ;-)
Regarding to relationship classes, I have not used them very often in my code (because the same information can be retrieved using normal API), or even to design own relations (because there has not been any reason so far). One from cases where my code was based completely on relationships is when I tested how to work with tags attached to elements in U13 ... in NET API some methods are missing (not sure about U14), but using ECQuery and with understanding how tags are expressed using relationships, it was not very complicated ;-)
I have to admit I use dump report nearly daily, it has helped me often to understand logical structure of data and also how normal API should be used.
But of course, any blog will be welcomed! :-) ... in fact, I have dedicated OneNote full of notes, created from V8i times when I started to play (and try to understand) with "EC things". Maybe I will find time in future to convert it to some (video?) tutorial.
With regards,
Mangesh.Shelar said:Well, writing accurate relationship expression is herculean task.
Could you explain the challenges in a bit more detail, please?
Who would be responsible for providing the 'keys' to the information?
In this case: the Mstn coder that writes the code for the Parametric Solids or a separate team like EC Frameworks?
dominic SEAH said:Could you explain the challenges in a bit more detail, please? Who would be responsible for providing the 'keys' to the information?
As others have written, this thread is getting too long and wandering off-topic. But your questions would be great if posted on an EC Schema blog!
I've posted an Idea for an EC Schema blog! Let's hope Bentley respond...