diff --git a/modules/workbenches/modeler/actions/getVolume/getVolume.action.ts b/modules/workbenches/modeler/actions/getVolume/getVolume.action.ts index 897d2b4c..9bad97f2 100644 --- a/modules/workbenches/modeler/actions/getVolume/getVolume.action.ts +++ b/modules/workbenches/modeler/actions/getVolume/getVolume.action.ts @@ -13,6 +13,7 @@ export const GetVolume: any = { label: 'VOLUME', icon: 'img/cad/extrude', info: 'extrudes 2D sketch', + path:__dirname, run: (params: getVolumeParams, ctx: ApplicationContext) => { let occ = ctx.services.OCCService; diff --git a/modules/workbenches/modeler/features/boolean/boolean.operation.ts b/modules/workbenches/modeler/features/boolean/boolean.operation.ts index fb2d9a62..130a4c7c 100644 --- a/modules/workbenches/modeler/features/boolean/boolean.operation.ts +++ b/modules/workbenches/modeler/features/boolean/boolean.operation.ts @@ -15,6 +15,7 @@ export const BooleanOperation: OperationDescriptor = { label: 'Boolean', icon: 'img/cad/intersection', info: 'Booleans 2D sketch', + path:__dirname, paramsInfo: ({tools, boolean}) => `(${r(tools)} ${r(boolean)})`, run: (params: BooleanParams, ctx: ApplicationContext) => { let occ = ctx.occService; diff --git a/modules/workbenches/modeler/features/deleteBody/deleteBody.operation.ts b/modules/workbenches/modeler/features/deleteBody/deleteBody.operation.ts index becdb480..8aed2aaf 100644 --- a/modules/workbenches/modeler/features/deleteBody/deleteBody.operation.ts +++ b/modules/workbenches/modeler/features/deleteBody/deleteBody.operation.ts @@ -13,6 +13,7 @@ export const DeleteBodyOperation: OperationDescriptor = { label: 'DeleteBody', icon: 'img/cad/deleteBody', info: 'Delete Bodies', + path:__dirname, paramsInfo: ({ tools }) => `(${r(tools)})`, run: (params: DeleteBodyParams, ctx: ApplicationContext) => { let occ = ctx.occService; diff --git a/modules/workbenches/modeler/features/extrude/extrude.operation.ts b/modules/workbenches/modeler/features/extrude/extrude.operation.ts index f273f5f4..f0eec4b5 100644 --- a/modules/workbenches/modeler/features/extrude/extrude.operation.ts +++ b/modules/workbenches/modeler/features/extrude/extrude.operation.ts @@ -37,6 +37,7 @@ export const ExtrudeOperation: OperationDescriptor = { }, icon: 'img/cad/extrude', info: 'extrudes 2D sketch', + path:__dirname, paramsInfo: ({length}) => `(${r(length)})`, run: (params: ExtrudeParams, ctx: ApplicationContext, rawParams: any) => { diff --git a/modules/workbenches/modeler/features/fillet/fillet.operation.ts b/modules/workbenches/modeler/features/fillet/fillet.operation.ts index c599f8be..e99ae836 100644 --- a/modules/workbenches/modeler/features/fillet/fillet.operation.ts +++ b/modules/workbenches/modeler/features/fillet/fillet.operation.ts @@ -19,6 +19,7 @@ export const FilletOperation: OperationDescriptor = { label: 'Fillet/Chapher', icon: 'img/cad/fillet', info: 'Fillet/Champher', + path:__dirname, paramsInfo: ({size, opperationType,}) => `(${r(size)} ${r(opperationType)}})`, run: (params: FilletParams, ctx: ApplicationContext) => { diff --git a/modules/workbenches/modeler/features/hole/Hole.operation.ts b/modules/workbenches/modeler/features/hole/Hole.operation.ts index 6b180acd..99512088 100644 --- a/modules/workbenches/modeler/features/hole/Hole.operation.ts +++ b/modules/workbenches/modeler/features/hole/Hole.operation.ts @@ -21,6 +21,7 @@ export const HoleOperation: OperationDescriptor = { label: 'hole', icon: 'img/cad/hole', info: 'creates hole features', + path:__dirname, paramsInfo: ({ diameter, diff --git a/modules/workbenches/modeler/features/importModel/importModel.operation.ts b/modules/workbenches/modeler/features/importModel/importModel.operation.ts index a584af0f..77de9ab5 100644 --- a/modules/workbenches/modeler/features/importModel/importModel.operation.ts +++ b/modules/workbenches/modeler/features/importModel/importModel.operation.ts @@ -16,6 +16,7 @@ export const ImportModelOpperation: OperationDescriptor = { label: 'Import', icon: 'img/cad/import', info: 'Imports BREP, STEP, IGES or FCStd file', + path:__dirname, paramsInfo: () => `()`, run: async (params: ImportModelParams, ctx: ApplicationContext) => { let occ = ctx.occService; diff --git a/modules/workbenches/modeler/features/loft/loft.operation.ts b/modules/workbenches/modeler/features/loft/loft.operation.ts index fa6d1d86..dcc54fa6 100644 --- a/modules/workbenches/modeler/features/loft/loft.operation.ts +++ b/modules/workbenches/modeler/features/loft/loft.operation.ts @@ -19,6 +19,7 @@ export const LoftOperation: OperationDescriptor = { label: 'Loft', icon: 'img/cad/loft', info: 'Lofts 2D sketch', + path:__dirname, paramsInfo: () => `(?)`, run:async (params: LoftParams, ctx: ApplicationContext) => { diff --git a/modules/workbenches/modeler/features/mirrorBody/mirrorBody.operation.ts b/modules/workbenches/modeler/features/mirrorBody/mirrorBody.operation.ts index 5b328562..4df0b829 100644 --- a/modules/workbenches/modeler/features/mirrorBody/mirrorBody.operation.ts +++ b/modules/workbenches/modeler/features/mirrorBody/mirrorBody.operation.ts @@ -16,6 +16,7 @@ export const MirrorBodyOperation: OperationDescriptor = { label: 'Mirror Body', icon: 'img/cad/MirrorBody', info: 'Mirrors selected body along plane of symytry.', + path:__dirname, paramsInfo: () => `(?)`, run: (params: MirrorBodyParams, ctx: ApplicationContext) => { let occ = ctx.occService; diff --git a/modules/workbenches/modeler/features/patternLinear/patternLinear.operation.ts b/modules/workbenches/modeler/features/patternLinear/patternLinear.operation.ts index 36ff8604..373e1b26 100644 --- a/modules/workbenches/modeler/features/patternLinear/patternLinear.operation.ts +++ b/modules/workbenches/modeler/features/patternLinear/patternLinear.operation.ts @@ -25,6 +25,7 @@ export const PatternLinearOperation: OperationDescriptor = label: 'Linear pattern', icon: 'img/cad/patternLinear', info: 'Creates a linear pattern.', + path:__dirname, paramsInfo: () => `(?)`, run: (params: patternLinearParams, ctx: ApplicationContext) => { let occ = ctx.occService; diff --git a/modules/workbenches/modeler/features/patternRadial/patternRadial.operation.ts b/modules/workbenches/modeler/features/patternRadial/patternRadial.operation.ts index b7684da5..1e9ee550 100644 --- a/modules/workbenches/modeler/features/patternRadial/patternRadial.operation.ts +++ b/modules/workbenches/modeler/features/patternRadial/patternRadial.operation.ts @@ -24,6 +24,7 @@ export const PatternRadialOperation: OperationDescriptor = label: 'Radial pattern', icon: 'img/cad/patternRadial', info: 'Creates a Radial pattern.', + path:__dirname, paramsInfo: p => `( ${p.patternMethod} ${r(p.angle * DEG_RAD)})`, run: (params: patternRadialParams, ctx: ApplicationContext) => { diff --git a/modules/workbenches/modeler/features/primitiveBox/primitiveBox.operation.ts b/modules/workbenches/modeler/features/primitiveBox/primitiveBox.operation.ts index 6b27158f..726a628e 100644 --- a/modules/workbenches/modeler/features/primitiveBox/primitiveBox.operation.ts +++ b/modules/workbenches/modeler/features/primitiveBox/primitiveBox.operation.ts @@ -21,6 +21,7 @@ export const PrimitiveBoxOperation: OperationDescriptor = { label: 'Box', icon: 'img/cad/cube', info: 'Primitive Box', + path:__dirname, paramsInfo: ({x, y, z}) => `(${r(x)} , ${r(y)} , ${r(z)})`, form: [ { diff --git a/modules/workbenches/modeler/features/primitiveCone/PrimitiveCone.operation.ts b/modules/workbenches/modeler/features/primitiveCone/PrimitiveCone.operation.ts index 029df4a4..a96b4340 100644 --- a/modules/workbenches/modeler/features/primitiveCone/PrimitiveCone.operation.ts +++ b/modules/workbenches/modeler/features/primitiveCone/PrimitiveCone.operation.ts @@ -21,6 +21,7 @@ export const PrimitiveConeOperation: OperationDescriptor = label: 'Cone', icon: 'img/cad/cone', info: 'Cone', + path:__dirname, paramsInfo: ({ height, diameterA, diameterB }) => `(${r(height)} , ${r(diameterA)} , ${r(diameterB)} )`, form: [ { diff --git a/modules/workbenches/modeler/features/primitiveCylinder/PrimitiveCylinder.operation.ts b/modules/workbenches/modeler/features/primitiveCylinder/PrimitiveCylinder.operation.ts index 1587934b..52679543 100644 --- a/modules/workbenches/modeler/features/primitiveCylinder/PrimitiveCylinder.operation.ts +++ b/modules/workbenches/modeler/features/primitiveCylinder/PrimitiveCylinder.operation.ts @@ -20,6 +20,7 @@ export const PrimitiveCylinderOperation: OperationDescriptor `(${r(height)} , ${r(diameter)} )`, form: [ { diff --git a/modules/workbenches/modeler/features/primitiveSphere/PrimitiveSphere.operation.ts b/modules/workbenches/modeler/features/primitiveSphere/PrimitiveSphere.operation.ts index 001b45d9..0c585fcd 100644 --- a/modules/workbenches/modeler/features/primitiveSphere/PrimitiveSphere.operation.ts +++ b/modules/workbenches/modeler/features/primitiveSphere/PrimitiveSphere.operation.ts @@ -18,6 +18,7 @@ export const PrimitiveSphereOperation: OperationDescriptor `(${r(radius)} )`, form: [ { diff --git a/modules/workbenches/modeler/features/primitiveTorus/PrimitiveTorus.operation.ts b/modules/workbenches/modeler/features/primitiveTorus/PrimitiveTorus.operation.ts index 5b3df787..ebfb1b07 100644 --- a/modules/workbenches/modeler/features/primitiveTorus/PrimitiveTorus.operation.ts +++ b/modules/workbenches/modeler/features/primitiveTorus/PrimitiveTorus.operation.ts @@ -20,6 +20,7 @@ export const PrimitiveTorusOperation: OperationDescriptor label: 'Torus', icon: 'img/cad/torus', info: 'Primitive Torus', + path:__dirname, paramsInfo: ({ radius, tubeRadius }) => `(${r(radius)} , ${r(tubeRadius)} )`, form: [ { diff --git a/modules/workbenches/modeler/features/revolve/revolve.operation.ts b/modules/workbenches/modeler/features/revolve/revolve.operation.ts index dcc122d8..a911c71c 100644 --- a/modules/workbenches/modeler/features/revolve/revolve.operation.ts +++ b/modules/workbenches/modeler/features/revolve/revolve.operation.ts @@ -20,6 +20,7 @@ export const RevolveOperation: OperationDescriptor = { label: 'Revolve', icon: 'img/cad/revolve', info: 'Revolves 2D sketch', + path:__dirname, paramsInfo: ({angle}) => `(${r(angle)})`, run: (params: RevolveParams, ctx: ApplicationContext) => { let occ = ctx.occService; diff --git a/modules/workbenches/modeler/features/scaleBody/scaleBody.operation.ts b/modules/workbenches/modeler/features/scaleBody/scaleBody.operation.ts index c3b75ab3..9483657c 100644 --- a/modules/workbenches/modeler/features/scaleBody/scaleBody.operation.ts +++ b/modules/workbenches/modeler/features/scaleBody/scaleBody.operation.ts @@ -15,6 +15,7 @@ export const ScaleOperation: OperationDescriptor = { label: 'Scale', icon: 'img/cad/scale', info: 'Scale Body', + path:__dirname, paramsInfo: ({ distance }) => `(${r(distance)})`, run: (params: scaleParams, ctx: ApplicationContext) => { let occ = ctx.occService; diff --git a/modules/workbenches/modeler/features/shell/shell.operation.ts b/modules/workbenches/modeler/features/shell/shell.operation.ts index 11626da0..adb33227 100644 --- a/modules/workbenches/modeler/features/shell/shell.operation.ts +++ b/modules/workbenches/modeler/features/shell/shell.operation.ts @@ -15,6 +15,7 @@ export const ShellOperation: OperationDescriptor = { label: 'Shell', icon: 'img/cad/shell', info: 'Shells 2D sketch', + path:__dirname, paramsInfo: ({thickness}) => `(${r(thickness)})`, run: (params: ShellParams, ctx: ApplicationContext) => { let occ = ctx.occService; diff --git a/modules/workbenches/modeler/features/sweep/sweep.operation.ts b/modules/workbenches/modeler/features/sweep/sweep.operation.ts index 823dffe5..b62b144a 100644 --- a/modules/workbenches/modeler/features/sweep/sweep.operation.ts +++ b/modules/workbenches/modeler/features/sweep/sweep.operation.ts @@ -16,6 +16,7 @@ export const SweepOperation: OperationDescriptor = { label: 'Sweep', icon: 'img/cad/sweep', info: 'Sweeps 2D profile loop', + path:__dirname, paramsInfo: () => `(?)`, run: (params: SweepParams, ctx: ApplicationContext) => { diff --git a/modules/workbenches/sheetMetal/features/smFlange/smFlange.operation.ts b/modules/workbenches/sheetMetal/features/smFlange/smFlange.operation.ts index 977e8ec8..5a47015b 100644 --- a/modules/workbenches/sheetMetal/features/smFlange/smFlange.operation.ts +++ b/modules/workbenches/sheetMetal/features/smFlange/smFlange.operation.ts @@ -18,6 +18,7 @@ export const smFlangeOperation: OperationDescriptor = { label: 'Flange', icon: 'img/cad/smFlange', info: 'Creates Sheet metal flange', + path:__dirname, paramsInfo: ({ angle }) => `(${r(angle)})`, run: (params: smFlangeParams, ctx: ApplicationContext) => { let occ = ctx.occService; diff --git a/modules/workbenches/sheetMetal/features/smTab/smTab.operation.ts b/modules/workbenches/sheetMetal/features/smTab/smTab.operation.ts index 2215d3c1..b4786d34 100644 --- a/modules/workbenches/sheetMetal/features/smTab/smTab.operation.ts +++ b/modules/workbenches/sheetMetal/features/smTab/smTab.operation.ts @@ -29,6 +29,7 @@ export const smTabOperation: OperationDescriptor = { label: 'SM Tab', icon: 'img/cad/smTab', info: 'Create tab from sketch', + path:__dirname, paramsInfo: ({ thickness, bendRadius }) => `(${r(thickness)} ${r(bendRadius)} )`, run: (params: smTabParams, ctx: ApplicationContext) => {