I'm writing a reporting tool that involves alignments. I've drawn one centerline alignment in my file, if I loop thru all the alignments in the GeometryModel.Alignments it only loops once (the one I've drawn).
Now once I label that alignment, I get the original alignment object returned PLUS another alignment object for each tick mark. I can differentiate those objects that are tick marks because the Alignment.IsFinalElement is false AND the Alignment.Name is String.Empty.
Now it gets more complicated, if I had drainage structures each 3d pipe also shows up as an alignment!
Is there a straightforward way to determine what is the "roadway" alignment without having to depend on some type of alignment naming scheme when I create it?
Hi Mike,
What about getting it to check Feature Definition? Filtering anything using a Feature Definition in the Alignment group should do what you want?
Regards,
Mark
OpenRoads Designer 2023 | Microstation 2023.2 | ProjectWise 2023
Answer Verified By: Mike Robertson