Skip to main content

Hello everyone,

I am having difficulty adding data to an existing DGN file.


I have a CSV containing X, Y, Z and a Matricule.
I want to add this data into a DGN that already contains points and predefined layers (levels).

I just want to complete the DGN with my CSV data, putting the new elements into the correct layers.

I find DGN handling in FME much harder compared to working with simple shapefile layers.

I have managed to roughly merge my points, but the values do not go into the correct layers and they don’t take the original DGN styling.
For example, I want the Z value from my CSV to go into the layer “CALC_PTTOPO_ALT”

On paper I thought this would be simple, but I can’t find the solution.
Can you help me, or tell me if there is an easier way?

In the long run, I would just like to update my DGN regularly when I have new points.

Thanks in advance,

Take a look at the Getting Started with … series. The trick with CAD is to manipulate the “format attributes” and pass these with values into the (DGN) writer

https://support.safe.com/hc/en-us/articles/25407634739085-Tutorial-Microstation-Transformations

https://support.safe.com/hc/en-us/articles/25407793814157-Working-with-CAD-Data-and-FME

FME does support writing to existing DGN files and updating them with new data. The DGN writer allows you to append new features, and you can assign features to specific levels (layers) by setting the fme_level_name (format) attribute. To map your CSV values (like Z and Matricule) to DGN levels and styling, you need to set the appropriate DGN writer attributes before writing.

To match the original DGN styling, you should set DGN-specific attributes such as fme_color, fme_line_style, and fme_font, based on the styling of existing features. You can use the AttributeManager transformer to map your CSV fields to these attributes.


Reply