meinfilel Posted June 3, 2022 Posted June 3, 2022 Hello, everyone, I'm trying to organize my workflow; I find myself using e-stransmit multiple times every day and would like to use a custom folder organization when adding my files to the final .zip file. Let' say I work in a .dwg file in a folder on my desktop and referencing files in that drawing from other folders that are located on Desktop (could be located in any other position, as well). When I'm done I wanna save the .dwg file with any references in a .zip file that will be e-mailed later. What I'm asking is a specific .zip folder tree: I want every reference to be a in a folder named "FOLDER_ALL" or whatever and the .dwg file to be in the same level as the folder but on its own. I'm attaching a simple chart to help you understand what I mean. Ι've done some googling and even posted at autodesk forums but the answer I got was that it cannot be done through standard transmit, and maybe an addo-on is needed. I have some experience writing AutoLISP programs and would like some guidance to possibly implement what I'm asking for [I'm not sure it's achievable though]. I'm using autocad 2019. Thanks in advance. Quote
BIGAL Posted June 4, 2022 Posted June 4, 2022 There is ways of doing ZIP possibly via Autocad I use a shell command to UNZIP files, I am sure ZIP Files would be similar. (startapp (strcat "powershell -command Expand-Archive -Path '" filename "' -DestinationPath 'C:/GTA-CAD-TOOLS'")) Ok 2nd step is that you can call email from Autocad not something I do. Need to google. Quote
BIGAL Posted June 4, 2022 Posted June 4, 2022 Had a play, ok a couple of things note the ' it is used to enclose names with spaces in them so have shown destination that way also, use \\ for path. The * is a variable to do subdirectories not a file wild card. (setq directory "'D:\\your directory\*'") ; do some form of get path etc (startapp (strcat "powershell -command Compress-Archive -Path " directory " -DestinationPath 'D:\\Acadtemp\\archive.zip'")) How to Zip (and Unzip) Files Using PowerShell (howtogeek.com) Quote
meinfilel Posted June 5, 2022 Author Posted June 5, 2022 Thank you both for your replies. If I've gotten it right, I should write a script that will run an archiver through PowerShell, in which the .dwg will be included as well as any other files I wish (all I have to do for the "extra" files is provide their location on the drive). I'll start working on that and will come back reporting the results. Quote
BIGAL Posted June 6, 2022 Posted June 6, 2022 If you get stuck come back, next step is email zip from Autocad. 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.