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

iLogic To Suppress Link To A Derived Assembly

I have a large sub-assembly which has been shrinkwrapped to it's own part file.

I am then trying to suppress the link to its base component via iLogic code placed in the shrinkwrap part file.

 

All searches on this forum relate to a Derived Part inside an assembly file, whereas I have a Derived Assembly inside a part file.

image.png

 

I have picked up some code from the following post:

Supress Link with base component ilogic

and then modified it for a derived assembly instead as follows but nothing seems to happen once the code is successfully run.

 

Sub Main()

Dim oShrinkwrap As PartDocument
oShrinkwrap = ThisApplication.ActiveDocument

Dim occ As ComponentOccurrence
Dim derivedAssembly As DerivedAssemblyComponent

For Each occ In oShrinkwrap.ComponentDefinition.Occurrences
    For Each derivedAssembly In occ.Definition.ReferenceComponents.DerivedAssemblyComponents
		
		derivedAssembly.SuppressLinkToFile = True
        
        iLogicVb.UpdateWhenDone = True
        
	Next
	
Next

End Sub

 

If anyone can assist me with this then it would be much appreciated.

 

Cheers.