Fri, 06/07/2024 - 03:31
Hi.
I used "STEPCAFControl_Reader" to read a step file, but it doesn't read anything.
Basic Infomation:
Version: 7.8.1
Debug Information:
ReadColor: true,
ReadName: true,
"STEPCAFControl_Reader::ReadFile" return "Ok"
"STEPCAFControl_Reader::Transfer" return "true",but it output message "Microsoft C++ exception: Standard_NullObject at memory location 0x00000094932F6DB0."
This file can be open use 3D-Tool and NG.
Fri, 06/07/2024 - 09:45
Hi,
I encounter some problems with STEPCAFControl_Reader too, but I don' know is it matters with your issue, could you pls share more information about it.
My opencascade version is 7.8.0. Maybe? It is the Version that can parse UDA.
The issue I encountered occurred in the source file "StepData_StepReaderData.cxx":
310: theVal->Clear();
311: aResString.Trunc(aResStringSize);
312: TCollection_AsciiString aTmpString(aResString, 0);
313:theVal->AssignCat(aTmpString.ToCString());
The local variables are as shown in figure 1. It seem that aResString get the correct result but aTmpString get wrong by aResString.
And in "STEPCAFControl_Reader.cxx", local variables are as shown in figure 2. Additionsly, CAD assitant can parse the material name correctly.
Any help is greatly appreciated.
Best regards,
Elle
Fri, 06/07/2024 - 10:33
It is not related. The issue with probably local conversion. Needs to specify which local to use.
Please take a look into src/Resource/Resource_FormatType.hxx
You can specify the waned local by
Best regards, Dmitrii.
Tue, 06/11/2024 - 13:08
Hello Dmitrii,
Thanks for your help, my problem could be solved with your suggestion.
Best regards,
Elle
Fri, 06/07/2024 - 10:28
Hello, in some cases (AP214 models created with not model structure, only shapRepresentation).
In that case needs to define special flag to extract model from not-default entities. If it is not your case, needs to have file sample to check the issue from OCC team,
Best regards, Dmitrii.
Fri, 06/07/2024 - 12:18
Hi, thank you help.
It is indeed the AP124 model.But I haven't solved the problem yet.I'm continuing to try to fix it and and reporting results.
Best regards, jiawang.
Wed, 06/12/2024 - 12:35
Hello.
I tried the solution you provided,but not successed.
I did some deep debugging and found two exception as follows:
StepToTopoDS_TranslateEdgeLoop.cxx:350
StepToTopoDS_TranslateEdge.cxx:286
Best regards, jiawang.
Wed, 06/12/2024 - 13:23
If you will share step file, it will be easy to check. But yes, looks like a problem with not valid STEP file. Probably we can prepare some fix, but only in case if it will be some general solution.
Best regards, Dmitrii.
Wed, 06/12/2024 - 16:08
I don't own the file, so I can't share it.
Wed, 06/12/2024 - 17:00
Without file we can't help you. You can only try to reproduce the issue with some public file. Or share file content related with Oriented_Edge.
Best regards, Dmitrii.