Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a derived part that has 1 assembly and some parts inside it. From the level of the derived part I would like to get to this assembly and to be able to modify it. For example, to be able to use the command "component.replace".
I think I need to transfer somehow "DerivedAssemblyComponent" to "AssemblyDocument".
Sub main Dim oPart As PartDocument = ThisDoc.Document Dim oRef As Document = oPart.ReferencedDocuments.Item(1) Dim oDerAssembly As DerivedAssemblyComponent
oDerAssembly = oPart.ComponentDefinition.ReferenceComponents.DerivedAssemblyComponents.Item(1) Trace.Write(oDerAssembly.Name) For Each oPart In oRef.AllReferencedDocuments Trace.Write("ALL: " & oPart.FullFileName) Next End Sub
Solved! Go to Solution.