Jump to content

Recommended Posts

Posted (edited)

 (setq pp (getpoint"\nPick apoint "))
       (command "text" pp 100 0 "TEST" )  

When the current text style has not feed a text hight this code is working nicely.

But when the current style has a text hight it not working.

How can we identify the text style has a text hight and DISPLAY a warning message to change the style.

Edited by wimal
Posted

Please check for DXF code 40:

(entget (tblobjname "STYLE" (getvar "TEXTSTYLE")))

Posted

Thans I can continue now.

Posted
Please check for DXF code 40:

(entget (tblobjname "STYLE" (getvar "TEXTSTYLE")))

 

It could be equal to zero if not set by the user ;)

 

Otherwise get the DXF 42 which is equal to the value of the system variable textsize .

Posted
It could be equal to zero if not set by the user ;)

My opinion is that this is exactly what OP was looking for.

 

How can we identify the text style has a text hight and DISPLAY a warning message to change the style.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...