Hello:
I would like to know if it's possible to read a propertie from a cell component with an expression while creating an item type definition.
In the follownig example, I've dropped a linestyle in order to generate meshes. Doing this now I can group them and the result is exportable to an IFC. But in the process I`m lossing the line lenght.
I had thought that if I added to the group a copy of the line, I could read the lenght from there.
But when tryining to generate an expression inside the item type definition I dont know how to call those properties of the components of the group. I can only call the cell header properties.
Does anyone know how to reach those properties of the cell's components.?
Hi Francisco,
You could use the "ecx items dump" keyin to get the instance data relationshio info present in your model and try to get related items in an Item Type Expression that includes the GetRelatedInstance function. I've just started delving into this side of Expressions, but i expect it would look something like this:
this.GetElement().GetRelatedInstance("ElementPublicChildrenRelationship:0:LineStringElement").TotalLength
Regards,
Mark
OpenRoads Designer 2023 | Microstation 2023.2 | ProjectWise 2023
Answer Verified By: Francisco Luque Rodrigue
More info can be found here (still waiting for a proper blog though):
CE-Upd14 Item Types and Expression - MicroStation Forum - MicroStation - Bentley Communities
Access parametric cell variables from item property expression - MicroStation Forum - MicroStation - Bentley Communities
Microstation Item type expression extruded element - MicroStation Forum - MicroStation - Bentley Communities