Non-DWG file check in/out of Vault using AutoLISP?

Non-DWG file check in/out of Vault using AutoLISP?

Mr_Robert
Explorer Explorer
541 Views
2 Replies
Message 1 of 3

Non-DWG file check in/out of Vault using AutoLISP?

Mr_Robert
Explorer
Explorer

How do I use AutoLISP/VisualLISP to access Autodesk Vault's CoolOrange programs to Check in and out files that are not DWG files and to modify their Vault properties?  I have several AutoLISP programs that produce file types that are other than DWG. Currently, I have to manually check the new files into Vault and I would like to automate this step.  My research indicates that it is possible at least with Power Shell or other programs but I cannot find any examples to execute those from AutoLISP.  I suspect that I am not asking the search engines the question in the proper format/order... to get the answer I am looking for.  I would appreciate any assistance. 

0 Likes
542 Views
2 Replies
Replies (2)
Message 2 of 3

Markus.Koechl
Autodesk
Autodesk

Using LISP, you might be restricted to only commands with command line options. All Vault-Addin commands have these and you can review typing _VLT* or VLT*.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 3 of 3

Mr_Robert
Explorer
Explorer
Thank you for your reply.
I have reviewed the VLT* commands and have been given a suggestion from another source as shown below but the problem with these commands is that they only work on/for the current drawing. My testing may be flawed but the command line versions of these that I tested in AutoCAD 2024, do not accept a path and file name. The code below gives an error: bad order function: COMMAND   ( I did replace the path and file name with valid data.)
 
 
(defun c:CheckInFile ()
(vl-catch-all-apply 'command '("-vltcheckin" "C:\\Path\\To\\Your\\File.txt" "Check-in comment"))
(vl-catch-all-apply 'command '("-vltchangecategory" "C:\\Path\\To\\Your\\File.txt" "Developmental"))
(vl-catch-all-apply 'command '("-vltsetstate" "C:\\Path\\To\\Your\\File.txt" "Released"))
)
 
My research continues.
0 Likes