Hi,
I would like to know if anyone here could help me how to get the value in Equipment and "Centerline Distance" from a Element placed through "Place Equipment" with a centerline as reference.
I would like to get the value through code in C#.
OpenRail Designer CE 2022 Release 3
Hi Samuel,
Samuel Wiklund said:DistanceAlong Property from Bentley.CifNET.LinearGeometry
I think the question (the post subject) is misleading, because from the picture you posted it looks like you do not need LinearGeometry data, but Equipment data.
Samuel Wiklund said:how to get the value in Equipment and "Centerline Distance" from a Element
When there is no proper object and method available in API (which I do not know), the right way in my opinion is to get EC properties from the element and to find the right ECClass and ECProperty returned. And analysis of civil schemas to understand how the distance is represented may help.
I think to use DgnECManager to obtain all properties and to analyze it is the place where to start (see existing discussions in MicroStation forum, DgnECManager was discussed already both in forum and blog).
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Thanks for the reply, I will look into it.
Regards,
Samuel