Skip to main content

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.

Be the first to reply!

Reply