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

Error in DetailDrawingView Object

So I'm trying to access a specific detail view of a part and change the size of boundary. Here's the code I have and it doesn't generate an error, but it also doesn't do anything and I'm not sure why. Is this an error in Inventor?

 

 

SyntaxEditor Code Snippet

Dim oDrawingViews As DrawingViews = ThisApplication.ActiveDocument.Sheets.Item(1).DrawingViews

For Each oView In oDrawingViews
    If oView.Name = "DETAIL B" Then
        MsgBox(oView.Name)
        oView.FenceRadius = 10
        InventorVb.DocumentUpdate()
    End If
Next