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

Hi All

I have found this code:

'Update Drawing

Dim oDocument As Inventor.DrawingDocument
Set oDocument = ThisApplication.ActiveDocument
Dim oSheet As Inventor.Sheet
oSheet = oDocument.Sheets(1)
If oDocument.RequiresUpdate Then
oDocument.Update
oDocument.Save
End Sub

 But It fails at:

oSheet = oDocument.Sheets(1)

 Invalid use of property.

 

Thanks