afritz0108 Posted 23 hours ago Share Posted 23 hours ago 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 18 hours ago Share Posted 18 hours ago (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 18 hours ago by Steven P Quote Link to comment Share on other sites More sharing options...
afritz0108 Posted 12 hours ago Author Share Posted 12 hours ago 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 16 minutes ago Share Posted 16 minutes 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.