I am trying to find connection points for an assembly and I thought I could use the mates as a way to export points/lines of how various subassemblies and parts are connected. I came across the idea of using EntityParams Method from IMateEntity2. I am confused as to what the "Point" values are. From the documentation:
- pointX is the X location of this mate entity in the assembly model space
- pointY is the Y location of this mate entity in the assembly model space
- pointZ is the Z location of this mate entity in the assembly model space
If I look at an active coincident constraint, within the top level assembly, I get two entities. When I look at the "Point" values for each entity, shouldn't they have the same X, Y & Z coordinates? They don't. What am I missing?
Here is an example output from the "Get Mates and Mate Entities Example":
Coincident001
Type = 0
AlignFlag = 0
CanBeFlipped = False
Component = AMS1/PRT1-1
MateEntType = 1
(x,y,z) = (6.27003064327224, 0.297899950000021, -1.43816109263886)
(i,j,k) = (8.04764756999804E-16, -1.37423837296583E-16, -1)
Radius 1 = 0
Radius 2 = 0
Coincident208
Type = 0
AlignFlag = 0
CanBeFlipped = False
Component =PRT2-1
MateEntType = 1
(x,y,z) = (6.27003064327224, 0.297899950000021, 1.809115)
(i,j,k) = (0, 0, -1)
Radius 1 = 0
Radius 2 = 0
SolidworksApi macros