An iLogic rule that was working fine is now causing an error. The first thing I did was to close everything out and reboot. That didn't fix anything. The part of the code that the rule is getting hung up on is basically this:
Dim detailView As DrawingView = ThisDoc.Document.Sheets(1).DrawingViews(4) Set detailRotation As Double = IIf((clipWorkPoint.Point.X < 0), (270 * PI / 180) - clipAngle, -((90 * PI / 180) - clipAngle)) detailView.Rotation = detailRotation
When I run the similar code in VBA it stops on the last line and spits out an error with the message, "Run-time-error '-2147467259 (80004005)': Method 'Rotation' of object 'DetailDrawingView' failed."
I can manually change the rotation of this view, but the code just breaks.
Any help would be appreciated,
Mike
Still not sure what happened. I deleted the detail view, created a new one, and modified the code to point to the correct view. After that, everything was back to normal.