AcquireFiles

AcquireFiles

Christopher.hartman
Enthusiast Enthusiast
659 Views
3 Replies
Message 1 of 4

AcquireFiles

Christopher.hartman
Enthusiast
Enthusiast

I'm new to the Vault API and I have so far been successful in calling AcquireFiles to get a DWG file from the Vault.  However, I have found that it is not downloading the files associated with this drawing that are references inside the DWG. For instance, we have a folder structure like this:  $/A&E/4460/55141423_T1/DWG and for external files that are references inside the drawing, there will be additional folders with files inside them, like $/A&E/4460/data (contains PNG images) and $/A&E/4460/55141423_T1/DWG/AE_PROMO (contains a PDF file).  The only thing I'm getting is the actual drawing file, nothing else.

 

I have used the following settings to no avail:

 

settings.OptionsRelationshipGathering.FileRelationshipSettings.IncludeChildren = true;
settings.OptionsRelationshipGathering.FileRelationshipSettings.RecurseChildren = true;
settings.OptionsRelationshipGathering.FileRelationshipSettings.IncludeLibraryContents = true;
settings.OptionsRelationshipGathering.FileRelationshipSettings.IncludeAttachments = true;
settings.OptionsRelationshipGathering.IncludeLinksSettings.IncludeLinks = true;
settings.OptionsRelationshipGathering.FileRelationshipSettings.IncludeHiddenEntities = true;
settings.OptionsRelationshipGathering.FileRelationshipSettings.IncludeRelatedDocumentation = true;
settings.OptionsRelationshipGathering.FileRelationshipSettings.VersionGatheringOption = VersionGatheringOption.Latest;
settings.OrganizeFilesRelativeToCommonVaultRoot = true;

 

My ultimate goal is to take the DWG file and produce a PDF file via Publish. However, currently, when i create a PDF file from the drawing, I am missing the PNG images and the pages referenced from the external PDF file.

 

Does anyone have any suggestions or ideas on how I could get this to work?

 

 

0 Likes
Accepted solutions (1)
660 Views
3 Replies
Replies (3)
Message 2 of 4

jjstr8
Collaborator
Collaborator
Accepted solution

I set up and ran quick test.  I didn't have any issues.  You might want to test it using InteractiveAcquireFileSettings instead of AcquireFileSettings, so you get the dialog box and can verify what it intends to download.

0 Likes
Message 3 of 4

hari.venkataramanuja
Community Visitor
Community Visitor

Chris is trying to do it through ACCoreConsole. So no UI/Dialog involved.

0 Likes
Message 4 of 4

jjstr8
Collaborator
Collaborator

@hari.venkataramanuja : There was no mention of using ACCoreConsole.  Regardless, my suggestion was to test the code using InteractiveAcquireFileSettings, so there would be a preview of what files were being downloaded from Vault.