rodrigo_sjc_sp Posted January 31, 2013 Share Posted January 31, 2013 I need a code or help you change the size (Text Height) of all MText to 0.01 On one condition the word (COLUMNS-SALE) must contain the property contents Some Help ? Quote Link to comment Share on other sites More sharing options...
Tharwat Posted January 31, 2013 Share Posted January 31, 2013 On one condition the word (COLUMNS-SALE) must contain the property contents What you mean by contain the property contents ? Quote Link to comment Share on other sites More sharing options...
rodrigo_sjc_sp Posted January 31, 2013 Author Share Posted January 31, 2013 The text , Sample COLUMNS-SALE=1000 I have same Mtext sample Mtext COLUMNS-SALE = 1000m2 Mtext COLUMNS-SALE2 = 1000m2 Mtext COLUMNS-SALE =1000m2 Mtext COLUMNS-SALE2=1000m2 If in the text of Mtext contain the text COLUMNS-SALE , change the size to 0.01 Using Lisp; Quote Link to comment Share on other sites More sharing options...
Tharwat Posted January 31, 2013 Share Posted January 31, 2013 (edited) Things like this ... ? (defun c:TesT (/ sel) (if (ssget "_:L" '((0 . "MTEXT") (1 . "*COLUMNS-SALE*"))) (progn (vlax-for mt (setq sel (vla-get-ActiveSelectionSet (vla-get-ActiveDocument (vlax-get-acad-object)))) (vla-put-height mt 0.01) ) (vla-delete sel) ) ) (princ) ) (vl-load-com) Edited January 31, 2013 by Tharwat Forgot to localize the variable Quote Link to comment Share on other sites More sharing options...
rodrigo_sjc_sp Posted January 31, 2013 Author Share Posted January 31, 2013 Tharwat , That was it, just wanted to know how I can modify to not need to select the MText, ie to make it all MText? The Cad is asking to me select an object. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted January 31, 2013 Share Posted January 31, 2013 Tharwat , The Cad is asking to me select an object. Replace this ... "_:L" With this .. "_x" But be careful to have all layers on . Quote Link to comment Share on other sites More sharing options...
rodrigo_sjc_sp Posted January 31, 2013 Author Share Posted January 31, 2013 Thanks you Teacher Quote Link to comment Share on other sites More sharing options...
Tharwat Posted January 31, 2013 Share Posted January 31, 2013 Thanks you Teacher You're welcome any time. Quote Link to comment Share on other sites More sharing options...
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.