04-23-2019
10:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-23-2019
10:10 PM
Hey @DRoam ,
The first thing coming to my mind for this requirement is using OpenWithOptions to open the drawing file with setting DeferUpdates to True:
Dim oNM As NameValueMap
Set oNM = ThisApplication.TransientObjects.CreateNameValueMap
oNM.Add "DeferUpdates", True
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.Documents.OpenWithOptions("Path\part.idw", oNM)
By opening drawing file with defer update setting to True, it should work combining what you mentioned using DrawingDocument.RequiresUpdate:
Dim bUpdated As Boolean If oDoc.RequiresUpdate = True Then
'Setting DrawingSettings.DeferUpdates to False to apply update in such case oDoc.DrawingSettings.DeferUpdates = False bUpdated = True MsgBox(bUpdated) End If

Jane Fan
Inventor QA Engineer