Is there any API for Item Type property lookup tables?
Is CustomProperty.DefaultValueExpression related to this or does that do something else?
CustomProperty.DefaultValueExpression
Hi Jon,
Jon Summers said:Is there any API for Item Type property lookup tables?
I have not found anything where ItemTypes lookup tables are mentioned, but...
Jon Summers said:Is CustomProperty.DefaultValueExpression related to this or does that do something else?
I did not write any test code, but it looks like a right method that should be tested first.
It's known I prefer to use pure EC approach, at least to understand using what EC features ItemTypes are implemented. I did some quick tests that confirms my former findings:
My assumption is that:
If I am wrong, look up method definition can be easily added to existing EC property using CalculatedECProperty.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
In Update 14 SetExpression() API is introduced for setting up Expression values on CustomProperty class.
For the usage details you can refer following link :
https://communities.bentley.com/products/programming/microstation_programming/b/weblog/posts/working-with-itemtype-ec-expression-using-managed-native-and-com-api-s-upcoming-feature-in-microstation-connect-edition-update-14
Answer Verified By: Jon Summers