samifox Posted July 13, 2017 Share Posted July 13, 2017 hi i want to establish a program that will 1.open a zip archive to a temporary folder 2.for each dwg #perform wblock on file.dwg #save to the same location file_wb.dwg #delete file.dwg #rename to file.dwg 3.add it all to archive archive_wb.zip i would start working on that, want to make sure if something like this already exist? or some part of it Thanks S Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 14, 2017 Share Posted July 14, 2017 1 pretty sure there would be a windows command line syntax for uzipping a file to a known directory 2 using a bat file can start Autocad and start a script that calls a lisp 3 last line of script would do the same as item 1 but in reverse make a zip Lastly a quick google http://kb.winzip.com/kb/ Quote Link to comment Share on other sites More sharing options...
samifox Posted July 14, 2017 Author Share Posted July 14, 2017 it might seems that i were looking for a copy-paste program and that all, well i would be happy if someone already thought about it and made it available , but im happy also if there are some resource to help me accomplish the script as quickly as possible about your suggestion , ive read an article doing this way, but i thought to make something more friendly so everyone can use easily Thanks S Quote Link to comment Share on other sites More sharing options...
maratovich Posted July 14, 2017 Share Posted July 14, 2017 The length of the code will be more than 100 lines, this is a long time to do. + Debugging problems - AutoCAD requests, additional conditions. here it is necessary to make .exe program Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 15, 2017 Share Posted July 15, 2017 (edited) maratovich I disagree you can use startapp to run the zip bit at start, the wblock 2-3, lines save 2-3 lines, close 1 line delete use vla-delete 1 line, rename vla-rename, use startapp again to make a new zip. I do stuff within autocad using an external program called from a lisp, you sees a srceen pop up but it closes once finished. Yes you would need to write a script but you would run a lisp repeatedly for the steps. not proper code but idea (setenv dwgname "dwgname1")(load doall) ; do all uses getenv dwgname (setenv dgwgname "dwgname2")(load doall) Samifox you need to look at the wblock bit what do you want to export out use _.wblock it prompts for answers etc in a lisp. ; you need to download a unzip program (startapp "c:\\program files\\xx-zip\\zzz x c:\\temp\\project2.zip -oc:\\temp\\ziptest") Edited July 15, 2017 by BIGAL Quote Link to comment Share on other sites More sharing options...
maratovich Posted July 15, 2017 Share Posted July 15, 2017 maratovich I disagree you can use startapp to run the zip bit at start, the wblock 2-3, lines save 2-3 lines, close 1 line delete use vla-delete 1 line, rename vla-rename, use startapp again to make a new zip. BIGAL You have intrigued me. This is a matter of principle. 8 hours of work was spent. This picture .gif, the big size here does not show, save on the computer. ZipWblock.zip Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 16, 2017 Share Posted July 16, 2017 Hi maratovich my virus checker is blocking your program (Norton) so could not have a look at it. You are right about the time though I spent around 5 hours trying to change some code I found to make it simpler, gave up, spent 1hr using original code and now it works. What samifox wants can be done it is his turn to try what you have posted. Quote Link to comment Share on other sites More sharing options...
maratovich Posted July 16, 2017 Share Posted July 16, 2017 Hi maratovich my virus checker is blocking your program (Norton) so could not have a look at it. Your antivirus is developed on the Symantec engine (Norton), and Norton accepts by default any unknown file as a virus. I personally contacted the developers of this engine three times and they all swore to me three times to add the program to the whitelist. The basis of this antivirus is the white list, the rest is the virus. And if I finalize the program and lay out a new version of the antivirus again will swear because. The file size will change. Moreover, such an antivirus works only in 50% of cases as a virus. All programs are checked by Kaspersky and Doctor Web, as well as the permanent scanner Dr. Veba on the server. Simply manually add the program to the antivirus white list. If you want to send the file to the developers of the antivirus - they will check and say that everything is clean, but their list will not be fixed. Quote Link to comment Share on other sites More sharing options...
samifox Posted July 16, 2017 Author Share Posted July 16, 2017 BIGAL You have intrigued me.This is a matter of principle. 8 hours of work was spent. This picture .gif, the big size here does not show, save on the computer. WEll done:) friend before runing this fantastic program please remove student stamp Quote Link to comment Share on other sites More sharing options...
maratovich Posted July 16, 2017 Share Posted July 16, 2017 friend before runing this fantastic program please remove student stamp I did not understand. What exactly do you want ? Which stamp? Quote Link to comment Share on other sites More sharing options...
samifox Posted July 16, 2017 Author Share Posted July 16, 2017 when autocad drawing was last saved with educetional version of autocad , a warning is popup when opening the drawing, this dialog box is enxpected by your program Quote Link to comment Share on other sites More sharing options...
samifox Posted July 16, 2017 Author Share Posted July 16, 2017 this file were produced by educetional version Quote Link to comment Share on other sites More sharing options...
maratovich Posted July 16, 2017 Share Posted July 16, 2017 this file were produced by educetional version In this file I do not see a problem. Attach a picture. Quote Link to comment Share on other sites More sharing options...
samifox Posted July 16, 2017 Author Share Posted July 16, 2017 In this file I do not see a problem.Attach a picture. im using 2010, and using ? Quote Link to comment Share on other sites More sharing options...
maratovich Posted July 16, 2017 Share Posted July 16, 2017 I'm using 2014. I still do not know how to suppress the window when opening it. Quote Link to comment Share on other sites More sharing options...
samifox Posted July 16, 2017 Author Share Posted July 16, 2017 I'm using 2014.I still do not know how to suppress the window when opening it. you dont. the only thing you can do to suppress this massage is to convert the archive with TrueView 2016+. Quote Link to comment Share on other sites More sharing options...
maratovich Posted July 16, 2017 Share Posted July 16, 2017 you dont. the only thing you can do to suppress this massage is to convert the archive with TrueView 2016+. No. Necessary: -open .dwg -save as .dxf -open .dxf and save as .dwg Then this record will not be. But this must be done by hand. Quote Link to comment Share on other sites More sharing options...
samifox Posted July 16, 2017 Author Share Posted July 16, 2017 No. Necessary:-open .dwg -save as .dxf -open .dxf and save as .dwg Then this record will not be. But this must be done by hand. have you tried that? Quote Link to comment Share on other sites More sharing options...
maratovich Posted July 16, 2017 Share Posted July 16, 2017 have you tried that? Why do not you believe us? Of course we did. Quote Link to comment Share on other sites More sharing options...
samifox Posted July 16, 2017 Author Share Posted July 16, 2017 Why do not you believe us?Of course we did. its being long time ago i investigate after that stamp and the only solution was to convert. glade to know there is another way 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.