Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forum
Open Source community
Training and e-learning
A la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forum / reader.Transfer() crash while reading STEP

Forum

reader.Transfer() crash while reading STEP
S2009/06/30 11:24
Hi.
I'm improving an existing step import/export module to load/save labels, colors and layers. I'm having issues when I try to transfer read data into the document.
Here's the code sample :

//code
readerStepCAF_ = new STEPCAFControl_Reader();
Standard_Integer stat = readerStepCAF_->ReadFile(fichier);
Handle(TDocStd_Document) aDoc ;
XCAFApp_Application::GetApplication()->NewDocument("MDTV-XCAF",aDoc);
Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool( aDoc->Main() );
Handle(XCAFDoc_ColorTool) myColors = XCAFDoc_DocumentTool::ColorTool( aDoc->Main() );

if ( XCAFDoc_DocumentTool::IsXCAFDocument (aDoc) )
{
if (readerStepCAF_->Transfer(aDoc))
{...}
}
//end of code

The program crashes when executing this line : "if (readerStepCAF_->Transfer(aDoc))"
The file can be read by the existing import module without errors, its the sample file used in the Extended Data Exchange (XDE) User’s Guide.
 
 
Latest news
  • FAQ section updated
  • OPEN CASCADE Uses Intel ® Parallel Studio XE to Introduce Parallelism into SALOME SMESH Module
  • Open CASCADE Technology 6.5.2 is available for download!

  • © OPEN CASCADE 2000 - 2012  |  Search  |  Contacts   |  Site map