Hi,
I hope somebody from Bentley team will be able to advice me.
I am not sure whether it is better to ask here (because data is created in OpenRail Designer) or in MicroStation Programming forum (because it is where I need to access data), but I guess this forum is better.
The situation is:
What I found so far:
To obtain relationships, I use code similar to this one:
instance.SelectClause = new SelectCriteria(true); DgnSelectAllRelationshipsAccessor.SetIn(instance.SelectClause.ExtendedDataValueSetter, true); IECRelationshipInstanceCollection relationships = instance.GetRelationshipInstances(); foreach (...)
My question is:
With regards,
Jan
Hi Jan,
If I understood your requirement correctly, It seems it's not possible to get stationing information from Alignment in Microstation.
You might get some information about Schema using DgnECManager.LocateSchemaInScope from DGNPlatformNet but no real Civil information is stored on the alignment object.
Hi Shashank,
thanks for your answer.
Shashank Gokhale said: no real Civil information is stored on the alignment object.
Yes, I know. In a meantime a did some more analysis, which leads to a similar question in MicroStation Programming forum.
I understand that no civil information is stored on the alignment, but using relationship the data itself is stored somewhere else (often on type 66 element).
Because the whole path from alignment object to the station data is quite short (I guess one or two relation definitions), and the schema exists in DGN file, I think I am able to identify the right type 66 element even in plain MicroStation.
But:
May be I am naive (and I am aware this low level data hacking is generally bad idea :-), but I assume when binary data is decompressed, EC XML data is received? But have no idea what algorithm is used generally for EC data persistence and whether the same approach is used by CivilSchema handler. From documentation it looks like e.g. Snappy is used when data is serialized to i-model / SQLite, but what in DGN (normal ZIP, something else)?
Shashank Gokhale said:You might get some information about Schema using DgnECManager.LocateSchemaInScope from DGNPlatformNet
Yes, but when it's about CivilSchema, which is generated in temp folder, when OpenRail Designer is started (not delivered with the product itself) and special handler is used to store the data, it really works only in civil products.
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point