Skip to main content
Solved

How to convert DWG to DGN, blocks to cells


Hi All,

I need to make a conversion from autocad to microstation. Where the layer names need to be changed. And the autocad-blocks need to convert into cells from a cell lib.

any ideas?

Best answer by redgeographics

Layer names correspond to the FME feature type names for both DWG and DGN so you can either map those manually or use an external lookup table (for example in an Excel file) which you can apply using a Joiner or, if you feel brave, a SchemaMapper.

For the blocks-to-cells, assuming you have a DGN cell library available, if you make sure to not explode the DWG blocks (that's a reader parameter) you will end up with points representing the blocks with an attribute acad_block_name (off the top of my head) holding the name. If you fill the output attribute igds_cell_name with a value based on that block name the writer will know to take that cell out of the library and place it there. You may need to doublecheck the sizing of the cells though, AutoCAD and Microstation may be handling that in a different way.

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • Best Answer
  • January 5, 2016

Layer names correspond to the FME feature type names for both DWG and DGN so you can either map those manually or use an external lookup table (for example in an Excel file) which you can apply using a Joiner or, if you feel brave, a SchemaMapper.

For the blocks-to-cells, assuming you have a DGN cell library available, if you make sure to not explode the DWG blocks (that's a reader parameter) you will end up with points representing the blocks with an attribute acad_block_name (off the top of my head) holding the name. If you fill the output attribute igds_cell_name with a value based on that block name the writer will know to take that cell out of the library and place it there. You may need to doublecheck the sizing of the cells though, AutoCAD and Microstation may be handling that in a different way.


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • January 5, 2016
redgeographics wrote:

Layer names correspond to the FME feature type names for both DWG and DGN so you can either map those manually or use an external lookup table (for example in an Excel file) which you can apply using a Joiner or, if you feel brave, a SchemaMapper.

For the blocks-to-cells, assuming you have a DGN cell library available, if you make sure to not explode the DWG blocks (that's a reader parameter) you will end up with points representing the blocks with an attribute acad_block_name (off the top of my head) holding the name. If you fill the output attribute igds_cell_name with a value based on that block name the writer will know to take that cell out of the library and place it there. You may need to doublecheck the sizing of the cells though, AutoCAD and Microstation may be handling that in a different way.

An additional property to watch is the justification. AutoCAD and MicroStation do not use the same justification methods, so your cells might shift location (a bit) if you do not use the right values.


mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • January 5, 2016

The DGNStyler transformer will also be a great help in writing cells.

Also, check out these two articles/demos:

https://knowledge.safe.com/articles/1236/writing-d...

https://knowledge.safe.com/articles/1470/how-to-co...


fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • January 7, 2016
redgeographics wrote:

Layer names correspond to the FME feature type names for both DWG and DGN so you can either map those manually or use an external lookup table (for example in an Excel file) which you can apply using a Joiner or, if you feel brave, a SchemaMapper.

For the blocks-to-cells, assuming you have a DGN cell library available, if you make sure to not explode the DWG blocks (that's a reader parameter) you will end up with points representing the blocks with an attribute acad_block_name (off the top of my head) holding the name. If you fill the output attribute igds_cell_name with a value based on that block name the writer will know to take that cell out of the library and place it there. You may need to doublecheck the sizing of the cells though, AutoCAD and Microstation may be handling that in a different way.

Note -- the AttributeValueMapper OR the Joiner are handy to use to map the names of the blocks to the names of the "igds_cell_name" attribute.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings