afritz0108 Posted Friday at 02:40 PM Share Posted Friday at 02:40 PM Can anyone help me im looking for a lisp that can change text inside of a block it’s just normal text That same block is in multiple drawings is there a way to batch change it Quote Link to comment Share on other sites More sharing options...
Steven P Posted Friday at 07:59 PM Share Posted Friday at 07:59 PM (edited) This might work, https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/find-and-replace-text/td-p/5649883 Might need to add (command "regen") at the end of the code to update blocks. I tend to use the first code on the page. Edited Friday at 08:02 PM by Steven P Quote Link to comment Share on other sites More sharing options...
afritz0108 Posted yesterday at 02:15 AM Author Share Posted yesterday at 02:15 AM thank you for the response I have no experience with autocad lisp im not sure where I would add the regen in the code Quote Link to comment Share on other sites More sharing options...
Steven P Posted 23 hours ago Share Posted 23 hours ago I'll assume you can copy the code to a text file and save it as something with a .lsp extension. Add the file to the startup suit from appload.... So in the code linked above there will be a ) right at the end, add a new line just before that and paste in (command "regen") in that new line. Otherwise run the find and replace LISP and then just do the CAD command "Regen" which will do the same thing but 1 extra step by the user 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.