Item Type Expression to get Mesh Corridor Name?

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

Parents
  • Hi all,

    Figured it out - shared below to help others delve into Item Type GetRelatedInstance for Civil Mesh objects:

     

    Get Corridor name:

    this.GetElement().GetRelatedInstance("OnSameElement:1:MeshSurfaceEntity").GetRelatedInstance("Component__Entity_Embedding:1:Corridor").GetRelatedInstance("OnSameElement:1:Corridor_Presentation").Name

     

    Get Linear Template name:

    this.GetElement().GetRelatedInstance("OnSameElement:1:MeshSurfaceEntity").GetRelatedInstance("Component__Entity_Embedding:1:Corridor").GetRelatedInstance("OnSameElement:1:ApplyTemplateCorridor_Presentation").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

     

    Regards,

    Mark


    OpenRoads Designer 2022 R1 (10.11)  |  Microstation CE Update 17.1 |  ProjectWise CE 3.4

    MISSING RESOURCE: VerifiedBy Mark Shamoun 

Reply Children
No Data