Access / download folders or files from Vault via an iLogic-rule

Access / download folders or files from Vault via an iLogic-rule

Darrell.johnson
Enthusiast Enthusiast
5,839 Views
25 Replies
Message 1 of 26

Access / download folders or files from Vault via an iLogic-rule

Darrell.johnson
Enthusiast
Enthusiast

Hello,

 

I'm not quite sure if this is the right forum because the question is also related to Vault.

How do I access / download folders or files from Vault with an iLogic-rule?

I'm currently creating a configurator which loads in different files, I have to make sure that all files the configurator is using are downloaded from Vault at the start of the iLogic-rule.

 

0 Likes
Accepted solutions (1)
5,840 Views
25 Replies
Replies (25)
Message 21 of 26

william.pick
Enthusiast
Enthusiast

Get from Vault function I copied from this post.

the second image is how I call external rule.

O filePath is the fullfilename of the IDW file I'm trying to download.

 

image.pngimage.png

0 Likes
Message 22 of 26

denis.semeniuc
Advocate
Advocate
hi,
check if oFilePath is correct = work space ....+".iam or .idw, etc"
0 Likes
Message 23 of 26

william.pick
Enthusiast
Enthusiast

to me it looks fine...

at left a message box, at right Vault properties of the drawing file.

image.png

 

I'll attach a txt file with my logics.

The goal is to select any files in an assembly enviroment, then copy and paste drawing.

That's why I need to download the idw fil to saveAs;

Fun Fact: the drawing gets downloaded, but this message pops up...

 

0 Likes
Message 24 of 26

JBerns
Advisor
Advisor

@mark.almack,

 

Great code! Have you made any progress on getting dependent files ( IAM plus IPTs)? 

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
Message 25 of 26

MM5XZCAE
Participant
Participant

Hi, I am using the same code, it is working well for some files and not working for some files that are created by others, but the path is the same in all the cases. Can anyone help me with this issue?

0 Likes
Message 26 of 26

MM5XZCAE
Participant
Participant

@Darrell.johnson 

Hi Darrell,

 

This is Khizam. Last week we have discussed about downloading files from Vault in private chat.

 

I found out why the file is not downloading into my local. 

As previously mentioned, the file which has to be downloaded in my local was uploaded/checkedin into Vault by my colleague in another location.

 

My colleague and I, are using the same directory but logging in from different servers.

 

My server: "https://in.ABC.com

My colleague's server: "https://eu.ABC.com

 

I tried logging into my colleague's server and tried running the code, it worked and downloads the file into my local.

But when I tried logging in with my server, it is not downloading.

 

Because of different servers, even if I do a manual get, the vault pop named "File Replication" dialog box will appear and asks me to choose "Yes to all" to download that file to the local.


I believe the vault download code what I have/you provided was not able to get over this "File Replication" pop up/concept.

 

Could you please help me with a code, that could download files from any server with same directory or get over the File Replication concept even if I log in through my current server?

 

Thanks,
Khizam.



0 Likes