- if (aFormatName == "BREP") {
- aShape = BREPImport::Import(aFileName, aFormatName, anError, anUnknownLabel);
- } else if (aFormatName == "STEP") {
- aShape = STEPImport::Import(aFileName, aFormatName, anError, anUnknownLabel);
+ if (anExtension == "BREP" || anExtension == "BRP") {
+ aShape = BREPImport(theFileName, anExtension, anError);
+ } else if (anExtension == "STEP" || anExtension == "STP") {
+ aShape = STEPImport(theFileName, anExtension, anError);
+ } else if (anExtension == "IGES" || anExtension == "IGS") {
+ aShape = IGESImport(theFileName, anExtension, anError);