I'm using the following code to open a drawing:
Set doc = ThisApplication.Documents.Open(Archive, True)
and this code to close the drawing
ThisApplication.ActiveDocument.Close True
The close command skips the typical user input that is required but for some reason I don't find the option for when the drawing is opened.
The drawing must open in order that it can update the changes that are being made to it by the code (so I can't insert "false" into the open command).
However, because many of the drawings are stored in vault I get the prompt whether or not to check the drawing out.
Is there a way I can automatically select one of the options (attachment) without the user selecting it each time?
ps
I also am using the command
ThisApplication.SilentOperation = True
throughout the code
Solved! Go to Solution.
Solved by jdkriek. Go to Solution.
My first idea would be to programatically set the Vault dialog options that you can set manually via the UI
But the only thing I could find was PromptMessageRestrictionsEnum
Btw, It's been asked many times, but with no responces:
Ultimately it's not the best solution, but with the options that I've been given, it's the closest that I have found.
Thanks.
im doing some automated dxf exports for sheet metal, but i didnt want to click the ok on the title block promted entry
so i added the silent code before the operation, worked for me
m_InvApp.SilentOperation = True
Dim NewIdw As DrawingDocument = m_InvApp.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject, m_InvApp.FileOptions.TemplatesPath() + "Standard.idw", True)