Skip to main content
Solved

AutoCAD text rendering

  • October 15, 2020
  • 4 replies
  • 115 views

gisbradokla
Enthusiast
Forum|alt.badge.img+16

when i bring an autocad drawing into any fme wb it shows the text as a different size than what is in the drawing. If i use esri to display the drawing it shows exactly what is in the drawing. Why can't this be done in fme?

another feature i would like is to be able to turn the autocad text into linework (with the string as an attribute). I have accomplished this in some software before (can't really remember which software).

The first part of the request would be to quickly read a file make a change and write the file back out with only a small change. (virtually impossible to do with fme currently). The second part of the request would be to in effect use the drawing in fme to write out to many other software with the graphics of the drawing preserved.textrender

Best answer by deanhowell

You can turn the text into linework using the text stroker https://www.safe.com/transformers/text-stroker/

View original
Did this help you find an answer to your question?

4 replies

deanhowell
Influencer
Forum|alt.badge.img+23
  • Influencer
  • Best Answer
  • October 16, 2020

You can turn the text into linework using the text stroker https://www.safe.com/transformers/text-stroker/


gisbradokla
Enthusiast
Forum|alt.badge.img+16
  • Author
  • Enthusiast
  • October 16, 2020
deanhowell wrote:

You can turn the text into linework using the text stroker https://www.safe.com/transformers/text-stroker/

Does that make the linework exactly like the autocad drawing? autocad uses shx fonts. i don't think fme can get those fonts.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35

Rendering in the FME Data Inspector is different to AutoCAD, however, FME does preserve the information so when written back put to AutoCAD the text should look the same. You should use the same file as the template file when writing which should have the same .shx reference paths.

If you want to go AutoCAD to AutoCAD THE reader documentation has reccomendation for the settings that should be set ​for each parameter. https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/acad/realdwg_reader.htm

While FME doesn't have full support of the geometries it does a pretty good job.

As for getting the text as graphics the text stroker is the was to go but you will probably need to somehow map the fonts. And like you say the text is rendered differently in FME so it will look different.

While CAD is still heavily used I think labels are one of those things which are becoming more and more obsolete​ due to the difficulty to preserve the fonts when exchanging between formats. I would argue that labels are getting replaced by attribution (even in CAD systems). It makes for poorer quality maps, that's true, however with everyone now wanting to interact with data in maps the need for labels is getting reduced

(Just an opinion from someone who is biased towards GIS)


deanhowell
Influencer
Forum|alt.badge.img+23
  • Influencer
  • October 16, 2020
gisbradokla wrote:

Does that make the linework exactly like the autocad drawing? autocad uses shx fonts. i don't think fme can get those fonts.

In the project i am working on, we defined a CAD Standard which set out what fonts were acceptable and moved away from shx to true type fonts so we had more control. ​Although not perfect, once we knew the font coming from the dwg, the text stroker did a good job of converting from text to lines or polygons.


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