- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
SPAX_ACIS_ E_BOX_TOO_ SMALL error/warn ing when importing 2 points
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-08-2010 08:18 AM
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.
Re: SPAX_ACIS_ E_BOX_TOO_ SMALL error/warn ing when importing 2 points
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-09-2010 01:21 AM
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
InterOp Developer
Re: SPAX_ACIS_ E_BOX_TOO_ SMALL error/warn ing when importing 2 points
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-13-2010 08:17 AM
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
Re: SPAX_ACIS_ E_BOX_TOO_ SMALL error/warn ing when importing 2 points
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-13-2010 10:32 AM
Created incident.
incident ref number : 100913-000013
Max.

