I try to read STEP and IGES files via the new XDE package. But since this are my first steps with OCAF I got some problems. Here's the code:
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
"STEP Files (*.stp , *.step)|*.stp; *.step; |All Files (*.*)|*.*||",
if (dlg.DoModal() == IDOK)
CString filename = dlg.GetPathName();
Standard_CString aFileName = (Standard_CString)(LPCTSTR)filename;
IFSelect_ReturnStatus readstat = reader.ReadFile(aFileName);
if ( !reader.Transfer ( myOcafDoc ) )
AfxMessageBox("Cannot read any relevant data from the STEP file");
It reads the file but I don't get shapes in my 3D-View.
What am I doing wrong?
Regards, Patrik Müller