Skip to main content
Solved

DGN Text writing in different sizes? ArcGIS --> V7


jrlalessi
Contributor
Forum|alt.badge.img+6

I am working with a workbench that was authored close to 15 years ago. We had to change out the SDE Readers that are pulling in our GIS features. Since changing the reader the text be written to the DGN is coming out in different sizes. I have checked the output in the inspector and although the text is visually different the idgs_text_size attribute is consistent. I have tried to override this with the DGN styler but there is something else going on. 

Any ideas on how to either assess or fix this would be greatly appreciated. 

Best answer by jrlalessi

I found my solution. The text size only controls the height of what I am going to call a text block. I had 4 flavors of text block in my workbench, 1 line, 2 lines, 3 lines and 4 lines. But the workbench that I inherited didn't account for the line number and applied the same height to each. 

I had already stripped out all of what I thought were unnecessary attributes. 

I exposed an attribute that told me the number of lines in the annotation that was coming in a then sorted on that, I then used conditional formatting to apply the height I needed for the number of lines in the text. 

The attribute that was defining the number of lines was already in the workbench that I inherited and appeared to have been created by filter the text_string attribute based on the number of carriage returns found. 

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

3 replies

jrlalessi
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 24, 2024

Just want to add the original workbench was fme 2014, I’m working in fme 2020. 


david_r
Evangelist
  • February 24, 2024

Try inserting an AttributeKeeper just before the writer, where you only allow the attributes that are strictly necessary.


jrlalessi
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • Best Answer
  • February 29, 2024

I found my solution. The text size only controls the height of what I am going to call a text block. I had 4 flavors of text block in my workbench, 1 line, 2 lines, 3 lines and 4 lines. But the workbench that I inherited didn't account for the line number and applied the same height to each. 

I had already stripped out all of what I thought were unnecessary attributes. 

I exposed an attribute that told me the number of lines in the annotation that was coming in a then sorted on that, I then used conditional formatting to apply the height I needed for the number of lines in the text. 

The attribute that was defining the number of lines was already in the workbench that I inherited and appeared to have been created by filter the text_string attribute based on the number of carriage returns found. 


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