Sort and Seperate txt and Mtxt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Attached is a dummy DWG file where I have various alignments and both Mtext and Text all scrunched up together.
I am looking for a command where I can fence ALL the texts and have the LISP routine spit TEXT/MTEXT in order according to their X position, If they have the EXACT same X position then it spits it out in a different row either below or above (does not matter).
I know TXTALIGN followed by TXT2MTEXT followed by EXPLODE does something similar to what I want
but it only grabs the TXT files, not the MText also.
I have been talking with Kent, and I have some code edited/expanded by Kent Cooper that works for both Mtext and Text, however it requires individual selection for ordering.
Some additional difficulty might arise when sorting the position of MTEXTs/TEXTS that are vertically near each other and alternating, such as the example:
MTEXT, TEXT, MTEXT MTEXT, TEXT
resulting in: MTEXT, MTEXT, MTEXT, TEXT, TEXT or some less than ideal circumstance.
rather than the desired: MTEXT, TEXT, MTEXT MTEXT, TEXT vertically spaced format.
I will be interested in hearing your suggestions, opinions or code on the matter.
Sincerely,
Bobston