Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
JaneFan
in reply to: DRoam

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