Creating a Spline in CAA RADE

After creating the GSMFactory and PrtFactory you can create a spline by following these steps:

1) Create 3 or more points (See Creating a Point in CAA RADE)

2) Create a list and add the points to it using the following code:

CATListValCATISpecObject_var spListOfPoints;
spListOfPoints.Append(spSpecPoint1);
spListOfPoints.Append(spSpecPoint2); 
spListOfPoints.Append(spSpecPoint3);

3) Create a spline object and cast it as a CATISpecObject using the following code:

CATIGSMSpline_var spSpline = spGSMFactory->CreateSplinePoints(spListOfPoints);
CATISpecObject_var spSpecSpline = spSpline;

4) Update the spline and add it to the procedural view using the following code:

spSpecSpline->Update();
spCurObj = spSpline;
spCurObj->InsertInProceduralView();