- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
iLogic - add PDF to Vault
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Blog: hjalte.nl - github.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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...?