08-08-2022
11:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-08-2022
11:59 PM
Here is what I had in mind. This is really part specific and can be used to show parts in the drawing which might be hidden in assembly. It is useful for standard assemblies/drawings.
Found this @ https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/ilogic-to-remove-component-visibilit...
Dim oDoc As DrawingDocument oDoc = ThisApplication.ActiveDocument Dim oActiveSheet As Sheet oActiveSheet = oDoc.ActiveSheet Dim oDrawingView As DrawingView oDrawingView = oActiveSheet.DrawingViews(1) Dim oRefDoc As AssemblyDocument oRefDoc = oDrawingView.ReferencedDocumentDescriptor.ReferencedDocument Dim oAssDef As AssemblyComponentDefinition oAssDef = oRefDoc.ComponentDefinition Dim oOcc As ComponentOccurrence For Each oOcc In oAssDef.Occurrences If oOcc.Name = "Arrow up:1" Then Call oDrawingView.SetVisibility(oOcc, True) End If If oOcc.Name = "Arrow down:1" Then Call oDrawingView.SetVisibility(oOcc, True) End If Next
Regards,
Tom