Is it possible to pack and go to the current save folder? (Eventually add a new folder to this folder, in which the pack and go'd files will be saved)
Get the current folder and set that as sOutputPath. And then
If Dir(strOutputPath & "\" & "Folder Name Here", vbDirectory) = "" Then
MkDir strOutputPath & "\" & "Folder Name Here"
sOutputPath = strOutputPath & "\" & "Folder Name Here"
Is it possible to give each file their original name, with a pre- or suffix, taken out of the top level assembly properties? (For example customer/project name)
Check this post: Macro Help: Pack and go With drawings and change name to property
And, is it possible to give a specific sub-folder structure? I'm used to make a folder hierarchy like shown in the picture below.
I think yes this can be done. You can set the output path accordingly based on file extension OR if you've the current files in same structure then using
swPackAndGo.FlattenToSingleFolder = False
Also check this example for related answers Pack and Go an Assembly (VBA)
Thanks for your help!
I'm wrestling now with the first part of your answer. Problem with it is that i can't really figure out how/where to assign the strOutputPath ?
Hope you can help me with this,
You need to get the current folder path and set that as strOutputPath
You can use
Left(swModel.GetPathName, InStrRev(swModel.GetPathName, "\")