Skip to main content
Question

extract groups of mtext and then re-assemble into attributes

  • June 16, 2020
  • 0 replies
  • 19 views

Forum|alt.badge.img

I have autocad drawings with mtext. however one group of text is not one mtext feature.

They also are center justified. so in order for me to get a common x coordinate for all the rows in a group i had to make the reader explode mtext objects.

1. now my first difficulty was to get the autocad_alignment_x. After exploding the mtext i now have this value.

2. I need to collect only the text that is the same height, font and vicinity of the first text. (there are standard strings that i can use to get the first line).

3. iterate through and separate each row of text into a separate attribute. then use the file name to merge that feature with another on the name of the file.

no problem right?

My idea is to get the x coord of the first text. then find the next text down by subtracting from the y coord. and so on until i have found all 12 pieces of the information. then i will have to send each value out to populate attributes.

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.