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: RoyWickrama_RWEI

This will reset overridden dimensions of the GeneralDimension Type.

 

Dim oApp As Inventor.Application = ThisApplication
Dim oDoc As DrawingDocument = oApp.ActiveDocument
Dim oSheet As Sheet

For Each oSheet In oDoc.Sheets
	For Each oDrawingDim As GeneralDimension In oSheet.DrawingDimensions.GeneralDimensions
		If oDrawingDim.ModelValueOverridden Then
			oDrawingDim.ModelValueOverridden = False
		End If
	Next
Next

 

You will have to loop through other dimension types as well if they exist on the drawing. See the following link for further details on the DrawingDimensions Object.

 

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2018/ENU/Inventor-API/files/Dr...