Enable optional arguments in point-and-click Sweep (#7580)

* Enable optional arguments in point-and-click Sweep
Fixes #7578

* Fix bug and add e2e test step

* Fix review not triggering bug and e2e test
This commit is contained in:
Pierre Jacquier
2025-06-23 16:17:17 -04:00
committed by GitHub
parent 1e1bdbd6e7
commit 0cd6031aae
6 changed files with 93 additions and 23 deletions

View File

@ -86,6 +86,7 @@ export type ModelingCommandSchema = {
sketches: Selections
path: Selections
sectional?: boolean
relativeTo?: string
}
Loft: {
sketches: Selections
@ -455,13 +456,19 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
},
sectional: {
inputType: 'options',
skip: true,
required: false,
options: [
{ name: 'False', value: false },
{ name: 'True', value: true },
],
// No validation possible here until we have rollback
},
relativeTo: {
inputType: 'options',
required: false,
options: [
{ name: 'sketchPlane', value: 'sketchPlane' },
{ name: 'trajectoryCurve', value: 'trajectoryCurve' },
],
},
},
},