Message 1 of 3
Change member of iassembly placed within Parent Assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi again,
I am trying to change the member of an iassembly which has been placed into my parent assembly
Just trying to change the member as the moment to row 1
Placed iassembly factory file is name is "Trap iassy.iam"
I am getting a bit wraped up with the nested level of assembly componet definitions etc
My code so far goes like this
Public Sub ChangeAssemblyMemeber()
Dim oDoc As AssemblyDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oAssemblyComponent As AssemblyComponentDefinition
Set oAssemblyComponent = oDoc.ComponentDefinition
Dim oSubAssemblyComponent As AssemblyComponentDefinition
For Each oAssemblyComponent In oDoc.ComponentDefinition.Occurrences
If oAssemblyComponent.IsiAssemblyFactory Then
Set oSubAssemblyComponent = oAssemblyComponent
If oSubAssemblyComponent.name = "Trap iassy.iam" Then
oSubAssemblyComponent.ChangeRowOfiAssemblyMember (1)
End If
End If
Next
End Sub
Anybody able to point me in the right direction please
Regards
MArk