mtext with tracking

mtext with tracking

krzysiek.olak
Explorer Explorer
501 Views
5 Replies
Message 1 of 6

mtext with tracking

krzysiek.olak
Explorer
Explorer

Hello everyone,
Please let me know how to correctly use mtext with text formatting (tracking - spacing between characters).

 

(setq a (list 0 0))
(setq b (list 10 10))
(setq c 1000)
(command "_.mtext" a b c "")
OK
 
(setq a (list 0 0))
(setq b (list 10 10))
(setq c {\T0.8; 1000})
(command "_.mtext" a b c "")
NOK
 
0 Likes
Accepted solutions (2)
502 Views
5 Replies
Replies (5)
Message 2 of 6

ВeekeeCZ
Consultant
Consultant
Accepted solution

@krzysiek.olak wrote:

Hello everyone,
Please let me know how to correctly use mtext with text formatting (tracking - spacing between characters).

 

(setq a (list 0 0))
(setq b (list 10 10))
(setq c 1000)
(command "_.mtext" a b c "")
OK
 
(setq a (list 0 0))
(setq b (list 10 10))
(setq c "{\\T0.8; 1000}")
(command "_.mtext" a b c "")
NOK
 

It needs to be a string. And doubled backslash.

0 Likes
Message 3 of 6

krzysiek.olak
Explorer
Explorer

Thank you very much for help.

0 Likes
Message 4 of 6

krzysiek.olak
Explorer
Explorer

Command example on one line.

 

(command "_.mtext" "0,0" "20,20" "{\\T0.8; 1000}" "")

0 Likes
Message 5 of 6

ВeekeeCZ
Consultant
Consultant
Accepted solution

@krzysiek.olak wrote:

Command example on one line.

 

(command "_.mtext" "0,0" "20,20" "{\\T0.8; 1000}" "")


 

Better turn off osnaps too by using non override.

(command "_.mtext" "_non" "0,0" "_non" "20,20" "{\\T0.8; 1000}" "")

 

A list is also possible (probably preferable in LISP):

(command "_.mtext" "_non" '(0 0) "_non" '(20 20) "{\\T0.8; 1000}" "")

0 Likes
Message 6 of 6

krzysiek.olak
Explorer
Explorer

Thank you for your help.

0 Likes