I'm trying to establish a link between Microstation and Autocad (dgn/dwg).
I would like to have a object based id that is the same in Autocad and Microstation
For example in Microstation each object has an ElementID, but from what i can find out this element id is lost when exporting to DWG
and the other way around, for example each object in Autocad has an handle, but this is nowhere to be found in Microstation.
I am able to write custom plugins for this type of work, but it seems there is no common ID / handle to establish an link between objects in dwg/dgn.
my assumption is that 1:1 mapping between DGN and DWG does not exists, because from a user perspective the same elements are implemented differently in formats.
I do not know DWG format details enoug, so my question is whether DWG provides something equal to Element ID in DGN? It's ensured the id is unique and is never assigned to other element again.
Maybe Don H. Fu can provide some ideas and insights about DGN / DWG conversion.
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
You will actually find that the DGN Element ID is actually retained on conversion to DWG as AutoCADs equivalent Entity Handle. This is the same number, but in Hexadecimal format. This should allow you locate the same converted element between file formats.
Not 100% sure on DWG to DGN, but I'd expect the same behaviour.
OpenRoads Designer 2022 R1 (10.11) | Microstation CE Update 17.2 | ProjectWise CE 3.4
Model element ID's persist both ways, DWG to/from DGN. An exception is with proxies and other dropped elements. Those generated elements have assigned ID's.