- aResult = BREPExport::Export(aFileName, aFormatName, aShape, anError, anUnknownLabel);
- } else if (aFormatName == "STEP" || aFormatName == "STP") {
-// aShape = STEPExport::Export(aFileName, aFormatName, anError, anUnknownLabel);
- } else if (aFormatName == "IGES") {
- aResult = IGESExport::Export(aFileName, aFormatName, aShape, anError, anUnknownLabel);
+ aResult = BREPExport(theFileName, aFormatName, theShape, anError);
+ } else if (aFormatName == "STEP") {
+ aResult = STEPExport(theFileName, aFormatName, theShape, anError);
+ } else if (aFormatName.substr(0, 4) == "IGES") {
+ aResult = IGESExport(theFileName, aFormatName, theShape, anError);
+ } else {
+ anError = "Unsupported format: " + aFormatName;