Message 1 of 3

Not applicable
06-04-2012
08:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i have an external rule opening drawings for all unsuppressed parts and assemblies. The code below automates the check-in process. I enabled Automatic Log In and Suppressed "Check-in" dialog and the check-in was smooth for instances where adding in a file were not required. My one snag is that I need to add comments. I now have taken out the dialog box Suppression and it has sped up checking in files, but I was wondering if there was a was to pass along a comment from a Message Input box. The comment would be the same for any parts which changed, so I could suppress the "Check-in" dialog box and still get a comment applied to that compontent.
ForEachodocAsInventor.DocumentInThisApplication.Documents
DimappAsInventor.Application=ThisApplication
DiminvdocAsInventor.Document=app.ActiveDocument
DimopathandnameAsString=invdoc.FullFilename
DimoextensionAsString=Right(opathandname,3)
DimposnAsInteger=0
posn=InStrRev(opathandname, ".")
Ifposn<>0Then
Ifoextension="dwg"Then
ThisApplication.ActiveDocument.Save
ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute
'Close drawing file(s)
invdoc.Close(False)
'Clear out Addin variable string(s)
onamenoextension=Nothing
EndIf
EndIf
'Clear out application variable String(s)
opathandname=Nothing
posn=Nothing
oextension=Nothing
Next
Thanks in advance,
Solved! Go to Solution.