span8
span4
span8
span4
With great help from the folks here I've started being productive in writing Mapinfo tables to DWG.However I've run into a problem writing text.
I have a number of layers that need to have labels applied.One is a polygon layer.The goal is to write a piece of text in the centroid.
To achieve this I've used a LabelPointReplacer to get the something like the centroid.From here it gets bit weird.
For the life of me I cannot get the labels to orient with zero(0) rotation.Initially the label wanted to align with the first vector in the polygon so that was understandable.
I tried to overcome this by using a DWGStyler but this seems to have no effect.
My suspicion is that my source tables are Lat\Long and the CAD is GRID projected.However there must be a way to set the rotation to CAD zero.
Any assistance appreciated.
Hi@andyew,
if you want to change the coordinate system,you should use a Reprojector transformer.If the coordinates are well set in the MapInfo file,you only need to set the Destination Coordinate System.
I would start your model with adding that one directly after reading.
I hope this will get you a step further.
I extract the label point and then set the "autocad_rotation" attribute to 0 (in my case mostly an angle I specify by attribute or calculation).Then you are not dependend on object orientation extracted by fme.
The rotation from the styler has some issues when using an attribute or arithmetic,I never use that one.
Because the always rotate option says.
"The label is rotated to prevent it from appearing upside down." So it always rotate based on the object it is extracted from (I assume) unless it is horizontal..
The labels are oriented in data inspector as well?
It could have something to do with settings in your DWG file,or a DWG-template that you have specified in FME?
Hi@andyew,
If you think that the problem is the coordinate system,you could start your model with a 'CoordinateSystemRemover' transformer.This removes all coordinate systems from you data.However I would not expect that to be the problem,since the data will be written in the same system as the data is being read.Using the CoordinateSystemRemover doesn't do any harm,so you could start trying that.
Also you could check the settings of your LabelPointReplacer.It has an option for 'Always Rotate Label'.If you set that one to 'No',it should stay horizontal.
I hope this helps.
© 2019 亚搏在线Safe Software Inc |Legal