DiscussionsIssue archiveOther usage issues

Archived discussion

Crash when reading STEP file

Other usage issuesThu, 10/25/2012 - 01:332 replies

Browse this forum
QuestionAuthor

Good evening. I'm having crashes on reading some .step files. Here is my code to read a step file

var aReader = new OCSTEPControl_Reader();
aReader.ReadFile(filename);
aReader.PrintCheckLoad(false, OCIFSelect_PrintCount.IFSelect_ItemsByEntity);
var nbr = aReader.NbRootsForTransfer(); // CRASH HAPPENS HERE
aReader.TransferRoots();
return aReader.OneShape(); //Transform it into an opencascade shape

I've attached the file that crashes my open cascade when I try to read it. Is anyone having this problem? Thanks in advance for the help!

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

No problem with reading your STEP-File.

02Commenter-2

Hi Bernardo,

I was also able to import the file successfully.

However, I spotted some invalid faces within the model.

Commenter-2