option for superscript and subscript in text

option for superscript and subscript in text

eyal.ch
Collaborator Collaborator
1,337 Views
4 Replies
Message 1 of 5

option for superscript and subscript in text

eyal.ch
Collaborator
Collaborator

Hi all,

Can anyone help with lisp that does exactly as with the multiline text, 

for example in text X2 - after selecting the number 2, I will click upper or lower and the number will be superscript or subscript, like this: 

eyalch_1-1682406995770.png

 

 

eyalch_0-1682406741089.png

thank you

0 Likes
1,338 Views
4 Replies
Replies (4)
Message 2 of 5

komondormrex
Mentor
Mentor

hey,

you may try to use unicode characters in text string for superscript or subscript digits if they are in font used.

 

komondormrex_0-1682408581398.png

 

Message 3 of 5

Kent1Cooper
Consultant
Consultant

Since MTEXT can do this already, is there some reason that you need it to be plain TEXT?

Kent Cooper, AIA
0 Likes
Message 4 of 5

eyal.ch
Collaborator
Collaborator

hi @Kent1Cooper ,

because I have a lot of files that are already made with text, and I want to change them.

 

0 Likes
Message 5 of 5

Kent1Cooper
Consultant
Consultant

And how is subscript/superscript currently done in those existing Text objects?  With separate Text objects for the lowered/raised elements?  With fonts using custom-defined characters?  They're just not sub/super at all?  Something else?  In other words, given a routine to do what you want, what would you be selecting and how would it need to be changed?

Kent Cooper, AIA
0 Likes