Hello,
I´m new in this Bentley community and I have a problem with the item typs / expressions and data field.I created some item typs and they are working with a Pick List. The item typs are connected with some data fields. This points are working great with the standard LookUp.GetEntry(....) expression.But I want to use an IIF Expression for a property definition:IIf(GemarkungName="Rüttenscheid", this.GetElement().ElementID, LookUp.GetEntry("Tabelle1","GemarkungName",this. GemarkungName).LandName)The syntax runs and the ElementID will written into the LandName property, but the data field is not right. It shows ####, like in the screenshot.
Item types Dialog
attribute
date field in the modell
This is the preview, when I choos the data field. The preview shows me the right value, but in the modell isn't the right value.
Maybe someone can help me.
Thanks a lot. I hope you untderstand my problem and my english .
Best from Germany
Sven
Sven Thönelt said:The syntax runs and the ElementID will written into the LandName property, but the data field is not right. It shows ####
There needs to be some way of debugging Expressions. Like you, I have run into a problem where an expression doesn't work, but it's not apparent what I did wrong.
Regards, Jon Summers LA Solutions
Hi Jon,
Slightly off topic but ORD has an Item Type Expression builder that checks the syntax of your Expression. It's using a power platform of 10.13.02 so expect it in Microstation in the next release. It's not perfect, but definitely helps.
Regards,
Mark
OpenRoads Designer 2023 | Microstation 2023.2 | ProjectWise 2023
in case you are curious...
Hi Mark,
There is an Expression Builder in the current release of MicroStation CONNECT Ed Update 13 10.13.01.01
https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v16/en/ExpressionBuilder.html
I believe it has been in MicroStation since Update 12
https://www.credly.com/badges/2671d5d0-32f7-4a42-8aa9-bd2864aa14c1/public_url
How can you access this in ORD ? is it from the Item Types dialog ?
Thanks