Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a multi-body part that I have created (make components) an assembly. I want to be able to copy the multi-body parameters to this assembly so that I can Pattern, use Insert ilogic component, etc, and have them linked to the design parameters defined in my multi-body part.
I have been able to locate some code to do this, but it also copies the folders of each of the individual components generated from the multi-body part.
is there a way that I can "filter" to just the parent(s) of these components and link just that to my assembly?
Dim oApp As Application Dim oAD As AssemblyDocument Dim oACD As AssemblyComponentDefinition Dim oAP As Parameters Dim oRefDoc As Document oApp = ThisApplication oAD = oApp.ActiveDocument oACD = oAD.ComponentDefinition oAP = oACD.Parameters On Error Resume Next For Each oRefDoc In oAD.AllReferencedDocuments If oRefDoc.DocumentType = kPartDocumentObject Then refdocpath = oRefDoc.FullDocumentName MsgBox(refdocpath) Call oAP.DerivedParameterTables.Add(refdocpath) Else End If Next
(
Solved! Go to Solution.