Maybe the TextPropertySetter
So how exactly are you creating this text? Where's that fme_rotation originally coming from?
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.
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.
If you set autocad_original_rotation to the value you want, it will be written correctly in the DWG file
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
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!