Skip to main content
Solved

Manipulate "Text Location" orientation


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

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

6 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

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
redgeographics wrote:

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+49
geogaard wrote:

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+32
  • 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
ebygomm wrote:

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
redgeographics wrote:

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!


Reply


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