• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

pedice in text inserted with vlisp

  • Thread starter Thread starter Dr.Lube
  • Start date Start date

Dr.Lube

Guest
hello to all, can you insert a text by putting pedics? I tried to search but found only for numbers
Code:
(strcat "not verified! "ved/vmax = ")
I would like to become as soon as it is created by my lisp:
2015-02-10 11_06_04-Autodesk AutoCAD 2015 - [blocchi 04.02.2015.dwg].webpThanks :)
 
Code:
(setq testo "\\a1;non verificata! v{\\h0.7x;\\s^ed;}/v{\\h0.7x;\\s^max;} = " )
(setq valore "3,27")

(entmake
    (list
        (cons 0 "mtext")
        (cons 100 "acdbentity")
        (cons 100 "acdbmtext")
        (cons 10 '(0.0 0.0))           ;punto d'inserimento
        (cons 1 (strcat testo valore)) ;stringa testo
        (cons 7 "arial")               ;stile
    )
)
if you want to indicate the layer: (cons 8 "nomelayer"), otherwise the text is inserted into the current layer.
 
as always! :

Can you explain how it works? (for example? other things like the underlined, the bartender etc)
"\\a1;non verificata! v{\\h0.7x;\\s^ed;}/v{\\h0.7x;\\s^max;} = "
Where can I find these things? I couldn't find anything on the net :/
Code:
 (setq xy_testo (list (+ x (* 2 c1)) (- y 0.4)))
(setq testo "\\a1;non verifier! v{\\h0.7x;\\s^ed;}/v{\\h0.7x;\\s^max;} = " )
(color "count")
(setq obj2 (vla-addmtext
Modelspace
(vlax-3d-point xy_testo)
0.16
(strcat testo non_verificata "\n" testo non_da_armare)))
for those who used the vla-add ..

dennis
 
Thank you so much.

I don't understand the use of braces, can you explain it to me?

Thank you.
 
the scratch contains more instructions to pass to the same text, for [SUP]apice[/SUP] e [SUB]pedice[/SUB] followed questo schema:
{\\h0.7x;\\s^testo;}
{\\h0.7x;\\stesto^;}
where \\h0.7x; ---> text height of 0.7 current text
\\s^testo; ---> ^ before the text --->> [SUB]pedice[/SUB]
\\'stesto' ---> ^ after text --->> [SUP]apice[/SUP]
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top