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

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