wimal Posted May 27, 2013 Posted May 27, 2013 (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 May 27, 2013 by wimal Quote
MSasu Posted May 27, 2013 Posted May 27, 2013 Please check for DXF code 40: (entget (tblobjname "STYLE" (getvar "TEXTSTYLE"))) Quote
Tharwat Posted May 27, 2013 Posted May 27, 2013 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 . Quote
MSasu Posted May 27, 2013 Posted May 27, 2013 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. Quote
Recommended Posts
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.