AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Text height in autolisp for AutoCAD Map 3d 2024

1 REPLY 1
Reply
Message 1 of 2
humbertoha_sae
309 Views, 1 Reply

Text height in autolisp for AutoCAD Map 3d 2024

I created a routine to automatically insert texts into the drawing.
I need to adjust the height of the text, but the command:
(command "DEFVAR" "textsize" 1)
It's not adjusting the height as it should.
Does it have anything to do with the "texteval" variable?

1 REPLY 1
Message 2 of 2
O_Eckmann
in reply to: humbertoha_sae

Hi @humbertoha_sae ,

 

To set TEXTSIZE value, you could use this line

 

(setvar "TEXTSIZE" 1.0)

 

But this value is used only if current text style has a height of 0.

If text style has a height other than 0, it's used instead of textsize value.

 

If you want to know heigth of current text style you can use this command

(cdr (assoc 40 (tblsearch "STYLE" (getvar "TEXTSTYLE"))))

 

Olivier

Olivier Eckmann

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


AutoCAD Beta