Error code 945001

Hello all,

I am trying to create a .dll using NX Open to create surface. I wrote a function which returns the error 945001. I am not able to find out what error 945001 actually is. Below is the function code. This function accepts an array of points and creates a spline from those points and returns the control points of the spline. I am calling this dll from a console application.

//////////////////////////////////////////////////////////////
std::vector GetCtlPoints(double ptArray[][3], int size)
{
std::vector splineControlPoints;

std::vector Points;
SPLINE_FIT_t tFitSplineData; // Spline Curve Structure

double dMaxErr = 0.0; // Maximum err value
double dTolerance = 0.0001; // Default Tolerance value

tag_t tGeometry = NULL_TAG; // Tag of the geometry

NXOpen::Point3d Pt(0,0,0); // Instance to point class
bool bIsFeature = false;

for(int i=0; i

//////////// ERROR ///////////////////////

*** ERROR system never initialised, sending output to stderr ***
*** ERROR code 945001 at line 196 in NX8_Open2.cpp:
+++ NO error text found for error 945001
UF_MODL_create_fitted_spline(&tFitSplineData, &dMaxErr, &nErrorCode, &tGeometry);
*** ERROR code 945001 at line 196 in NX8_Open2.cpp:
+++ NO error text found for error 945001
UF_MODL_create_fitted_spline(&tFitSplineData, &dMaxErr, &nErrorCode, &tGeometry);

Could anybody please help me understand what I may be missing here?
Is there a comprehensive documentation of error codes and what each error code means ?

Thanks in advance
Wilson

Since we can only see a little snippet of your source, it is hard to say for sure, but I think the first error may be telling you something:

*** ERROR system never initialised,

Have you called UF_initialize() successfully?