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

Error in DetailDrawingView Object

Anonymous

Error in DetailDrawingView Object

Anonymous
Not applicable

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  

 

0 Likes
Reply
Accepted solutions (1)
394 Views
2 Replies
Replies (2)

Anonymous
Not applicable

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

0 Likes

Anonymous
Not applicable
Accepted solution

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.

0 Likes