learner1230 Posted August 22, 2019 Posted August 22, 2019 hi , i have approximately 1000 dwg files in my folder , and i have to run a lisp in all of those files , is there any easy way script or macro for open files / run commands which i want / save & close file / open next dwg and the same procces for until finish all files ... I tried a lot of exaples of script but nothing match thank you for your help Quote
maratovich Posted August 22, 2019 Posted August 22, 2019 https://www.kdmsoft.net/autoviewport.html Quote
BIGAL Posted August 23, 2019 Posted August 23, 2019 Another https://github.com/ADN-DevTech/ScriptPro-installer Quote
learner1230 Posted August 23, 2019 Author Posted August 23, 2019 thank you so much for your help, but what I do is open a drawing remplace texts save close and open next drawing, also the texts is different between files and I want to do it with a script or macro visual basic if you have any idea. thank you Quote
maratovich Posted August 23, 2019 Posted August 23, 2019 Have you watched Autoviewport ? There is a function - Run script in many files. Attach an example of what you want. Quote
learner1230 Posted August 24, 2019 Author Posted August 24, 2019 I attached a excel data and picture, what I want to is replace the old text by the new text and for that I want just copy the colonne E in excel to autocad, the script run, for that I had done a lsp for the function replace and it match good but for the routine open save close open the next I hadn't found a function loop script or what can I do to collecte between open replace save close sous_test.xlsx Quote
BIGAL Posted August 25, 2019 Posted August 25, 2019 (edited) You could read a csv file dwgname,oldtext.newtext and write the script file. You would pass the variables to a lisp (load "mytexter") (mytexter "oldtext" "newtext") open dwg1 (load "mytexter") (mytexter "oldtext" "newtext") close Y open dwg2 ………. Edited August 25, 2019 by BIGAL Quote
learner1230 Posted August 26, 2019 Author Posted August 26, 2019 hello, I tried this like a .scr , but it just opend the file without replacing the text and saving Quote
learner1230 Posted August 26, 2019 Author Posted August 26, 2019 hello, I want to do like this video, if there is any that how to do that or course, thank you for help Example_of_automatic_drawing_in_AutoCAD_by_a_Script_file_created_by_Visual_Basic_(TreeView).mp4 Quote
BIGAL Posted August 27, 2019 Posted August 27, 2019 Mytexter does not exist it is the name of your lisp file that you want to use to replace the text. Same with the new old text. I have no idea where the text is that you want to replace. A question to Maratovich can we populate the new old from the excel noticed a button ? Quote
maratovich Posted August 27, 2019 Posted August 27, 2019 1 hour ago, BIGAL said: A question to Maratovich can we populate the new old from the excel noticed a button ? I did not quite understand (translation difficulties), but here is the video: Quote
learner1230 Posted August 27, 2019 Author Posted August 27, 2019 hello,https://www.kdmsoft.net/autoviewport.html match but maratovich just a perdiod of 8 days, I want to it for all time are you have a crack Quote
ronjonp Posted August 27, 2019 Posted August 27, 2019 (edited) 7 hours ago, learner1230 said: hello,https://www.kdmsoft.net/autoviewport.html match but maratovich just a perdiod of 8 days, I want to it for all time are you have a crack Hahaha .. I think we all have cracks . He is the author of that software... if it helps your productivity you should pay for it! It's only $5 a year . Edited August 27, 2019 by ronjonp Quote
BIGAL Posted August 27, 2019 Posted August 27, 2019 Maratovich very good option I like answer to my question. 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.