+ #ifdef _DEBUG
+ std::cout << "Export IGES into file " << theFileName << std::endl;
+ #endif
+
+ if (!theShape.get()) {
+ theError = "IGES Export failed: An invalid argument";
+ return false;
+ }
+
+ // theFormatName expected "IGES-5.1", "IGES-5.3"...
+ TCollection_AsciiString aFormatName(theFormatName.c_str());
+ TCollection_AsciiString aVersion = aFormatName.Token("-", 2);
+ #ifdef _DEBUG
+ if (!aVersion.IsEqual("5.1") || !aVersion.IsEqual("5.3"))
+ std::cout << "Warning: unrecognized version " << aVersion.ToCString()
+ << ". Default version: 5.1." << std::endl;
+ #endif