reveal all charachters in a specific text

reveal all charachters in a specific text

eyal.ch
Collaborator Collaborator
284 Views
2 Replies
Message 1 of 3

reveal all charachters in a specific text

eyal.ch
Collaborator
Collaborator

Hi all,

how can I click on a text or multiline text and see all its characters and their codes?

 

thank you

 

0 Likes
285 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant

Will this do what you want?

 

(cdr (assoc 1 (entget (car (entsel "\nSelect Text/Mtext to see its contents text string, or Dimension to see override text if any: ")))))

 

It's potentially complicated by the fact that very long Mtext breaks up the content into multiple entries, not under DXF code 1, if that might sometimes be your situation.

 

It will show you codes for font overrides, superscript, color, etc. within Mtext and override Dimension text, and underline/overscore/degrees/diameter codes in plain Text, and the <> representing the measurement if part of override Dimension text.

 

If by "their codes" you mean the ASCII code numbers of the characters involved:

 

(vl-string->list (cdr (assoc 1 (entget (car (entsel "\nSelect Text/Mtext...: "))))))

Kent Cooper, AIA
0 Likes
Message 3 of 3

john.uhden
Mentor
Mentor

@Kent1Cooper ,

I agree with the dxf issue. but you can get the full string by (vlax-get object 'textstring)

John F. Uhden

0 Likes