Hello ProjectWise PowerShell SMEs,
Is it possible (using PowerShell) to perform a Managed Export of Documents, without Dependencies (Ex.: CAD Files, which have References)? Currently, ProjectWise Explorer does not support this workflow (Dependencies are always exported as well; sometimes, this is not necessary or desired).
Why would we need to do this? Some applications - used by required workflows - do not support ProjectWise. Therefore, applicable Files must be temporarily exported to a Windows Folder for processing. Example, a DOT's Title Block Management program.
Many thanks in advance!
This kind of does what you want. In my testing it still copied the files out of ProjectWise, but only marked as exported the files in the actual folder I specified. All files, including references were dumped into a single directory. Dunno if this works for you.
$files = Get-PWDocumentsBySearch -FolderPath "Path\To\Test" -JustThisFolder
$files | CheckOut-PWDocuments -Export -ExportFolder "C:\Path\To\Export" -NoReferences
That did a managed export of everything in the -FolderPath to the -ExportFolder path
Even though I specified NoReferences the references were still copied-out to the -ExportFolder path, but they were not marked as a managed export in ProjectWise.
I guess you could write additional lines to delete any files in ExportPath that don't have a matching filename in $files.
Thank you for the code, and for testing, Kevin. This method appears to have the same affect as ProjectWise Explorer, which exports the References as well. But, it is great to see that you can Export using PowerShell.