I'm trying to get CorridorSurface elements directly from a selection set. Can this be done?
It seems like the only way to get these is by scanning through the Corridor Surfaces and seeing that its base element is the same as any Mesh Header Elements that are in your selection, which is much less efficiency than i was hoping for.
OpenRoads Designer 2021 R2 (10.10) | Microstation CE Update 17 | ProjectWise CE 3.4
it's weird nobody answered your question yet...
I have no experience with CorridorSurface and you share no code, but I think there is probably no straightforward test available.
From what I see in SDK it looks like it is expected the surface is obtained from Corridor itself.
What I think should work is to analyze EC data, but often such code is a bit complex.
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point