L3munoz
Industrial
- Aug 29, 2011
- 26
Hi everybody,
I'm working with CATIA since not a long time, and I'm still a little lost, moreover on CATIA automation...The problem is that I want to split a spline (BottomSpline) using a point (ConnectionPoint(6)), and write it in a macro. Here is my code:
Dim Split1 As Split
Dim Supref As Reference
Set Supref = PtPart.CreateReferenceFromObject(ConnectionPoint(6))
Set Split1 = PtPart.ShapeFactory.AddNewSplit(Supref, BottomSpline)
Split1.AddElementToKeep BottomSpline
I'm using this 'guide', but honestly I don't understand it pretty well...
I gave as arguments the CuttingElem and the ElemToCut, however, it still gives me an error message, telling me Type Mismatch PtPart.ShapeFactory.AddNewSplit"
What does it mean??
Any help is welcome, thanks in advance,
L3munoz
I'm working with CATIA since not a long time, and I'm still a little lost, moreover on CATIA automation...The problem is that I want to split a spline (BottomSpline) using a point (ConnectionPoint(6)), and write it in a macro. Here is my code:
Dim Split1 As Split
Dim Supref As Reference
Set Supref = PtPart.CreateReferenceFromObject(ConnectionPoint(6))
Set Split1 = PtPart.ShapeFactory.AddNewSplit(Supref, BottomSpline)
Split1.AddElementToKeep BottomSpline
I'm using this 'guide', but honestly I don't understand it pretty well...
I gave as arguments the CuttingElem and the ElemToCut, however, it still gives me an error message, telling me Type Mismatch PtPart.ShapeFactory.AddNewSplit"
What does it mean??
Any help is welcome, thanks in advance,
L3munoz