- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
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.
Solved! Go to Solution.
