Check in external PDF commandmanager not working, can someone help?

Check in external PDF commandmanager not working, can someone help?

maxim.teleguz
Advocate Advocate
186 Views
2 Replies
Message 1 of 3

Check in external PDF commandmanager not working, can someone help?

maxim.teleguz
Advocate
Advocate

here is the code i have so far:

'source https://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html
    Dim oCommandMgr As CommandManager 
	oCommandMgr = ThisApplication.CommandManager

    Call oCommandMgr.PostPrivateEvent(kFileNameEvent, "C:\somepdf.pdf")

    Dim oControlDef As ControlDefinition 
	oControlDef = oCommandMgr.ControlDefinitions.Item("VaultCheckin") 'VaultCheckinTop

    Call oControlDef.Execute
0 Likes
187 Views
2 Replies
Replies (2)
Message 2 of 3

Frederick_Law
Mentor
Mentor

How does it "not working"?

What's wrong?

What error does it give?

 

Is C:\ in your Vault Workspace?

0 Likes
Message 3 of 3

maxim.teleguz
Advocate
Advocate

I changed the workspace just for the purpose of asking the question. So technically i had it elsewhere. It seems like Inventor will not check it in because it cant open a pdf file up. That's the error I get. 

0 Likes