iLogic - add PDF to Vault

iLogic - add PDF to Vault

alasdair_crawford
Contributor Contributor
293 Views
3 Replies
Message 1 of 4

iLogic - add PDF to Vault

alasdair_crawford
Contributor
Contributor

I am trying to automate our document control system so that once a drawing has been either completed, checked or approved, the drawing is checked into the vault, a pdf is created, and the pdf is also checked into the vault, amongst other things.

 

Currently it will check the file into the vault with the lines:

						ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(False)
						System.Windows.Forms.SendKeys.SendWait(CommentBox & Chr(9) & vbCrLf)

 

I'm also successfully creating the PDF  and saving it on my local drive with the lines:

NewFileNameAndExtension=ThisDoc.PathAndFileName(False)& "_REV_" & iProperties.Value("Project", "Revision Number")&".pdf"
ThisDoc.Document.SaveAs(NewFileNameAndExtension, True)

 I want to then be able to check the PDF file into the vault in the same manner as I have done the drawing itself. 

 

I am new to inventor/ilogic/vault so I'm not sure how to do this, I have managed to get everything else so far from these forums but couldn't find anything on this. Any help would be greatly appreciated.

 

Running Inventor Professional 2023 and vault Basic 2023

 

Thanks

Alasdair

0 Likes
294 Views
3 Replies
Replies (3)
Message 2 of 4

JelteDeJong
Mentor
Mentor

Although it is possible to check in files using ilogic it's tough and I don't expect that there are many examples out there. You would need to talk to the vault API therefore you might have more luck on the vault forums.

Or start using Inventor 2024. In Inventor 2024 you can use iLogic to use the vault easily. Have a look at this:

https://www.youtube.com/watch?v=6-GNaoGu40w

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 3 of 4

gerrardhickson
Collaborator
Collaborator
Ooohhh... I didn't know about that!
0 Likes
Message 4 of 4

alasdair_crawford
Contributor
Contributor

Thanks @JelteDeJong, that does look a lot easier. Sadly going by the comments looks like that'll only be available for Vault Pro, whereas we'd ideally like it to work in Vault basic.

 

The code I have already will check the drawing in quite easily with just a couple of lines, so I feel like there should be a way to make similar code work for PDFs. Trouble is the code I have will check in the open document, and inventor can't open PDFs, so if I could make it check in a document from a file reference rather than whatever is open at the time then that should hopefully work... maybe...?

0 Likes