Saving to Vault from different App's API

I'm using Alibre design's API to create Alibre Drawings through code and need to be able to save to the M-Files vault. I've asked a question about it on their forum but want to make sure that this isn't anything related to M-Files permissions. In their documentation for the SaveNew method it states:

"To save to MFiles vaults using the API, you will use the same methods as with the file system. The filepath should be passed with the following format: [MFiles drive letter]:\[Vault name] (ie. "M:\MyVault")" 


The function definition is this:

void SaveNew(
    ref Object pDestination
)

Parameters

pDestination
Type: System. Object
An IADFolder or windows folder path string.

I am not able to use a string for the parameter so I set the file path string equal to a blank object. While debugging I can see that the object is just the string:

I used DirectoryInfo to make sure the directory exists and it does.

I get this error when trying to save:

I'm not sure if this has to do with any permissions when saving new documents to M-Files through code and outside API's but I am consistently accessing M-Files in other ways in my program so I know my connection is established and working correctly. If anyone has any suggestions, I would very much appreciate it.

Parents
  • Alibre Vault is an old concept from sometime around 2010. At that time you got one free M-Files User license along with you paid Alibre license. The concept also included a template for a M-Files vault. Basically it is a regular M-Files vault, but it has a few dedicated and build in properties with fixed IDs especially for the purpose of serving as an Alibre Vault.

    The cooperation between Alibre and M-Files stopped some time around 2015 if I recall correctly.  M-Files has lately started using some of those property IDs for different purposes which may conflict with the Alibre Vault. I have not seen any severe side affects so far though. If you have the original Alibre Vault template and it has been updated to new M-Files versions over the years you can still use M-Files with Alibre.
    I have one such vault. Please send a personal message, and I will return a copy of the vault if needed.

    BR, Karl

  • We do use Alibre with M-Files currently and there is no issue with saving and loading documents to and from the vault when using the Alibre UI. The issue I run into is when saving to the Vault through code using the Alibre API. I have even set up a SaveFileDialog function to choose the exact vault location. I'm wondering if there are permissions blocking me from saving to the vault of if the way I set up the SaveNew function is incorrect.

Reply
  • We do use Alibre with M-Files currently and there is no issue with saving and loading documents to and from the vault when using the Alibre UI. The issue I run into is when saving to the Vault through code using the Alibre API. I have even set up a SaveFileDialog function to choose the exact vault location. I'm wondering if there are permissions blocking me from saving to the vault of if the way I set up the SaveNew function is incorrect.

Children