Home
Reply
Contributor
Maximilien
Posts: 6

SPAX_ACIS_E_BOX_TOO_SMALL error/warning when importing 2 points

I have a small SAT file with 2 points (0, 0, 0) and (1, 1, 1) created and saved with the Scheme Interpreter. (see attached SAT file)

 

When importing this file with SPAIConverter::Convert an error/warning SPAX_ACIS_E_BOX_TOO_SMALL is reported.

 

The error also happens when importing a SAT file with a single point at  (0, 0, 0) coordinate. (SPAX_ACIS_E_BOX_TOO_SMALL)

When importing a SAT file with a point point at coordinates (1 1 1 ) the import works as expected.

 

Is (0 0 0) a valid coordinate ? and how is it different than (1 1 1)  in regards to bounding box size or model size ?

 

If I have a point at (0 0 0) what is the bounding box ? If I have a point at (1 1 1)  what is the bounding box ?

 

Code to import :

----------------

 

    SPAIDocument src(filename);
    SPAIAcisDocument dst;
    SPAIConverter converter;
    SPAIOptions acisOptions;
    SPAIValue pathToLog("C:\\temp\\ACISsession.txt");
    SPAIResult res = acisOptions.Add(SPAIOptionName::RecordingSession, pathToLog);
    if (!res.IsCompleteSuccess())
    {
        //failed to set unit
        error_message = res.GetMessage();
        throw(0);//throw an exception in order to exit from the function
    }

    //set destination unit
    SPAIUnit systemUnit = SPAIUnitMeter;
    res = dst.SetUnit(systemUnit);
    if (!res.IsCompleteSuccess())
    {
        //failed to set unit
        error_message = res.GetMessage();
        throw(0);//throw an exception in order to exit from the function
    }

    SPAIFile logFile(options.m_LogFileName.c_str());
    if (options.m_LogFileName!="")
    {
        converter.StartLog(logFile);
    }

    //start conversion
    res = converter.Convert(src, dst);
    if (options.m_LogFileName!="")
    {
        converter.StopLog(logFile);
    }

    if (!res.IsSuccess())
    {
        //failed to export file
        error_message = res.GetMessage();
        throw(0);//throw an exception in order to exit from the function
    }

 

 

 

---------------

 

Thanks.

 

Maximilien.

Spatial Employee
bikash_parida
Posts: 23

Re: SPAX_ACIS_E_BOX_TOO_SMALL error/warning when importing 2 points

Hello Maximilien,

 

I think it is bug in InterOp implementation because for a point which is well within ACIS dynamic range, this error/warning message should not be there. We will log a defect for further investigation and fixing.

 

Thanks

 

Bikash Parida
InterOp Developer
Spatial Moderator
ybiyani
Posts: 223

Re: SPAX_ACIS_E_BOX_TOO_SMALL error/warning when importing 2 points

Hello Maximilien,

 

Please log the incident and refer to this post in the same so that we can associate the defect with your organization and you can track the status using the OSC.

 

Regards,

Yogesh

Contributor
Maximilien
Posts: 6

Re: SPAX_ACIS_E_BOX_TOO_SMALL error/warning when importing 2 points

Created incident.

 

incident ref number :  100913-000013

 

Max.