I need to create a mate constraint between 2 workpoints placed into diferent components. The Components are at the same assembly level. I wrote code to get's the worpoints from each one component and to create the constraint descriptor. But when I try to create the new constraint in the first component, I get the error : -2147196502(800461aa) "Generic Failure to executo operation with provide arguments" Someone can helpme??? thanks in advance '========================================================== 'Create a Mate restriction between 2 WorkPoints '========================================================== Dim oUtil As McadUtility Dim oRoot As McadComponentDefinition Dim oC1 As McadComponent 'Component 1 Dim oC2 As McadComponent 'Component 2 'Get Utility and root definition Set oUtil = oMDTDoc.Utility Set oRoot = oMDTDoc.AssemblyMgr.RootDefinition 'Gets Comp 1 and 2 Set oC1 = oRoot.Children(0) Set oC2 = oRoot.Children(1) 'Gets the Workpoints Dim oC1Part As McadPart Dim oWkp1 As McadPoint Set oC1Part = oC1.Definition.Body Set oWkp1 = oC1Part.WorkPoints(0) Dim oC2Part As McadPart Dim oWkp2 As McadPoint Set oC2Part = oC2.Definition.Body Set oWkp2 = oC2Part.WorkPoints(0) 'Creates Descriptor Dim oCnsDes As McadConstraintDescriptor Set oCnsDes = oUtil.CreateConstraintDescriptor(mcCompMate) oCnsDes.Operand1 = oWkp1 oCnsDes.Operand1Orientation = mcRaw oCnsDes.Operand2 = oWkp2 oCnsDes.Operand2Orientation = mcRaw oCnsDes.Value = 0 oC1.AddConstraint oCnsDes