STEP Reader

Hi,

How must I initialize my TDocStd_Document to process the method
reader.Perform(filename, DOC)

I also need to know how to convert a
TCollection_ExtendedString
to
std::string

thank you for a quick answer

Jérome Dufaure's picture

hi

to initialize a TDocStd_Document aDoc with XCAF format you can use XCAFDoc_DocumentTool::Set(aDoc->Main());

to convert a TCollection_ExtendedString ExtName to Standard_CString CStringName.
TCollection_ExtendedString ExtName;
TCollection_AsciiString Asciiname(ExtName);
Standard_CString CStringName= Asciiname.ToCString();

I hope this will help you