For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Error reading Step Assembly

mamadou sy's picture

I am still having an error anytime I am using STEPCAF tools to read a step file.
And I just add the folowing code and included the .hxx files needed.
Handle_XCAFApp_Application app = XCAFApp_Application::GetApplication ();
Handle_TDocStd_Document document;
app->NewDocument ("MDTV-XCAF", document);

STEPCAFControl_Reader reader;
reader.ReadFile ("afile.step");

Thank you for your help

Creating library ../../Debug/TexturesExt.lib and object ../../Debug/TexturesExt.exp
TexturesExt_Presentation.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall XSControl_Reader::NbRootsForTransfer(void)" (?NbRootsForTransfer@XSControl_Reader@@UAEHXZ)
TexturesExt_Presentation.obj : error LNK2001: unresolved external symbol "public: __thiscall Handle_XSControl_WorkSession::~Handle_XSControl_WorkSession(void)" (??1Handle_XSControl_WorkSession@@QAE@XZ)
../../Debug/TexturesExt.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

TexturesExt.exe - 3 error(s), 0 warning(s)

mamadou sy's picture

I would appreciate if anyone can send me a working code able to read any step assembly file.
Thank you

Kevin Malachowski's picture

This is a random shot in the dark, but did you ever happen to get this to work?