Hi all,
I am trying to assemble an Item type Expression to get the Corridor name of a Corridor Mesh object and using the keyin "ECX ITEMS DUMP" i have put together an expression that I think should be close, but with limited experience with EC Objects i cant find enough information to get it working (if its possible that is).
So far i have this:
this.GetItem("Bentley_Civil_Model__Geometry:MeshSurfaceEntity").GetRelatedInstance("Component_Entity_Embedding:1:Corridor").GetItem("CivilSchema:Corridor_Presentation").Name
Any ideas where i've gone wrong? Attached is my test EC dump file.
ECDump_test_00001.zip
Regards,
Mark
Figured it out - shared below to help others delve into Item Type GetRelatedInstance for Civil Mesh objects:
Get Corridor / Linear Template name:
this.GetElement().GetRelatedInstance("OnSameElement:1:MeshSurfaceEntity").GetRelatedInstance("Component__Entity_Embedding:1:Corridor").GetRelatedInstance("OnSameElement:1:Corridor").Name
Get Surface Template name:
this.GetElement().GetRelatedInstance("OnSameElement:1:MeshSurfaceEntity").GetRelatedInstance("Component__Entity_Embedding:1:DTMMeshComponent").GetRelatedInstance("OnSameElement:1:DTMMeshByDTMEntityTemplateRule").GetRelatedInstance("OnSameElement:0:FeatureWithName_Presentation").FeatureName
Get Surface Template Terrain name:
this.GetElement().GetRelatedInstance("OnSameElement:1:MeshSurfaceEntity").GetRelatedInstance("Component__Entity_Embedding:1:DTMMeshComponent").GetRelatedInstance("OnSameElement:1:DTMMeshByDTMEntityTemplateRule").GetRelatedInstance("Rule__Entity_MandatoryReference:0:DTMEntity").GetRelatedInstance("OnSameElement:0:FeatureWithName_Presentation").FeatureName
OpenRoads Designer 2023 | Microstation 2023.2 | ProjectWise 2023
Answer Verified By: Mark Shamoun
Very useful - thanks !
updated with a single expression for both Meshes belonging to Corridors and Linear Templates
Mark,
How/What did you use to figure this out?
Thanks,
Gerald Piotrowski