Skip to main content
Solved

Manipulate "Text Location" orientation

  • August 6, 2019
  • 6 replies
  • 187 views

geogaard
Contributor
Forum|alt.badge.img+15

I am trying to adjust the text orientation by changing the fme_rotation attribute in the TextAdder transformer. However, the text orientation attributes does not take the changes. Do you know how I can access or somehow manipulate the values in the red box from the image below?

 

In this example i have change the rotation to 116, but the text still have a rotation of 118.

Best answer by ebygomm

If you set autocad_original_rotation to the value you want, it will be written correctly in the DWG file

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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.

6 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

Maybe the TextPropertySetter

So how exactly are you creating this text? Where's that fme_rotation originally coming from?


geogaard
Contributor
Forum|alt.badge.img+15
  • Author
  • Contributor
  • August 6, 2019

Maybe the TextPropertySetter

So how exactly are you creating this text? Where's that fme_rotation originally coming from?

The text comes from a DWG-file, where the original rotation comes from. I want to manipulate that rotation. Even if I do change the rotation attribute value (fme_rotation or autocad_rotation), it does not change orientation rotation in the text location. Thus when writing back to dwg it uses the original rotation.


redgeographics
Celebrity
Forum|alt.badge.img+62

The text comes from a DWG-file, where the original rotation comes from. I want to manipulate that rotation. Even if I do change the rotation attribute value (fme_rotation or autocad_rotation), it does not change orientation rotation in the text location. Thus when writing back to dwg it uses the original rotation.

Okay, my TextPropertySetter does work if you're sending stuff to the Data Inspector, but not if you write back to a DWG.

The workaround is to first use a CoordinateExtractor to grab the x and y coordinates of the texts, then a Rotator to do the actual rotation, using the x and y coordinate as the rotation origin.


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • August 6, 2019

If you set autocad_original_rotation to the value you want, it will be written correctly in the DWG file


geogaard
Contributor
Forum|alt.badge.img+15
  • Author
  • Contributor
  • August 6, 2019

If you set autocad_original_rotation to the value you want, it will be written correctly in the DWG file

Thank you! that worked like a charm


geogaard
Contributor
Forum|alt.badge.img+15
  • Author
  • Contributor
  • August 6, 2019

Okay, my TextPropertySetter does work if you're sending stuff to the Data Inspector, but not if you write back to a DWG.

The workaround is to first use a CoordinateExtractor to grab the x and y coordinates of the texts, then a Rotator to do the actual rotation, using the x and y coordinate as the rotation origin.

Yeah, that's what I noticed as well. Thanks for helping!