Community
I have a VBA code which picks out an assembly to use as a template dependant on the users selections in a user form.
The problem is that the assemblys were created using iAssemblies, so they are member files and hence are linked to the table and unedittable until the link to the table has been broken,
Is there any VBA code to do this autonomously??
Solved! Go to Solution.
Solved by YuhanZhang. Go to Solution.
You can open the iAssembly member document and then use below VBA code sample to break the link:
Sub BreakLinkToFactorySample() Dim oDoc As AssemblyDocument Set oDoc = ThisApplication.ActiveDocument If oDoc.ComponentDefinition.IsiAssemblyMember Then oDoc.ComponentDefinition.iAssemblyMember.BreakLinkToFactory End If End Sub