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  

 

Anonymous
in reply to: Anonymous

Also changing any property on the DetailDrawingViews Object doesn't do anything including even suppressing it or changing it's name.

Anonymous
in reply to: Anonymous

Wow. Nevermind. I just changed the Item number to 3 (For the third drawing) and it worked....I'm curious why it didn't generate an error before because item 1 does not have a detail named that.