Skip to main content
Solved

Rotation of text affects the length value which inturn affects the snapping point wrt allignment

  • December 6, 2013
  • 1 reply
  • 6 views

When a text is rotated in the source format, we are applying the same rotation on the fme feature while writing it to a dgn file using FME writer.

 

 

In the output dgn file, if we snap that text element and if the allignment is set to right top, the snap point appears at the center top position(approximately) which indicates that the string length is is decreasing with the rotation value and the same scenario works fine when the rotation is 0 i.e, the snap point appears at the right top position as desired when the text is not rotated.

 

 

When we inspected the text element in FME inspector, we saw that there was an attribute called "igds_string_len". We tried using this attribute by setting it to [individual character width*string length] which has solved the problem for single line text, but whereas for multiline text, we are unable to set this attribute for individual text elements which are present as attribute list.

 

 

VB Code looks something like this:

 

 FMEObj.attribute("igds_text_elements{0}.igds_string_len") = CStr(dSize * Len(string))

 

 

Please suggest whether we can do it like this or if there is any alternate way to solve this problem. Thank you.

Best answer by david_r

Hi,

 

 

There are  two coordinate pairs for labels when reading dgn files with FME:

 

 

1) the geometry from the dgn, and

 

 

2) the coordinate pair given in igds_insertion_x / igds_insertion_y. This coordinate is always at the lower left corner of the label bounding box, regardless of alignment.

 

 

Hope this can be of help.

 

 

David
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

1 reply

david_r
Celebrity
  • Best Answer
  • December 6, 2013
Hi,

 

 

There are  two coordinate pairs for labels when reading dgn files with FME:

 

 

1) the geometry from the dgn, and

 

 

2) the coordinate pair given in igds_insertion_x / igds_insertion_y. This coordinate is always at the lower left corner of the label bounding box, regardless of alignment.

 

 

Hope this can be of help.

 

 

David

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