Jump to content

Recommended Posts

Posted

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.ETRANSMIT.thumb.jpg.84ba8a00b6d079e236a0f7e8b35e8510.jpg

 

Thanks in advance.

Posted

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'"))

 

image.thumb.png.f7fff8fcd48994d5d009a8c9da560ae3.png

Ok 2nd step is that you can call email from Autocad not something I do. Need to google. 

Posted

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)

Posted

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.

Posted

If you get stuck come back, next step is email zip from Autocad.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...