mihalj
Mechanical
- Apr 15, 2009
- 40
Hi,
here is the code I have within macro which takes part (swComp) within assembly (assembly traversal) going into specific part configuration custom properties and later writing them into excel sheet. The issue I have is related to two very same parts that I have within assembly with different configurations and both of them have different values (specific to each configuration). Issue - for both of them writes same specific custom property values and I am saying same because those values are exact for one of those parts. Did anyone had similar experience with this issue or can you tell me is this code correct.
Just to mention this code is within Do While loop and it basically going thru each part within assembly
swConfigMgr = swComp.ConfigurationManager
swConfig = swConfigMgr.ActiveConfiguration
swPartCustPropMgr = swConfig.CustomPropertyManager
If Not swPartCustPropMgr Is Nothing Then
vPartPropNames = swPartCustPropMgr.GetNames
Thanks!
here is the code I have within macro which takes part (swComp) within assembly (assembly traversal) going into specific part configuration custom properties and later writing them into excel sheet. The issue I have is related to two very same parts that I have within assembly with different configurations and both of them have different values (specific to each configuration). Issue - for both of them writes same specific custom property values and I am saying same because those values are exact for one of those parts. Did anyone had similar experience with this issue or can you tell me is this code correct.
Just to mention this code is within Do While loop and it basically going thru each part within assembly
swConfigMgr = swComp.ConfigurationManager
swConfig = swConfigMgr.ActiveConfiguration
swPartCustPropMgr = swConfig.CustomPropertyManager
If Not swPartCustPropMgr Is Nothing Then
vPartPropNames = swPartCustPropMgr.GetNames
Thanks!