I'm looking for a way to print a file of the hardware mates within an assembly. We have run into situations where there is a 10-32 tap with an M5 screw mated to the tap. I'm working on a way to traverse the mates and print a list of components and the component features that they are mated to in the assembly.
I found an VBA example that traverses all the mates in the assembly, but I need it to go one step farther.
I need the feature name where the component is mated. Is this possible?
For instance:
Concentric9
Type = 1
AlignFlag = 1
CanBeFlipped = False
Component = A - Flange1-1
MateEntType = 4
Feature Name = #10-32 Tapped Hole1
Concentric9
Type = 1
AlignFlag = 1
CanBeFlipped = False
Component = HX-SHCS, 10-32 (ALL LENGTHS)-1
MateEntType = 4
Feature Name = Base-Revolve
SolidworksApi macros