Arizona Posted November 17, 2022 Share Posted November 17, 2022 I need to run Textmask on the last entity created (a plain piece of text) from within a Lisp Routine. How can I do this? Quote Link to comment Share on other sites More sharing options...
mhupp Posted November 17, 2022 Share Posted November 17, 2022 (edited) Try the following (command "_.Textmask" (entlast) "") --Edit This is better (acet-textmask-make-wipeout (entlast) 0) ; 0=offset Edited November 17, 2022 by mhupp 1 Quote Link to comment Share on other sites More sharing options...
Arizona Posted November 17, 2022 Author Share Posted November 17, 2022 6 minutes ago, mhupp said: Try the following (command "_.Textmask" (entlast) "") --Edit This is better (acet-textmask-make-wipeout (entlast) 0) ; 0=offset Thanks mhupp. I tried it, here's the result: Command: (acet-textmask-make-wipeout (entlast) 0) ; error: no function definition: ACET-TEXTMASK-MAKE-WIPEOUT Quote Link to comment Share on other sites More sharing options...
mhupp Posted November 17, 2022 Share Posted November 17, 2022 (edited) Its an express tool so you would need that loaded https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/express-tools-command-shows-unknown-command-in-autocad.html also try (load "textmask") ;needed if it hasn't been used yet Edited November 17, 2022 by mhupp Quote Link to comment Share on other sites More sharing options...
Arizona Posted November 17, 2022 Author Share Posted November 17, 2022 7 minutes ago, mhupp said: Its an express tool so you would need that loaded https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-install-Express-Tools-into-AutoCAD.html also try (load "textmask") ;needed if it hasn't been used yet All of the Express Tools are loaded and working, even the ribbon menu. Quote Link to comment Share on other sites More sharing options...
mhupp Posted November 17, 2022 Share Posted November 17, 2022 (edited) https://www.cadtutor.net/forum/topic/38131-how-to-call-textmask-command-in-lisp/ Can you type the textmask command manually and work? Quote The 'c:textmask' function definition cannot accept arguments If its mtext you can use (vla-put-backgroundfill vla-object-name :vlax-true) Edited November 17, 2022 by mhupp 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.