diff --git a/modules/workbenches/modeler/actions/getVolume/getVolume.action.ts b/modules/workbenches/modeler/actions/getVolume/getVolume.action.ts index 8a4620c6..297c7904 100644 --- a/modules/workbenches/modeler/actions/getVolume/getVolume.action.ts +++ b/modules/workbenches/modeler/actions/getVolume/getVolume.action.ts @@ -1,3 +1,4 @@ +import { OCCService } from 'cad/craft/e0/occService'; import { roundValueForPresentation as r } from 'cad/craft/operationHelper'; import { MFace } from "cad/model/mface"; import { MShell } from "cad/model/mshell"; @@ -14,13 +15,13 @@ interface getVolumeParams { } export const GetVolume: OperationDescriptor = { - id: 'EXTRUDE', - label: 'Extrude', + id: 'GET_VOLUME', + label: 'VOLUME', icon: 'img/cad/extrude', info: 'extrudes 2D sketch', run: (params: getVolumeParams, ctx: ApplicationContext) => { - let occ = ctx.occService; + let occ = ctx.services.OCCService; const oci = occ.commandInterface; alert(); diff --git a/modules/workbenches/modeler/index.ts b/modules/workbenches/modeler/index.ts index ce6d91df..ae20ac80 100644 --- a/modules/workbenches/modeler/index.ts +++ b/modules/workbenches/modeler/index.ts @@ -49,7 +49,7 @@ export const ModelerWorkspace: WorkbenchConfig = { "BOOLEAN", "-", "SHELL_TOOL", "FILLET_TOOL", "OFFSET_TOOL", "MIRROR_BODY", "-", "CYLINDER", "BOX", "CONE", "SPHERE", "TORUS", "-", - "HOLE_TOOL", "-", + "HOLE_TOOL", "-", 'GET_VOLUME', ] } } \ No newline at end of file