From 94503d8e2c02ec7390b0504d718bfc6b880ea9fc Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Sun, 14 Aug 2022 22:16:14 -0700 Subject: [PATCH] comment out IGES case --- .../features/importModel/importModel.operation.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/workbenches/modeler/features/importModel/importModel.operation.ts b/modules/workbenches/modeler/features/importModel/importModel.operation.ts index 57b59add..0038e34b 100644 --- a/modules/workbenches/modeler/features/importModel/importModel.operation.ts +++ b/modules/workbenches/modeler/features/importModel/importModel.operation.ts @@ -82,10 +82,15 @@ export const ImportModelOpperation: OperationDescriptor = { } else if (FileName.endsWith("IGES") || FileName.endsWith("IGS")) { - //IGES import - FS.writeFile("newIgesObject", rawContent); - oci.igesread("newIgesObject", "newIgesObject"); - returnObject.created.push(occ.io.getShell("newIgesObject")); + throw new CadError({ + kind: CadError.KIND.INVALID_INPUT, + code: 'IGES is not supported yet' + }); + + // //IGES import + // FS.writeFile("newIgesObject", rawContent); + // oci.readbrep()igesread("newIgesObject", "newIgesObject"); + // returnObject.created.push(occ.io.getShell("newIgesObject")); } else { throw new CadError({