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

OK.  That additional error data indicates that the error is happening when it tries to execute the DrawingDimension.Delete method.  So, there must be at least one dimension that is giving this routine that problem.  My guess is that it might be the first OrdinateDimension shown in the image.  I just created a quick drawing view and added an OrdinateDimensionSet to the view, with multiple members.  Then I created a quick, simple iLogic rule to loop through all generic DrawingDimensions on the sheet, and delete them.  It threw the exact same error.

You could try this very similar iLogic rule, which includes a Try...Catch block to avoid the potential error, and let the rule continue.

If ThisDoc.Document.DocumentType <> DocumentTypeEnum.kDrawingDocumentObject Then Exit Sub
Dim oDDoc As DrawingDocument = ThisDoc.Document
Dim oDDims As DrawingDimensions = oDDoc.ActiveSheet.DrawingDimensions
For Each oDDim As DrawingDimension In oDDims
	If oDDim.Attached = False Then
		Try
			oDDim.Delete
		Catch
		End Try
	End If
Next 'oDDim

If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) :thumbs_up:.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)