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

Open CASCADEShowroomGet it!Developer CornerSupportAbout 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
CD-ROM
Company Profile
Contacts and Locations
Customers
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
  • Open CASCADE Technology: Ten Years in Open Source
  • Principia - AvPro Success Story
  • AREVA NP - Charm Success Story

  • © Open CASCADE 2000 - 2010  |  Search  |  Contacts