Skip to main content
Question

How do workout the model space Annotation Scale in FME?

  • November 17, 2020
  • 2 replies
  • 103 views

I am having trouble in FME to find the correct scale in model space to find the correct size of text when there are multiple annotative scales and viewports.

 

In Autocad the text element has Paper text height and Model text height, as shown below in the screenshot

CaptureThis text element is in multiple viewports at different annotative scales.

 

When viewing the 2 different viewports in paper space, one size is correct (in this example 3.5 at 1:400) and one is incorrect (when looking at the 1:200 viewport). FME sets the text size in model space using the model text height value, but we have no way to know which Annotation Scale was used to calculate that which I can see?

 

It looks like to workout the original value we need to be able to find the model space annotative scale (set in the bottom bar of AutoCad see image below)

Capture 

 

or alternatively we need to know the paper text height value (which is consistent when changing Annotative Scale in AutoCAD).

 

Are either of these values saved as an attribute when loading a dwg? I've been searching but have been unable to find it.

 

Any help would be appreciated we need to be able to display the text at the right height when there are multiple annotative scales associated to it.

 

Thanks!

 

 

@michaelpascoe​ 

2 replies

deanhowell
Influencer
Forum|alt.badge.img+23
  • Influencer
  • November 18, 2020

Hello @luke.giles​ , hope this helps.

This is a multi-step solution but should do the trick.

  1. Using the autocad_anno_scale{} list you can get the various scale options - in this case autocad_anno_scale{0} is 1:200 and autocad_anno_scale{1} is 1:400annoscalelist
  2. Using the entity id link the viewport and the textviewporthandleviewporthandleoriginal
  3. Apply the viewport scale viewportscale

  • Author
  • November 18, 2020
deanhowell wrote:

Hello @luke.giles​ , hope this helps.

This is a multi-step solution but should do the trick.

  1. Using the autocad_anno_scale{} list you can get the various scale options - in this case autocad_anno_scale{0} is 1:200 and autocad_anno_scale{1} is 1:400annoscalelist
  2. Using the entity id link the viewport and the textviewporthandleviewporthandleoriginal
  3. Apply the viewport scale viewportscale

Hi @deanhowell​ 

 

Thanks for the response. This solution works when there is only one viewport that has the feature. But when the feature is in 2 viewports at different annotative scales, the autocad_text_size in model space is only correct from one of them to translate to paperspace correctly, unless we know what the autocad_text_size annotative scale in model space translating both of them to the correct size is what I cannot manage to do.


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