Okay, this is driving me insane. I am traversing an assembly to create a CSV bill of materials. I am using Icomponant2.modeldoc2 to traverse the assembly and create an array. Here is the problem I am having. I have hardware with multiple configurations for different sizes of hardware. Each size has a configuration specific property, and it seems that every instance of the model in the array is referencing only one configuration even though multiple configurations are used in my assembly. The macro is almost 650 lines of code so I can't post the whole thing. But here is the traverse section.
Dim swAssy As SldWorks.AssemblyDoc
Dim swcomp As SldWorks.Component2
Dim swCompModel As SldWorks.ModelDoc2
Vcomps = swAssy.GetComponents(False)
If IsEmpty(Vcomps) Then Exit Sub
For i = 0 To UBound(Vcomps)
Set swcomp = Vcomps(i)
Set swCompModel = swcomp.GetModelDoc2
is there a different way to traverse so each instance of the component carries its own active configuration properties?