Message 1 of 4
Vault Check in Comments Code

Not applicable
07-26-2016
03:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm not sure if what I'm trying to do it possible, but it is something that would be very useful.
At the moment we fill put our changes to models/drawings in the "Comments" (iProperties) bit, and when checking into vault we fill in the comments on check in with exactly the same comments. So far I've written a little bit of code that when run opens the check in box and fills the comments box with the property comments.
This however isn't really what I want. I want to check the drawing/ model in normally and have the box filled in as if I'd run my code.
Sub VaultCheckIn()
Dim invDoc As Document
Set invDoc = ThisApplication.ActiveEditDocument
Dim invSummaryInfo As PropertySet
Set invSummaryInfo = invDoc.PropertySets.Item("Inventor Summary Information")
Dim oComment As String
oComment = invSummaryInfo("Comments").Value
Set invDoc = ThisApplication.ActiveEditDocument
Dim invSummaryInfo As PropertySet
Set invSummaryInfo = invDoc.PropertySets.Item("Inventor Summary Information")
Dim oComment As String
oComment = invSummaryInfo("Comments").Value
On Error Resume Next
invDoc.Save2
invDoc.Save2
Set ctrdef = ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckInTop")
ctrdef.Execute2 False
SendKeys oComment & "{TAB}"
End Sub
End Sub
Anyone know anything about this? 🙂
Thank you!