Anonymous
394 Views, 2 Replies
10-07-2016
01:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-07-2016
01:20 PM
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
Solved! Go to Solution.
Anonymous
in reply to:
Anonymous
10-07-2016
01:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-07-2016
01:22 PM
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
10-07-2016
01:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-07-2016
01:25 PM
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.