VBA V5 - SetGeometry on 5AxisCurveMachining

Hello everybody,

I am looking for a method to assign the main guiding contour to a Multi-Axis Curve Machining operation in vba (on catia v5 r20).

I can set : "auxiliary guiding contour", "relimiting elements" and" check element", but not the "main guiding contour"!

 

Below an extract of my code : 

Dim Guide1 As HybridShape

Dim Guide2 As HybridShape

Dim Guide3 As HybridShape

Dim Guide4 As HybridShape

Dim MyMO As ManufacturingOperation

' Retrieve HybridShapes

Set Guide1 = MyPart.HybridBodies.Item(1).HybridShapes.Item(1)

Set Guide2 = MyPart.HybridBodies.Item(1).HybridShapes.Item(2)

Set Guide3 = MyPart.HybridBodies.Item(1).HybridShapes.Item(3)

Set Guide4 = MyPart.HybridBodies.Item(1).HybridShapes.Item(4)

' Append Multi-Axis Curve Machining with "Mfg5AxisCurveMachining" iMOTypeString

Set MyMO = MyMfgProgram.AppendOperation("Mfg5AxisCurveMachining", 1)

' Add Auxiliary guide curve => OK

Call MyMO.SetGeometry("AuxGuidingCurves", Guide1, MyMfgSetUp.GetProductInstance(), 0)

' Add Auxiliary guide curve => OK

Call MyMO.SetGeometry("FirstRelimitingElement", Guide2, MyMfgSetUp.GetProductInstance(), 0)

' Add Auxiliary guide curve => OK

Call MyMO.SetGeometry("SecondRelimitingElement", Guide3, MyMfgSetUp.GetProductInstance(), 0)

' Add Guide curve => KO, but I haven't error message

Call MyMO.SetGeometry("GuidingCurves", Guide4, MyMfgSetUp.GetProductInstance(), 0)

I have already searched in the DS Automation documentation, in vain... the method SetGeometry exists but is not fully detailed.

Thanks in advance.

Nicolas.