Can anybody please let me know how to perform mate constraint on parts edges using vba /vb.net code.
Following is the code from iLogic which I am trying to convert into VB but not getting proper output.
Dim _091Z004429_0031_1Pos = ThisAssembly.Geometry.Matrix(1, 0, 0, 0.05628,
0, 0, 1, 22.xxx-xxxxxxxx,
0, -1, 0, 22.55628,
0, 0, 0, 1)
Dim _091Z004429_0031_1 = Components.Add("091Z004429-0031:1",
"091Z004429-0031.ipt",
_091Z004429_0031_1Pos)
Constraints.AddMate("Mate:1", "091Z004429-0042:1", "Edge0",
"091Z004429-0031:1", "Edge4",
e1InferredType := InferredTypeEnum.kNoInference,
e2InferredType := InferredTypeEnum.kInferredPoint)