mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-25 23:01:09 -05:00
15765 lines
445 KiB
JSON
15765 lines
445 KiB
JSON
{
|
|
"commands": [
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Slice the current plate and show the Preview tab. Returns at once; use the slice tool to wait for the result.",
|
|
"destructive": false,
|
|
"group": "Slice & Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "slice_and_preview",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"start_slice"
|
|
],
|
|
"read_only": false,
|
|
"title": "Slice and Preview"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Slice every plate and show the Preview tab. Returns at once; use the slice tool to wait for results.",
|
|
"destructive": false,
|
|
"group": "Slice & Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "slice_all",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"start_slice"
|
|
],
|
|
"read_only": false,
|
|
"title": "Slice All Plates"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Show the Preview tab at a layer chosen as a percentage of the layer range; an error while the Preview has no layers (slice first).",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"percent": {
|
|
"description": "The layer to show, as a percentage of the layer range.",
|
|
"maximum": 100,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"percent"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "go_to_layer",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"show_layer_range"
|
|
],
|
|
"read_only": false,
|
|
"title": "Go to layer (percent)"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Switch to a main window tab.",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"tab": {
|
|
"description": "The tab's id: home, prepare, preview, monitor, project, calibration, or a plugin page's id.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"tab"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "go_to_tab",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Go to tab..."
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open a project. With a path, opens that file without a dialog (asks first if the current project has unsaved changes).",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"description": "Absolute path of a .3mf project.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "load_project",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Load Project"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Save the project as a .3mf file. With a path, saves there without a dialog; a name ending in .gcode.3mf is refused (export_sliced_file writes that).",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"overwrite": {
|
|
"description": "Replace a file that exists already. Default false.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute path of the .3mf project to write.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "save_project_as",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"save_project_as"
|
|
],
|
|
"read_only": false,
|
|
"title": "Save Project As"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Take back the last change of a history, as Edit > Undo does. history design is the Design tab's: the last feature added, edited, deleted, moved, shown or hidden, or renamed, or variable changed, or in a sketch session the last drawn shape; project is the project's. Without history, the Design tab's while it is shown, else the project's. Reply: history and, for the Design tab's, result: scope (design or sketch), undo_depth, redo_depth, features, bodies and generation; entities in a sketch.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"history": "design"
|
|
},
|
|
"tool": "undo"
|
|
}
|
|
],
|
|
"title": "Take back an extrude, its sketch with it"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 4,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"history": "design"
|
|
},
|
|
"tool": "undo"
|
|
}
|
|
],
|
|
"title": "Take back the last shape drawn in a sketch"
|
|
}
|
|
],
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"history": {
|
|
"description": "The history: design, the Design tab's (with the CAD feature on), or project. Default: the Design tab's while it is shown, else the project's.",
|
|
"enum": [
|
|
"design",
|
|
"project"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "undo",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Undo"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Put back what undo took back, until the next change, as Edit > Redo does, in the history undo takes. Reply as undo's.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"history": "design"
|
|
},
|
|
"tool": "undo"
|
|
},
|
|
{
|
|
"args": {
|
|
"history": "design"
|
|
},
|
|
"tool": "redo"
|
|
}
|
|
],
|
|
"title": "Put back an extrude undo took back"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 4,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"history": "design"
|
|
},
|
|
"tool": "undo"
|
|
},
|
|
{
|
|
"args": {
|
|
"history": "design"
|
|
},
|
|
"tool": "redo"
|
|
}
|
|
],
|
|
"title": "Put back the shape undo took off a sketch"
|
|
}
|
|
],
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"history": {
|
|
"description": "The history: design, the Design tab's (with the CAD feature on), or project. Default: the Design tab's while it is shown, else the project's.",
|
|
"enum": [
|
|
"design",
|
|
"project"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "redo",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Redo"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Show or hide the Run Script panel, where a person writes and runs Python scripts cell by cell. Agents run Python with the run_script tool instead.",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "toggle_run_script",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Run Script"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Action Replay window, where a person opens a replay file (an orca_replay), reads its steps and replays them. Agents run replays with the run_replay tool instead.",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "open_action_replay",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Action Replay"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Preferences dialog on a tab, scrolled to one preference when given (shown on its own tab). Its controls are named after their preference keys: set_widget_value {\"target\": {\"name\": key, \"within\": \"Preferences\"}} changes one through the dialog; get_settings scope preferences reads them.",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"description": "A preference on that tab, e.g. auto_arrange on behaviour: its control is scrolled into view and focused.",
|
|
"type": "string"
|
|
},
|
|
"tab": {
|
|
"description": "The tab to show.",
|
|
"enum": [
|
|
"general",
|
|
"files",
|
|
"behaviour",
|
|
"control",
|
|
"graphics",
|
|
"online",
|
|
"developer"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "open_preferences",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Preferences"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Save a PNG of the main window in the folder Start Recording saves in (the person's Downloads unless they chose another) and show the person a notification naming it; the reply has its path. Agents use the screenshot tool, which returns the image.",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "take_screenshot",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Take Screenshot"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Switch the settings view to Simple mode.",
|
|
"destructive": false,
|
|
"group": "Mode",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "mode_simple",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Mode: Simple"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Switch the settings view to Advanced mode.",
|
|
"destructive": false,
|
|
"group": "Mode",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "mode_advanced",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Mode: Advanced"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Switch the settings view to Expert mode.",
|
|
"destructive": false,
|
|
"group": "Mode",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "mode_expert",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Mode: Expert"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Turn Developer mode on or off.",
|
|
"destructive": false,
|
|
"group": "Mode",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "toggle_developer_mode",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Toggle Developer Mode"
|
|
},
|
|
{
|
|
"completion": "deferred",
|
|
"description": "Export the current plate's G-code. With a path, exports there without a dialog once the plate is sliced, in the background, and the call returns when the file is written; with no arguments, it opens the export dialog.",
|
|
"destructive": false,
|
|
"group": "Slice & Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"overwrite": {
|
|
"description": "Replace a file that exists already. Default false.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute path of the .gcode file to write.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "export_gcode",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"start_gcode_export"
|
|
],
|
|
"read_only": false,
|
|
"title": "Export G-code"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Export all objects as one STL. With a path, writes there without a dialog.",
|
|
"destructive": false,
|
|
"group": "Slice & Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"overwrite": {
|
|
"description": "Replace a file that exists already. Default false.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute path of the .stl file to write.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "export_stl",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"export_stl"
|
|
],
|
|
"read_only": false,
|
|
"title": "Export STL"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Export the model as a .3mf without slicing data. With a path, writes there without a dialog.",
|
|
"destructive": false,
|
|
"group": "Slice & Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"overwrite": {
|
|
"description": "Replace a file that exists already. Default false.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute path of the .3mf file to write.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "export_3mf",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"export_model_3mf"
|
|
],
|
|
"read_only": false,
|
|
"title": "Export 3MF"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Export the current plate's sliced file (.gcode.3mf). With a path, writes there without a dialog.",
|
|
"destructive": false,
|
|
"group": "Slice & Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"overwrite": {
|
|
"description": "Replace a file that exists already. Default false.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute path of the .gcode.3mf file to write.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "export_sliced_file",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"export_sliced_3mf"
|
|
],
|
|
"read_only": false,
|
|
"title": "Export Sliced File"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Export every plate's sliced file into one .gcode.3mf. With a path, writes there without a dialog.",
|
|
"destructive": false,
|
|
"group": "Slice & Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"overwrite": {
|
|
"description": "Replace a file that exists already. Default false.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute path of the .gcode.3mf file to write.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "export_all_sliced_file",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"export_sliced_3mf"
|
|
],
|
|
"read_only": false,
|
|
"title": "Export All Sliced Files"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Send G-code to printer host dialog for the current plate, as the Print button does for a printer with a print host (OctoPrint, Moonraker, PrusaLink, Duet...). Set the file name with set_widget_value and press Upload or Upload and Print with answer_dialog; the plate is sliced if needed, then uploaded in the background: get_app_state.uploads shows the row's state, and a failed upload also opens an error dialog. A replay uploads again. Fails for a printer without a print host, or one that prints through the Bambu network or printer agents.",
|
|
"destructive": false,
|
|
"group": "Slice & Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "send_gcode",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"send_gcode_to_host"
|
|
],
|
|
"read_only": false,
|
|
"title": "Send G-code to printer host"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Temperature Calibration dialog; the generate_calibration_test tool runs the same test with typed parameters and no dialog.",
|
|
"destructive": false,
|
|
"group": "Calibration",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "calib_temperature",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Temperature Calibration"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Max Volumetric Speed Calibration dialog; the generate_calibration_test tool runs the same test with typed parameters and no dialog.",
|
|
"destructive": false,
|
|
"group": "Calibration",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "calib_max_volumetric",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Max Volumetric Speed Calibration"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Pressure Advance Calibration dialog; the generate_calibration_test tool runs the same test with typed parameters and no dialog.",
|
|
"destructive": false,
|
|
"group": "Calibration",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "calib_pressure_advance",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Pressure Advance Calibration"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Flow Ratio Calibration dialog; the generate_calibration_test tool runs the same test with typed parameters and no dialog.",
|
|
"destructive": false,
|
|
"group": "Calibration",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "calib_flow_ratio",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Flow Ratio Calibration"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Retraction Calibration dialog; the generate_calibration_test tool runs the same test with typed parameters and no dialog.",
|
|
"destructive": false,
|
|
"group": "Calibration",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "calib_retraction",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Retraction Calibration"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Cornering Calibration dialog; the generate_calibration_test tool runs the same test with typed parameters and no dialog.",
|
|
"destructive": false,
|
|
"group": "Calibration",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "calib_cornering",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Cornering Calibration"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Input Shaping Frequency Calibration dialog; the generate_calibration_test tool runs the same test with typed parameters and no dialog.",
|
|
"destructive": false,
|
|
"group": "Calibration",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "calib_input_shaping_freq",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Input Shaping Frequency Calibration"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the Input Shaping Damping Calibration dialog; the generate_calibration_test tool runs the same test with typed parameters and no dialog.",
|
|
"destructive": false,
|
|
"group": "Calibration",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "calib_input_shaping_damp",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Input Shaping Damping Calibration"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the VFA Calibration dialog; the generate_calibration_test tool runs the same test with typed parameters and no dialog.",
|
|
"destructive": false,
|
|
"group": "Calibration",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "calib_vfa",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "VFA Calibration"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Point the 3D camera: View: Top.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "view_top",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "View: Top"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Point the 3D camera: View: Bottom.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "view_bottom",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "View: Bottom"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Point the 3D camera: View: Front.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "view_front",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "View: Front"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Point the 3D camera: View: Rear.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "view_rear",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "View: Rear"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Point the 3D camera: View: Left.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "view_left",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "View: Left"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Point the 3D camera: View: Right.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "view_right",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "View: Right"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Point the 3D camera: View: Isometric.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "view_iso",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "View: Isometric"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Reset the 3D camera to the default view and fit the plate.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "view_default",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "View: Default"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Fit the build plate in the 3D view.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "view_fit_bed",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Fit Bed to View"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Switch the 3D camera between perspective and orthographic.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "view_toggle_perspective",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Toggle Perspective"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Restore the default window layout.",
|
|
"destructive": false,
|
|
"group": "View",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "reset_window_layout",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Reset Window Layout"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete the selected objects or parts.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_delete",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Delete Selected"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete all objects.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_delete_all",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Delete All Objects"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Select all objects in the 3D view.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "select_all",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Select All Objects"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Clear the selection.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "deselect_all",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Deselect All"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Mirror the selection along X.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_mirror_x",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Mirror X"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Mirror the selection along Y.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_mirror_y",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Mirror Y"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Mirror the selection along Z.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_mirror_z",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Mirror Z"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Split the selected object into separate objects.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_split_objects",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Split to Objects"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Split the selected object into parts.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_split_parts",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Split to Parts"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Center the selection on its plate.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_center",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Center Selected on Plate"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Drop the selection onto the bed.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_drop",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Drop to Bed"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Scale the selection to fit the print volume.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_fit_volume",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Scale to Fit Print Volume"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add an instance of the selected object.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_instances_up",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Increase Instances"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Remove an instance of the selected object.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_instances_down",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Decrease Instances"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Arrange all objects on the unlocked plates with the saved Arrange options, as the toolbar does; the call returns when the arrangement is done. The arrange tool also takes options, one plate or fill bed.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_arrange",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"start_arrange"
|
|
],
|
|
"read_only": false,
|
|
"title": "Auto-Arrange"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Auto-orient the selection, or every object when nothing is selected; the call returns when it is done.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_orient",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Auto-Orient"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Make the selected parts (select_objects {parts} first) solid parts, as Change Type does. Parts are listed by type, so part indices change.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_type_part",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Change Type to Part"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Make the selected parts negative parts, as Change Type does; not the object's last solid part. Parts are listed by type, so part indices change.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_type_negative",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Change Type to Negative Part"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Make the selected parts modifiers, as Change Type does; not the object's last solid part. Parts are listed by type, so part indices change.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_type_modifier",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Change Type to Modifier"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Make the selected parts support blockers, as Change Type does; not the object's last solid part, nor a text or SVG part. Parts are listed by type, so part indices change.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_type_support_blocker",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Change Type to Support Blocker"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Make the selected parts support enforcers, as Change Type does; not the object's last solid part, nor a text or SVG part. Parts are listed by type, so part indices change.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_type_support_enforcer",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Change Type to Support Enforcer"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Make the selected parts Center precise seams (seams keep their subtype), as Change Type does; not the object's last solid part, nor a text or SVG part. Parts are listed by type, so part indices change.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_type_precise_seam",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Change Type to Precise Seam"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Rename the selected object or part (select one). With a name, skips the Rename dialog; an empty name, or one with characters a file name cannot hold, is refused.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"description": "The new name, in place of the Rename dialog.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_rename",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Rename"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Give the selected object this many instances, in one undo step. With a count, skips the dialog. New instances overlap; arrange afterwards. The reply has object and instances.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"count": {
|
|
"description": "The total number of instances, up to 1000, in place of the dialog.",
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_set_instances",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"set_instance_count"
|
|
],
|
|
"read_only": false,
|
|
"title": "Set Number of Instances"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Assemble two or more selected objects into one object of parts named Assembly. They are removed and it is added last, so object indices change; the reply has its index (object) and name.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_assemble",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Assemble"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Make each instance of the selected object a separate object (select_objects {objects: [n]}); with some of its instances selected, only those. New objects are added last; the reply lists the objects the instances are in now (objects).",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_instances_to_objects",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Set as Individual Objects"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Order the current plate's objects by name, which sets the object list and print order, as the plate menu's Order By does. Choosing the order they already have reverses it. Object indices change; the reply lists the new order (order: [{object, name, plate}]) and descending.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"all": {
|
|
"description": "Order the objects of every plate. Default false: the current plate's.",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_order_by_name",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Order by Name"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Order the current plate's objects by filament, which sets the object list and print order, as the plate menu's Order By does. Choosing the order they already have reverses it. Object indices change; the reply lists the new order (order: [{object, name, plate}]) and descending.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"all": {
|
|
"description": "Order the objects of every plate. Default false: the current plate's.",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_order_by_filament",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Order by Filament"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Order the current plate's objects by height, which sets the object list and print order, as the plate menu's Order By does. Choosing the order they already have reverses it. Object indices change; the reply lists the new order (order: [{object, name, plate}]) and descending.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"all": {
|
|
"description": "Order the objects of every plate. Default false: the current plate's.",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_order_by_height",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Order by Height"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Order the current plate's objects by size (bounding box volume), which sets the object list and print order, as the plate menu's Order By does. Choosing the order they already have reverses it. Object indices change; the reply lists the new order (order: [{object, name, plate}]) and descending.",
|
|
"destructive": false,
|
|
"group": "Object",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"all": {
|
|
"description": "Order the objects of every plate. Default false: the current plate's.",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "obj_order_by_size",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Order by Size"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a cube object to the current plate; fails while an object is selected. With a size, skips the size dialog.",
|
|
"destructive": false,
|
|
"group": "Add Primitive",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"size": {
|
|
"description": "The size, [X, Y, Z] in mm, each above 0, in place of the size dialog.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "add_primitive_cube",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Cube"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a cylinder object to the current plate; fails while an object is selected. With a size, skips the size dialog. The shape may then be turned toward the part-cooling fan, so the size is along its own axes before that turn.",
|
|
"destructive": false,
|
|
"group": "Add Primitive",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"size": {
|
|
"description": "The size, [diameter, height] in mm, each above 0, in place of the size dialog.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "add_primitive_cylinder",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Cylinder"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a sphere object to the current plate; fails while an object is selected. With a size, skips the size dialog.",
|
|
"destructive": false,
|
|
"group": "Add Primitive",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"size": {
|
|
"description": "The size, [diameter] in mm, each above 0, in place of the size dialog.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "add_primitive_sphere",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sphere"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a cone object to the current plate; fails while an object is selected. With a size, skips the size dialog. The shape may then be turned toward the part-cooling fan, so the size is along its own axes before that turn.",
|
|
"destructive": false,
|
|
"group": "Add Primitive",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"size": {
|
|
"description": "The size, [base diameter, height] in mm, each above 0, in place of the size dialog.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "add_primitive_cone",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Cone"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a disc object to the current plate; fails while an object is selected. With a size, skips the size dialog. The shape may then be turned toward the part-cooling fan, so the size is along its own axes before that turn.",
|
|
"destructive": false,
|
|
"group": "Add Primitive",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"size": {
|
|
"description": "The size, [diameter, height] in mm, each above 0, in place of the size dialog.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "add_primitive_disc",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Disc"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a torus object to the current plate; fails while an object is selected. With a size, skips the size dialog. The shape may then be turned toward the part-cooling fan, so the size is along its own axes before that turn.",
|
|
"destructive": false,
|
|
"group": "Add Primitive",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"size": {
|
|
"description": "The size, [inner diameter, tube diameter] in mm, each above 0, in place of the size dialog.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "add_primitive_torus",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Torus"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a Text object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Primitive",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_primitive_text",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Text"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add an SVG as a new object, or as a part of the selected object. With a path, uses that file without a dialog; the part is created in the background (wait for idle), and the SVG gizmo opens on it.",
|
|
"destructive": false,
|
|
"group": "Add Primitive",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"description": "Absolute path of an .svg file.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "add_primitive_svg",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "SVG"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a Orca Cube object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Handy models",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_handy_orca_cube",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Orca Cube"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a OrcaSliced Combo object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Handy models",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_handy_orcasliced_combo",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "OrcaSliced Combo"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a Orca Badge object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Handy models",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_handy_orca_badge",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Orca Badge"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a Orca Tolerance Test object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Handy models",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_handy_orca_tolerance_test",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Orca Tolerance Test"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a 3DBenchy object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Handy models",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_handy_3dbenchy",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "3DBenchy"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a Cali Cat object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Handy models",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_handy_cali_cat",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Cali Cat"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a Autodesk FDM Test object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Handy models",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_handy_autodesk_fdm_test",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Autodesk FDM Test"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a Voron Cube object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Handy models",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_handy_voron_cube",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Voron Cube"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a Stanford Bunny object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Handy models",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_handy_stanford_bunny",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Stanford Bunny"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a Orca String Hell object to the current plate.",
|
|
"destructive": false,
|
|
"group": "Add Handy models",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "add_handy_orca_string_hell",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Orca String Hell"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a plate.",
|
|
"destructive": false,
|
|
"group": "Plate",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "plate_add",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Add Plate"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Duplicate the current plate.",
|
|
"destructive": false,
|
|
"group": "Plate",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "plate_duplicate",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Duplicate Plate"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete the current plate.",
|
|
"destructive": false,
|
|
"group": "Plate",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "plate_delete",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Delete Plate"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Rename the current plate (opens a dialog).",
|
|
"destructive": false,
|
|
"group": "Plate",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "plate_rename",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Rename Plate"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Lock or unlock the current plate.",
|
|
"destructive": false,
|
|
"group": "Plate",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "plate_toggle_lock",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"set_plate_locked"
|
|
],
|
|
"read_only": false,
|
|
"title": "Toggle Plate Lock"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Make a plate the current one; an index the project lacks is an error.",
|
|
"destructive": false,
|
|
"group": "Plate",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"plate": {
|
|
"description": "The plate's 0-based index. Default 0.",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "plate_goto",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"select_plate"
|
|
],
|
|
"read_only": false,
|
|
"title": "Go to Plate"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Synchronize the filament list from the connected printer's AMS.",
|
|
"destructive": false,
|
|
"group": "Printer",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sync_ams",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Synchronize Filament List from AMS"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a filament slot, as the + button above the filament list does; the message names the new slot. It takes the next colour and the last slot's preset (change them with select_preset filament_slot and set_settings scope project filament_colour). It goes after the physical slots: mixed filaments move up by one, and objects on them follow.",
|
|
"destructive": false,
|
|
"group": "Filament",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "filament_add",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Add Filament Slot"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete a filament slot, as its Delete menu item does; objects on it move to another slot. A mixed filament (project scope filament_is_mixed) is refused.",
|
|
"destructive": false,
|
|
"group": "Filament",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"slot": {
|
|
"description": "The 1-based filament slot. Default: the last physical slot, as the - button.",
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "filament_delete",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Delete Filament Slot"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the preset bundle manager.",
|
|
"destructive": false,
|
|
"group": "Presets",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "preset_bundle",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Open Preset Bundle"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Synchronize user presets with the cloud account.",
|
|
"destructive": false,
|
|
"group": "Presets",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sync_presets",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sync Presets"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Import models (3MF/STL/STEP/SVG/OBJ/AMF). With a path, adds that file's geometry without a dialog, as one undo step; a project file's settings are not loaded (load_project opens a project).",
|
|
"destructive": false,
|
|
"group": "Import",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"description": "Absolute path of a model file.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "import_file",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"import_models"
|
|
],
|
|
"read_only": false,
|
|
"title": "Import 3MF/STL/STEP/SVG/OBJ/AMF"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Import models from a ZIP archive (opens a file dialog).",
|
|
"destructive": false,
|
|
"group": "Import",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "import_zip_archive",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Import ZIP Archive"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Import presets. With a path, imports a preset .json, a .zip of them or an .orca_printer, .orca_filament or .orca_bundle without a dialog, and the message names the presets imported, replaced and kept; a .gcode loads the settings it was sliced with.",
|
|
"destructive": false,
|
|
"group": "Import",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"on_conflict": {
|
|
"description": "What happens to a preset that exists already. Default skip.",
|
|
"enum": [
|
|
"skip",
|
|
"overwrite"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "Absolute path of a preset .json, a .zip of them, an .orca_printer, .orca_filament or .orca_bundle, or a .gcode.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "import_configs",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [
|
|
"import_presets"
|
|
],
|
|
"read_only": false,
|
|
"title": "Import Configs"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Export each object as its own STL. With a directory, writes there without a dialog.",
|
|
"destructive": false,
|
|
"group": "Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"description": "Absolute path of an existing directory to write into.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "export_stl_multi",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Export All Objects as STLs"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Export all objects as one Draco (.drc) file.",
|
|
"destructive": false,
|
|
"group": "Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "export_drc_single",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Export All Objects as DRC (one file)"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Export each object as its own Draco (.drc) file.",
|
|
"destructive": false,
|
|
"group": "Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "export_drc_multi",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Export All Objects as DRCs"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Export the sliced toolpaths as an OBJ.",
|
|
"destructive": false,
|
|
"group": "Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "export_toolpaths_obj",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Export Toolpaths as OBJ"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Export presets as a bundle or ZIP archives. Opens a dialog: click the label of the kind to export, check its rows (each named after a printer preset or a filament), press OK, then answer the result message. With a directory, OK writes there instead of asking for a folder.",
|
|
"destructive": false,
|
|
"group": "Export",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"description": "Absolute path of an existing directory to write into.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "export_config",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Export Preset Bundle"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Show the keyboard shortcuts dialog.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "help_keyboard_shortcuts",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Keyboard Shortcuts"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the setup wizard.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "help_setup_wizard",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Setup Wizard"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the configuration folder in the file manager.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "help_open_config_folder",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Show Configuration Folder"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Migrate legacy user filament presets.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "help_migrate_filament_presets",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Migrate Filament Presets"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the troubleshooting center.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "help_troubleshoot",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Troubleshoot Center"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the network test dialog.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "help_network_test",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Open Network Test"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Benchmark rendering of the current 3D scene.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "help_benchmark_3d_scene",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Benchmark 3D Scene"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Show a tip of the day.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "help_tip_of_the_day",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Show Tip of the Day"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Check for a newer OrcaSlicer.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "help_check_updates",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Check for Updates"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Show the About dialog.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "help_about",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "About OrcaSlicer"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the OrcaSlicer wiki in the browser.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "open_wiki",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Open Wiki"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the OrcaSlicer YouTube channel in the browser.",
|
|
"destructive": false,
|
|
"group": "Help",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "open_youtube",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Open YouTube Channel"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the plugins dialog.",
|
|
"destructive": false,
|
|
"group": "Plugins",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "open_plugins",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Open Plugins"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Reload plugins.",
|
|
"destructive": false,
|
|
"group": "Plugins",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "refresh_plugins",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Refresh Plugins"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open the plugin hub to install a plugin.",
|
|
"destructive": false,
|
|
"group": "Plugins",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "install_plugin",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Install Plugin"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Install a plugin from a .py or .whl file, as the Plugins dialog's Install local plugin does. With a path, installs that file without a dialog. Replacing a plugin installed already asks first (answer with answer_dialog); the message names the plugin installed, or why it was not.",
|
|
"destructive": false,
|
|
"group": "Plugins",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"description": "Absolute path of a .py or .whl plugin package.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "install_local_plugin",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Install Local Plugin"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Snapshot of OrcaSlicer. Call it first and whenever you are unsure what the app is doing. The app: version, platform and display backend, whether it is ready, the main window, the displays (each one's work area x, y, width and height, as set_window takes positions, its scale and whether it is primary), the MCP endpoint (mcp), python (available: Python runs in this build; scripts_unrestricted: a script's own file, network, process and thread access is not held to OrcaSlicer's folders, which only a person turns on, in Preferences > AI features > Python scripts or for one run with --unrestricted-scripts), design_tab (the Design tab is on, and call_tool runs its commands, search_tools' group Design) and, when they do not run, cad_note, how a person turns the CAD feature on. The project: current tab and mode, printer technology, name, path and unsaved changes, selected printer/process/filament presets, plates (count, current), object count, the selection (objects, the instances [[object, instance]] they are selected in and, when parts rather than whole instances are selected, parts [[object, part]], in the indices select_objects takes; wipe_tower when a prime tower is selected; canvas is the 3D view it belongs to), slicing state, the Preview's view type, time mode and layer range (1-based, with their Z), and the camera of the 3D view shown (camera: type, look_at, position, zoom, click_px_per_mm, elevation and azimuth, as set_view replies with it). What is going on: open modal dialogs, each with its title, buttons (enabled: false when disabled) and a message that reads it as shown: its text and its controls row by row, fields [value], choices [value ▾], checkboxes [x] / [ ] / [-], radio and selector options (*) / ( ), list rows \"- row | cells\", secrets [******], \" (disabled)\" after a disabled control; menus closed unseen (a menu a call opened that no reply listed), auto_answer_dialogs rules in force, notifications, print host uploads (state, progress, error), the open gizmo, running jobs and a running recording.",
|
|
"destructive": false,
|
|
"group": "core",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "get_app_state",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Get app state"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Block until a condition holds or timeout_s passes (max 50). for: \"ready\" (startup finished), \"idle\" (no dialog, no running job, nothing slicing or arranging, no gizmo working in the background; a run_script run counts only through the calls it makes), \"dialog\" / \"no_dialog\", or \"job\" with a job id an earlier call returned, whose result is then the reply. On timeout the reply is {satisfied: false}: call it again.",
|
|
"destructive": false,
|
|
"group": "core",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"for": {
|
|
"description": "What to wait for; default job when job is given, else idle.",
|
|
"enum": [
|
|
"ready",
|
|
"idle",
|
|
"dialog",
|
|
"no_dialog",
|
|
"job"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"job": {
|
|
"description": "Job id, for \"job\".",
|
|
"type": "string"
|
|
},
|
|
"timeout_s": {
|
|
"description": "Default 30.",
|
|
"maximum": 50,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "wait",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Wait for a condition"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "The last lines of OrcaSlicer's current log file, optionally only those at or above a level.",
|
|
"destructive": false,
|
|
"group": "core",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"level": {
|
|
"description": "Minimum level.",
|
|
"enum": [
|
|
"trace",
|
|
"debug",
|
|
"info",
|
|
"warning",
|
|
"error",
|
|
"fatal"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"lines": {
|
|
"description": "Default 200.",
|
|
"maximum": 2000,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "get_log",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Read the log"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Find what does something, in one search, or look up one command. With query: the commands that match, best first, each with its group, the first sentence of its description and listed, whether the tool list shows it; one that is not listed (a Speed Dial command, a Design tab command, or an operation a plugin offers, plugin.<plugin>.<name>) comes with its input schema, and its description when that says more, which nothing else shows. Beside them, the best few matches of each other catalog, with its total and how to use it: actions (the Speed Dial's plates, recent projects and plugin scripts and pages, for run_action), settings (get_settings / set_settings) and python (the orca API for run_script). With tool: that command's description and input schema, and its examples when it has some (the Design commands do). With neither: every command's name. group keeps the names and the command matches to one group; the other catalogs' matches stay as they are. call_tool runs any command, listed or not.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"group": {
|
|
"description": "Only the commands of this group, in any case: core (the session, dialogs and Python), api (project data by index and name; plugin operations too), ui (the GUI itself), Design (the Design tab's, with the CAD feature on), or a Speed Dial section such as Commands, Object or View. A group no command has is refused with the groups there are.",
|
|
"type": "string"
|
|
},
|
|
"limit": {
|
|
"description": "At most this many commands (default 5).",
|
|
"maximum": 200,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"query": {
|
|
"description": "A few words saying what you want to do or find, e.g. \"brim\" or \"mesh normals\".",
|
|
"type": "string"
|
|
},
|
|
"tool": {
|
|
"description": "A command's name: its description and schema.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "search_tools",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Find tools, actions, settings and APIs"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Call any command by name with its arguments: a tool, or one the tool list does not show, a Speed Dial command, a Design tab command or an operation a plugin offers (see search_tools). It runs and is recorded as that command's own call, with its guards and reply budget.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"args": {
|
|
"description": "Its arguments.",
|
|
"type": "object"
|
|
},
|
|
"tool": {
|
|
"description": "The command to call.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"tool"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "call_tool",
|
|
"listed": true,
|
|
"open_world": true,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Call a tool or plugin operation"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open model files (STL, 3MF, STEP, OBJ, AMF, SVG...), a project (.3mf) or G-code by absolute path, without a file dialog. Models are added to the current project. A .3mf opens as a project, replacing the current one, unless as is \"geometry\"; when the current project has unsaved changes that fails, changing nothing, unless discard_changes. Importing can open a dialog (STEP mesh options, for instance); the reply is then blocked_by_dialog.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"as": {
|
|
"description": "How to open .3mf files. Default auto (= project).",
|
|
"enum": [
|
|
"auto",
|
|
"geometry",
|
|
"project"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"discard_changes": {
|
|
"description": "Drop the project's unsaved changes rather than fail when a .3mf replaces it.",
|
|
"type": "boolean"
|
|
},
|
|
"paths": {
|
|
"description": "Absolute paths.",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"paths"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "open_files",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [
|
|
"open_project",
|
|
"import_models"
|
|
],
|
|
"read_only": false,
|
|
"title": "Open files"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Start a new, empty project. Called with no arguments, it asks as New Project does, about the unsaved changes if there are any: the reply is then blocked_by_dialog, and answer_dialog answers it. With arguments, or silent: true, it asks nothing: it fails, changing nothing, when the current project has unsaved changes, unless discard_changes. The presets' unsaved changes carry over to the new project unless preset_changes is \"discard\", as New Project's prompt offers. Reply: objects, names, plates; when presets had or have unsaved changes, discarded and modified list per preset the keys dropped and the keys still unsaved.",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"discard_changes": {
|
|
"description": "Drop the project's unsaved changes rather than fail; for the presets', see preset_changes.",
|
|
"type": "boolean"
|
|
},
|
|
"preset_changes": {
|
|
"description": "The presets' unsaved changes, not the project's: keep them for the new project (default) or drop them.",
|
|
"enum": [
|
|
"keep",
|
|
"discard"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the command without asking, with the defaults of what the call leaves out. A call with no arguments does what a person's pick does.",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "new_project",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [
|
|
"new_project"
|
|
],
|
|
"read_only": false,
|
|
"title": "New Project"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Generate a Calibration menu test as its dialog's OK does: a new project named after the test with the test model, and the process, filament and printer presets changed as the test needs (presets_changed). The test prints with filament slot 1, so the filament tab is pointed at slot 1's preset. Omitted parameters take the dialog's defaults (pressure advance's by the printer's extruder type); temperatures are clamped to 155-500 °C and rounded down to 5 °C. Fails, changing nothing, when the project has unsaved changes (pass discard_changes) or presets do (pass preset_changes). Reply: test, project, params (the values used, which the journal records), objects, names, plates, presets_changed, result_keys (where the measured value belongs), warnings, adjusted (vfa), and discarded and modified as new_project. Then slice and export. To save a measured value: new_project {discard_changes, preset_changes: \"discard\"}, set_settings the value, save_preset.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"accelerations": {
|
|
"description": "pressure_advance pattern: one test per acceleration and speed; default the process's.",
|
|
"items": {
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"auto_adjust": {
|
|
"description": "vfa: lower the layer height, else the end speed, to stay within the filament's maximum volumetric speed (default true).",
|
|
"type": "boolean"
|
|
},
|
|
"auto_scale": {
|
|
"description": "temperature, vfa: scale the model to the nozzle (default true).",
|
|
"type": "boolean"
|
|
},
|
|
"damping": {
|
|
"description": "input_shaping_freq: the damping ratio printed with.",
|
|
"type": "number"
|
|
},
|
|
"discard_changes": {
|
|
"description": "Drop the project's unsaved changes rather than fail; for the presets', see preset_changes.",
|
|
"type": "boolean"
|
|
},
|
|
"end": {
|
|
"description": "End of the swept value.",
|
|
"type": "number"
|
|
},
|
|
"end_y": {
|
|
"description": "input_shaping_freq: end of the Y range; default the X one.",
|
|
"type": "number"
|
|
},
|
|
"freq_x": {
|
|
"description": "input_shaping_damp: the X frequency, Hz.",
|
|
"type": "number"
|
|
},
|
|
"freq_y": {
|
|
"description": "input_shaping_damp: the Y frequency, Hz; default freq_x.",
|
|
"type": "number"
|
|
},
|
|
"method": {
|
|
"description": "pressure_advance: tower (default), line or pattern; flow_ratio: pass1, pass2, yolo (default) or yolo_perfectionist.",
|
|
"enum": [
|
|
"tower",
|
|
"line",
|
|
"pattern",
|
|
"pass1",
|
|
"pass2",
|
|
"yolo",
|
|
"yolo_perfectionist"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"preset_changes": {
|
|
"description": "The presets' unsaved changes, not the project's: keep them for the test or drop them first. Required when presets are modified.",
|
|
"enum": [
|
|
"keep",
|
|
"discard"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"print_numbers": {
|
|
"description": "pressure_advance line: print the values (default true).",
|
|
"type": "boolean"
|
|
},
|
|
"shaper_type": {
|
|
"description": "Input shaping: an input_shaping_type the printer's firmware offers; default the first.",
|
|
"type": "string"
|
|
},
|
|
"speeds": {
|
|
"description": "pressure_advance pattern: default an optimal speed.",
|
|
"items": {
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"start": {
|
|
"description": "Start of the swept value: °C, mm³/s, PA, mm, mm/s (vfa), Hz (input_shaping_freq), damping (input_shaping_damp), junction deviation mm or jerk mm/s (cornering).",
|
|
"type": "number"
|
|
},
|
|
"start_y": {
|
|
"description": "input_shaping_freq: start of the Y range; default the X one.",
|
|
"type": "number"
|
|
},
|
|
"step": {
|
|
"description": "Step: max_volumetric, pressure_advance, retraction, vfa.",
|
|
"type": "number"
|
|
},
|
|
"test": {
|
|
"description": "The test, named as the calib_* actions.",
|
|
"enum": [
|
|
"temperature",
|
|
"max_volumetric",
|
|
"pressure_advance",
|
|
"flow_ratio",
|
|
"retraction",
|
|
"vfa",
|
|
"cornering",
|
|
"input_shaping_freq",
|
|
"input_shaping_damp"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"test_model": {
|
|
"description": "Input shaping: ringing_tower (default) or fast_tower; cornering: also scv_v2; temperature on belt printers: standard (default) or overhang.",
|
|
"enum": [
|
|
"ringing_tower",
|
|
"fast_tower",
|
|
"scv_v2",
|
|
"standard",
|
|
"overhang"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"top_surface_pattern": {
|
|
"description": "flow_ratio (default archimedeanchords).",
|
|
"enum": [
|
|
"archimedeanchords",
|
|
"monotonic"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"test"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "generate_calibration_test",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Generate a calibration test"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Save the project. Called with no arguments, it saves as Save Project does: to the project's file, or, when it has none, through a file dialog (blocked_by_dialog; a native picker needs auto_answer_dialogs registered first). With path, it saves a .3mf there without a dialog, and the file becomes the project's.",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"overwrite": {
|
|
"description": "Replace an existing file.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute .3mf path.",
|
|
"type": "string"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the command without asking, with the defaults of what the call leaves out. A call with no arguments does what a person's pick does.",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"path"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "save_project",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [
|
|
"save_project_as"
|
|
],
|
|
"read_only": false,
|
|
"title": "Save Project"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Write the project to a file without a dialog. gcode: the plate's G-code (slice first; it is written in the background, and the call returns once it is). sliced_3mf: the sliced plate, or all plates, as .gcode.3mf. 3mf: the model without slicing data. stl: all objects as one STL. Without format, the path's extension (.gcode, .gcode.3mf, .3mf, .stl) says which.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"format": {
|
|
"description": "What to write; default from the path's extension.",
|
|
"enum": [
|
|
"gcode",
|
|
"sliced_3mf",
|
|
"3mf",
|
|
"stl"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"overwrite": {
|
|
"description": "Replace an existing file.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute output path.",
|
|
"type": "string"
|
|
},
|
|
"plates": {
|
|
"description": "\"current\" (default), a plate index, which is selected first, or \"all\" (sliced_3mf only).",
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "export",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [
|
|
"start_gcode_export",
|
|
"export_sliced_3mf",
|
|
"export_model_3mf",
|
|
"export_stl"
|
|
],
|
|
"read_only": false,
|
|
"title": "Export"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Printer, process or filament presets with flags: system or user, selected (and modified), compatible with the selected printer, and for filaments the slots using them. Only compatible, visible presets unless asked: a fresh install hides most system filaments and printers (visible: false), and select_preset takes those too.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"include_hidden": {
|
|
"description": "Also list hidden presets.",
|
|
"type": "boolean"
|
|
},
|
|
"include_incompatible": {
|
|
"description": "Also list presets incompatible with the printer.",
|
|
"type": "boolean"
|
|
},
|
|
"limit": {
|
|
"description": "Default 100.",
|
|
"maximum": 500,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"query": {
|
|
"description": "Case-insensitive part of the name.",
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"description": "Preset category.",
|
|
"enum": [
|
|
"printer",
|
|
"process",
|
|
"filament"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "list_presets",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "List presets"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Select a printer, process or filament preset by the name its selector shows (or its internal name), as a person would. A hidden one (list_presets include_hidden) is shown in the selectors first, until the app restarts. With unsaved changes the Transfer-or-discard prompt opens (blocked_by_dialog) unless preset_changes answers it. A filament is assigned to filament_slot (1-based, default 1). Reply: selected, shown (a hidden preset it showed); when presets had or have unsaved changes, discarded and modified list per preset the keys dropped and the keys still unsaved.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"filament_slot": {
|
|
"description": "Filament slot, 1-based.",
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"description": "Preset name as list_presets shows it.",
|
|
"type": "string"
|
|
},
|
|
"preset_changes": {
|
|
"description": "Unsaved changes of the presets the switch replaces: move them to the new preset or drop them, as the prompt's buttons do. Omitted: the prompt opens.",
|
|
"enum": [
|
|
"transfer",
|
|
"discard"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"description": "Preset category.",
|
|
"enum": [
|
|
"printer",
|
|
"process",
|
|
"filament"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "select_preset",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [
|
|
"resolve_preset",
|
|
"select_preset",
|
|
"assign_filament_preset"
|
|
],
|
|
"read_only": false,
|
|
"title": "Select a preset"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Save the printer, process or filament preset being edited, with its unsaved changes, as a preset called name, which is then selected: what the tab's Save button does through its dialog. A filament is filament_slot's (default 1), and every slot using the old preset takes the new one. Replacing another existing preset needs overwrite (pass it in replays and scripts meant to be rerun). Reply: saved, user, project, inherits, filament_slots. A temperature warning or an unsaved-changes prompt makes it blocked_by_dialog. To keep only some edits, set_settings {reset_all: true, values} first.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"detach": {
|
|
"description": "Copy inherited values and drop the parent (Developer mode).",
|
|
"type": "boolean"
|
|
},
|
|
"filament_slot": {
|
|
"description": "Filament slot, 1-based.",
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"inside_project": {
|
|
"description": "Keep it inside the project, not as a user preset. Default: where the edited preset is.",
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"description": "Name to save under.",
|
|
"type": "string"
|
|
},
|
|
"overwrite": {
|
|
"description": "Replace another preset of that name.",
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"description": "Preset category.",
|
|
"enum": [
|
|
"printer",
|
|
"process",
|
|
"filament"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "save_preset",
|
|
"listed": true,
|
|
"open_world": true,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Save a preset"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete a user preset or one inside the project, its file and its cloud copy, as the tab's Delete does, without asking. A selected preset is replaced as the tab does (its parent or the next preset). Another filament is deleted without changing the selection, and slots using it take the selected one; another process is selected, deleted and the selection restored; a printer must be selected first. Refused: system presets, presets others inherit from, another preset while the edited one of its type has unsaved changes. Deleting a selected printer or process can ask about other presets' unsaved changes (blocked_by_dialog). Reply: deleted, selected, filaments (per slot), attached, and discarded/modified as select_preset's.",
|
|
"destructive": true,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"delete_attached": {
|
|
"description": "A custom printer: also delete the process and filament presets made for it alone, which the GUI deletes with it.",
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"description": "Preset name as list_presets shows it.",
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"description": "Preset category.",
|
|
"enum": [
|
|
"printer",
|
|
"process",
|
|
"filament"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "delete_preset",
|
|
"listed": true,
|
|
"open_world": true,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Delete a preset"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Read settings: each item has its value, as OrcaSlicer writes it, and meta: label, description (what the setting does, when to change it), where (its settings page and group), type, unit, range, allowed values and mode. Choose them by keys; by query, a few words matched in keys, labels and descriptions, best matches first; by where, a page or group (an unknown one lists them all); or by none of these, for the whole scope, paged and, in a preset scope, without meta. Keys the scope lacks are listed in unknown_keys, and scope_of gives the scope of those another scope has.\n- No scope: keys and query look through the process, filament and printer settings, and each item names its scope, the one set_settings takes; anything else reads the process.\n- process, filament, printer: the preset being edited, or with preset a saved one; compare lists only the keys that differ from another preset (value and other). A per-variant value lists in meta its variants (what each entry is for) and active (the entry each extruder prints with).\n- object, part: the overrides that object or part carries, each with effective (the value it prints with) and source (part, object, process or default); an object's item lists in parts the parts and modifiers that override the key inside their own volume.\n- project: the plate type, slot colours, flushing volumes, purge mode, prime tower position per plate, mixed slots and, with several extruders, the filament grouping; meta.offered lists the choices this printer has.\n- plate: a plate's curr_bed_type, print_sequence, spiral_mode, first_layer_print_sequence, other_layers_print_sequence, name and locked, each with value (the plate's own, null where it follows the global setting or Auto) and effective.\n- preferences: the named keys of the app configuration (the Preferences dialog's settings, keys as its controls are named), as stored; it lists none unasked.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"compare": {
|
|
"description": "Preset scopes: a preset name, \":saved\" (the unsaved changes) or \":parent\" (the preset it inherits from).",
|
|
"type": "string"
|
|
},
|
|
"filament_slot": {
|
|
"description": "Filament slot, 1-based.",
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"include_meta": {
|
|
"description": "Include labels, types and ranges. Default true, false for a preset scope's whole listing and with compare.",
|
|
"type": "boolean"
|
|
},
|
|
"keys": {
|
|
"description": "Option keys, e.g. [\"layer_height\", \"wall_loops\"].",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"limit": {
|
|
"description": "Default 100, or 20 with query.",
|
|
"maximum": 500,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"object": {
|
|
"description": "Object index (object/part scope).",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"part": {
|
|
"description": "Part index (part scope).",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plate": {
|
|
"description": "Plate index (plate scope; default: the current plate).",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"preset": {
|
|
"description": "Preset scopes: read this saved preset (a name from list_presets) instead of the one being edited.",
|
|
"type": "string"
|
|
},
|
|
"query": {
|
|
"description": "A few distinctive words, e.g. \"stringing\" or \"ooze travel\"; the best 20 matches unless limit says otherwise.",
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"description": "Which settings: the process, filament or printer preset being edited, an object's / part's own overrides, the project's own settings, a plate's, or the app's preferences (read only). Without it, keys and query look through the process, filament and printer settings; anything else reads the process.",
|
|
"enum": [
|
|
"process",
|
|
"filament",
|
|
"printer",
|
|
"object",
|
|
"part",
|
|
"project",
|
|
"plate",
|
|
"preferences"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"where": {
|
|
"description": "A settings page, or \"Page > Group\" as meta.where gives it, e.g. \"Strength > Walls\".",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "get_settings",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Read settings"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Change settings of one scope (default the process) as typing them into its settings tab would. Values are strings in OrcaSlicer's format (\"15%\", \"0.2\", \"1,2\") or JSON numbers, booleans and arrays (a point as [x, y]). All are parsed strictly first and applied together, so nothing changes if one is invalid, and a key of another scope is refused with that scope named. Reply: applied, and changed, every setting the call changed, including those the app adjusted in turn. One undo step. Spiral vase and a few others confirm their adjustments in a dialog (blocked_by_dialog).\n- process, filament, printer: null takes a key back to its saved value, or with reset_to parent to the parent's; reset_all first discards every unsaved change, as the tab's undo button does (reply: reverted). A per-variant value (get_settings meta.variants) takes one value for the entries in use (meta.active), {index, value} for one entry, or an array of all.\n- object, part: overrides of the keys the object list offers there; null removes one. extruder is the object's or part's filament (1-based; 0 or null for Default), set as the Change Filament menu does.\n- project, as the sidebar's controls write them: curr_bed_type, filament_colour (#RRGGBB per slot), flush_multiplier, flush_volumes_matrix, prime_volume_mode, and wipe_tower_x/y (mm from the plate's origin, one per plate). flush_volumes_matrix is per nozzle, slots x slots from row to column, in config order over every slot, before the multiplier; mixed slots' entries are left as they are, and a colour change can recalculate it, so set it last.\n- plate, which it selects and writes as the Plate Settings dialog's OK does: curr_bed_type, print_sequence (\"by layer\", \"by object\"), spiral_mode (true asks for confirmation), first_layer_print_sequence (every slot once, e.g. [2, 1]), other_layers_print_sequence ([{from: layer >= 2, to, order}], to omitted for the last layer), name and locked; null returns a value to the global setting or Auto.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"filament_slot": {
|
|
"description": "Filament slot, 1-based.",
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"object": {
|
|
"description": "Object index (object/part scope).",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"object_id": {
|
|
"description": "The id list_objects reports for this object: the call is refused when the index names another one now.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"part": {
|
|
"description": "Part index (part scope).",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"part_id": {
|
|
"description": "The id list_objects reports for this part: the call is refused when the index names another one now.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plate": {
|
|
"description": "Plate index (plate scope; default: the current plate).",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"reset_all": {
|
|
"description": "Preset scopes: discard the unsaved changes before applying values.",
|
|
"type": "boolean"
|
|
},
|
|
"reset_to": {
|
|
"description": "Preset scopes: what a null value takes a key back to: the saved preset (default) or the preset it inherits from.",
|
|
"enum": [
|
|
"saved",
|
|
"parent"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"description": "Which settings: the process, filament or printer preset being edited, an object's / part's own overrides, the project's own settings, a plate's, or the app's preferences (read only). Default: the process.",
|
|
"enum": [
|
|
"process",
|
|
"filament",
|
|
"printer",
|
|
"object",
|
|
"part",
|
|
"project",
|
|
"plate",
|
|
"preferences"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"values": {
|
|
"description": "{key: value}, or {key: {index, value}} for one entry",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "set_settings",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [
|
|
"set_plate_locked"
|
|
],
|
|
"read_only": false,
|
|
"title": "Change settings"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Plates with name, locked, current, objects (how many are on it; list_objects lists them), and the settings they print with: curr_bed_type, print_sequence, spiral_mode, first_layer_print_sequence and other_layers_print_sequence (null: Auto); overrides lists those the plate sets itself (set_settings scope plate). Also sliced (an up-to-date slice), wipe_tower [x, y] and layer_gcode: the plate's pauses, custom G-code, templates and filament changes, each {z, layer, type, filament, color, gcode}; layer is the Preview slider's number, given while the plate's slice is up to date.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"limit": {
|
|
"description": "Default 100.",
|
|
"maximum": 500,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "list_plates",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "List plates"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "The project as the Objects panel lists it. plates: each {index, name, objects}, with the objects that have an instance on it; outside: the objects with an instance on no plate. An object with instances on two plates is listed under both, each time with that plate's instances. An object has its filament, auto_drop, bounding box (instance 0), brim ear count and the settings it overrides; its instances (offset, rotation in degrees, scale, mirrored, bbox); its parts, one or more: parts, negative parts, modifiers, support blockers and enforcers and precise seams (type, with subtype for a precise seam; filament: a part's own or its object's, a modifier's only when it sets one; position, bbox and scaled_volume in mm3 on the bed, measured on instance 0; rotation_deg and scale in the object's frame; mirrored; triangle count; mesh_volume, the unscaled mesh's mm3; painted facets: supports and seam enforcers/blockers, fuzzy_skin, mmu per filament, texture per layer; a text part's text and font, an SVG part's file); its height range modifiers when it has any (layer_config_ranges: [{min_z, max_z, values}], as set_height_ranges takes them) and its variable layer height profile when it has one (layer_height_profile: {points, min_height, max_height}). A bbox is {min, max, size} in mm of model parts only, so unlike the panel's Size it leaves out modifiers. An object's index numbers it in the project and a part's in its object, whatever the plate: they are what select_objects, transform, mouse_gesture targets and the object/part settings scopes take. Each object and part also has an id, which stays with it when a delete, split or assemble shifts the indices: pass it as object_id / part_id to transform, add_part, set_settings, set_height_ranges and set_variable_layer_height (object_ids, part_ids and instance_object_ids to select_objects), and a call whose index names another one now is refused instead of acting on it. limit and offset page the objects and total counts them, each once.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"limit": {
|
|
"description": "Objects, default 200.",
|
|
"maximum": 500,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plate": {
|
|
"description": "List this plate alone, without outside.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"screen": {
|
|
"description": "Add each instance's rectangle in the shown 3D view, logical pixels [x, y, w, h].",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "list_objects",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "List objects"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Select objects, instances or parts in the 3D view (the assemble view while it is shown, else Prepare, switching to it), as clicking them would. Give objects, instances ([[object, instance], ...]) or parts ([[object, part], ...]); add keeps the current selection; all / none select everything or nothing. The reply is the selection as get_app_state.selection gives it.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"add": {
|
|
"description": "Add to the selection instead of replacing it.",
|
|
"type": "boolean"
|
|
},
|
|
"all": {
|
|
"description": "Select all objects.",
|
|
"type": "boolean"
|
|
},
|
|
"instance_object_ids": {
|
|
"description": "The ids list_objects reports for the objects of instances, one per entry: refused when a pair names another object now.",
|
|
"items": {
|
|
"type": "integer"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"instances": {
|
|
"description": "[[object, instance], ...]",
|
|
"items": {
|
|
"type": "array"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"none": {
|
|
"description": "Clear the selection.",
|
|
"type": "boolean"
|
|
},
|
|
"object_ids": {
|
|
"description": "The ids list_objects reports for objects, one per entry: refused when an index names another object now.",
|
|
"items": {
|
|
"type": "integer"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"objects": {
|
|
"description": "Object indices.",
|
|
"items": {
|
|
"type": "integer"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"part_ids": {
|
|
"description": "The ids list_objects reports for the entries of parts, one per entry: refused when a pair names another part now.",
|
|
"items": {
|
|
"type": "integer"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"parts": {
|
|
"description": "[[object, part], ...]",
|
|
"items": {
|
|
"type": "array"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "select_objects",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Select objects"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Change one instance's placement, or one part's with part. translate is in mm, position where it goes (mm, as the Move panel shows it, whatever mode says), rotate in degrees about X/Y/Z, scale a factor (one number or [x, y, z]), size [x, y, z] mm along the object's or part's own axes, plate moves the instance onto that plate at the same place. mode \"relative\" (default) adds to the current placement, \"absolute\" sets it. An instance is dropped back onto the bed unless drop_to_bed is false. A part moves as the Object manipulation panel moves it: translate and rotate along the bed's axes, measured on instance 0, scale and size along its own axes; every instance shows the change, and Auto Drop may lower the object afterwards. One undo step. Reply: the instance's offset, scale and plate, or the part's size along its own axes and its list_objects entry (part_info).",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"drop_to_bed": {
|
|
"description": "Default true; instances only.",
|
|
"type": "boolean"
|
|
},
|
|
"instance": {
|
|
"description": "Default 0.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"mode": {
|
|
"description": "Default relative.",
|
|
"enum": [
|
|
"relative",
|
|
"absolute"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"object": {
|
|
"description": "Object index (list_objects).",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"object_id": {
|
|
"description": "The id list_objects reports for this object: the call is refused when the index names another one now.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"part": {
|
|
"description": "Transform this part instead of the instance.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"part_id": {
|
|
"description": "The id list_objects reports for this part: the call is refused when the index names another one now.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plate": {
|
|
"description": "Move the instance to this plate.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"position": {
|
|
"description": "[x, y, z] mm: the position to move to. Not with translate.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"rotate": {
|
|
"description": "[x, y, z] degrees; relative only for a part",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"scale": {
|
|
"description": "Factor or [x, y, z] factors.",
|
|
"type": [
|
|
"number",
|
|
"array"
|
|
]
|
|
},
|
|
"size": {
|
|
"description": "[x, y, z] mm, null keeps an axis; one number and two nulls keep the proportions. Not with scale.",
|
|
"items": {
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
},
|
|
"type": "array"
|
|
},
|
|
"translate": {
|
|
"description": "[x, y, z] mm",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"object"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "transform",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Move, rotate or scale an instance or a part"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a part, negative part, modifier, support blocker or enforcer, or precise seam to an object, as its context menu's Add items do: a primitive shape at a size, or a model file as Load... adds it. The part lands where the menu puts it (a shape beside the object, a file at its coordinates relative to the object's first part) unless position is given. Like the menu, adding a shape folds the instance's rotation and scale into the object's parts (the instance's scale then reads 1). Refused for an object with several instances: add parts first. A STEP file may ask for mesh options (blocked_by_dialog). The new part is selected; one undo step. Reply: its index, which is not always the last (parts are ordered by type), the object's part count and the part's list_objects entry (part_info).",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"object": {
|
|
"description": "Object index (list_objects).",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"object_id": {
|
|
"description": "The id list_objects reports for this object: the call is refused when the index names another one now.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"path": {
|
|
"description": "Instead of shape: absolute path of a model file (STL, OBJ, 3MF, STEP, ...).",
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"description": "[x, y, z] mm on the bed for the part's centre, on instance 0, as the Move panel shows it.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"shape": {
|
|
"description": "A primitive shape.",
|
|
"enum": [
|
|
"cube",
|
|
"cylinder",
|
|
"sphere",
|
|
"cone",
|
|
"disc",
|
|
"torus"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"description": "mm, the Primitive size dialog's fields: cube [x, y, z]; cylinder, cone, disc [diameter, height]; sphere [diameter]; torus [inner diameter, tube diameter]. Default: the built-in size.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"type": {
|
|
"description": "What the new part is.",
|
|
"enum": [
|
|
"part",
|
|
"negative",
|
|
"modifier",
|
|
"support_blocker",
|
|
"support_enforcer",
|
|
"precise_seam"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"object",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "add_part",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Add a part or modifier to an object"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Arrange the objects of every unlocked plate as the toolbar's Arrange does, or of one plate (plates: an index or \"current\") as its Arrange icon does. With fill, fill that object's plate with more of it instead, as Fill bed with instances (or copies, by fill_with) does. spacing, rotate, align_y and multi_material are the Arrange options panel's settings: the values given stay in the panel, so later arranges use them too. Waits for the arrangement (a longer one replies with a job). Reply: the settings in force, instances left off every plate, plates the all-plates arrange skipped and the job's notifications. An arrange may reorder objects, so list_objects again. One undo step.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"align_y": {
|
|
"description": "Align to Y axis (off while rotate is on).",
|
|
"type": "boolean"
|
|
},
|
|
"fill": {
|
|
"description": "Instead of arranging, fill this object's plate with more of it.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"fill_with": {
|
|
"description": "Default instances.",
|
|
"enum": [
|
|
"instances",
|
|
"copies"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"multi_material": {
|
|
"description": "Allow multiple materials on same plate.",
|
|
"type": "boolean"
|
|
},
|
|
"plates": {
|
|
"description": "\"all\" (default), \"current\" or a plate index.",
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
},
|
|
"rotate": {
|
|
"description": "Auto rotate for arrangement.",
|
|
"type": "boolean"
|
|
},
|
|
"spacing": {
|
|
"description": "mm between objects; 0 means auto.",
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
"timeout_s": {
|
|
"description": "Cancel it after this long (default 300).",
|
|
"maximum": 1800,
|
|
"minimum": 10,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "arrange",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [
|
|
"start_arrange"
|
|
],
|
|
"read_only": false,
|
|
"title": "Arrange objects or fill the bed"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Slice the current plate, all plates, or one plate by index, the way the toolbar's Slice button does, and wait for the result (or reply with a job id when it takes longer than the reply budget). Each requested plate reports ok, error, cancelled, empty or skipped; the whole operation is superseded when someone else started a slice or edited the project while it ran. An ok plate has time_s (silent_time_s when the printer estimates it), filament_m and filament_g including flush, filament_cost, layers, max_z, filament_changes, and filaments[i] for slot i+1 with m, g and the grams of model_g, support_g, flush_g and tower_g. Other changes are refused until it finishes; cancel_job stops it.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"plates": {
|
|
"description": "\"current\" (default), \"all\", or a plate index.",
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
},
|
|
"timeout_s": {
|
|
"description": "Give up after this long (default 1800).",
|
|
"maximum": 7200,
|
|
"minimum": 10,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "slice",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [
|
|
"start_slice"
|
|
],
|
|
"read_only": false,
|
|
"title": "Slice"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Stop the running operation: a slice or G-code export, as the slicing progress's cancel button does, or a background job an MCP call started (an arrange, orient or fill bed). Its job then reports cancelled; a background job keeps other changes out until it has really stopped. With job, only that job is stopped: the running operation, a run_script run or an encode_recording. Allowed while an operation holds the project.",
|
|
"destructive": false,
|
|
"group": "core",
|
|
"guard": "recover",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"job": {
|
|
"description": "The operation's job to cancel, e.g. \"j12\".",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "cancel_job",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Cancel a job"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Replace an object's height range modifiers (Height Range Modifier in the object list): Z ranges in mm, each printed with its own layer_height, filament and process settings, starting from the object's layer height and filament. Ranges may touch but not overlap; [] removes them all. One undo step; the object is selected. Reply: the object's height and its ranges as list_objects shows them, and warnings, such as a variable layer height profile deciding the layer heights instead.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"object": {
|
|
"description": "Object index (list_objects).",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"object_id": {
|
|
"description": "The id list_objects reports for this object: the call is refused when the index names another one now.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"ranges": {
|
|
"description": "The object's ranges afterwards, in any order.",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"max_z": {
|
|
"description": "Top, mm above the bed.",
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
"min_z": {
|
|
"description": "Bottom, mm above the bed.",
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
"values": {
|
|
"description": "{key: value} as set_settings takes them: layer_height, extruder (0 = the object's filament) and per-region process settings such as sparse_infill_density or wall_loops.",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"min_z",
|
|
"max_z"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"object",
|
|
"ranges"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "set_height_ranges",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Set height range modifiers"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Run the Variable layer height panel's Adaptive, Smooth or Reset on an object, without opening the panel: adaptive computes layer heights from the object's shape (inside a height range, the range's layer_height), smooth smooths its profile (or the one its height ranges give), reset goes back to its layer height and ranges. One undo step; the object is selected. Reply: the object's height, its layer_height_profile {points, min_height, max_height} as list_objects shows it (absent after reset), and warnings.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"action": {
|
|
"description": "The panel's button.",
|
|
"enum": [
|
|
"adaptive",
|
|
"smooth",
|
|
"reset"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"keep_min": {
|
|
"description": "smooth: keep the minimum layer heights (default false).",
|
|
"type": "boolean"
|
|
},
|
|
"object": {
|
|
"description": "Object index (list_objects).",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"object_id": {
|
|
"description": "The id list_objects reports for this object: the call is refused when the index names another one now.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"quality": {
|
|
"description": "adaptive: 0 = quality .. 1 = speed (default 0.5, as the panel).",
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
"radius": {
|
|
"description": "smooth: default 5.",
|
|
"maximum": 10,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"object",
|
|
"action"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "set_variable_layer_height",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Set a variable layer height profile"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add or remove pauses, custom G-code, custom templates and filament changes at the start of a layer, as the Preview layer slider's menu does; they are saved per plate in the project. They go on the plate's sliced layers, so the plate needs an up-to-date slice, or must be the one the Preview still shows after an earlier edit; the call selects it and shows the Preview. Applies clear, then remove, then add, all checked first. One code per layer: a custom code or filament change where there is one replaces it. Not undoable, as in the slider. A change invalidates the plate's slice: slice again before exporting. Reply: the plate's codes as list_plates' layer_gcode lists them, each with z and layer.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"add": {
|
|
"description": "Codes to add, each with layer or z.",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"filament": {
|
|
"description": "change_filament: printed from this layer up.",
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"gcode": {
|
|
"description": "custom: the G-code.",
|
|
"type": "string"
|
|
},
|
|
"layer": {
|
|
"description": "1-based, as the Preview's layer slider numbers layers.",
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"description": "template runs the printer's template_custom_gcode.",
|
|
"enum": [
|
|
"pause",
|
|
"custom",
|
|
"template",
|
|
"change_filament"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"z": {
|
|
"description": "mm: the layer whose top is at or above it.",
|
|
"minimum": 0,
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"clear": {
|
|
"description": "Remove every code on the plate first.",
|
|
"type": "boolean"
|
|
},
|
|
"plate": {
|
|
"description": "Default: the current plate.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"remove": {
|
|
"description": "Codes to remove, by layer or z.",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"layer": {
|
|
"description": "1-based, as the Preview's layer slider numbers layers.",
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"z": {
|
|
"description": "mm: the layer whose top is at or above it.",
|
|
"minimum": 0,
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "set_custom_gcode_at_layer",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Set custom G-code at a layer"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Capture what OrcaSlicer shows and return it as an image, downscaled to max_dim on the long edge (default 1280), plus the full-size PNG written to save_path (or the session's output folder). target: \"main\" (the main window), \"canvas\" (the visible 3D view exactly as rendered: scene, toolpaths, toolbars, ImGui panels; on the Design tab its view), \"dialog\" (the topmost modal dialog), or a ref: a window's from list_windows (one that is not modal, say), or a widget's from list_widgets, cropped to that widget (a page element's ref captures its whole web view). The result says when parts may differ from the screen (approximate). Point the view first with set_view.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"include_image": {
|
|
"description": "Return the image itself (default true); false returns only the path.",
|
|
"type": "boolean"
|
|
},
|
|
"max_dim": {
|
|
"description": "Long edge of the returned image.",
|
|
"maximum": 2000,
|
|
"minimum": 256,
|
|
"type": "integer"
|
|
},
|
|
"overwrite": {
|
|
"description": "Replace an existing save_path.",
|
|
"type": "boolean"
|
|
},
|
|
"save_path": {
|
|
"description": "Absolute .png path for the full-size image.",
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"description": "main (default), canvas, dialog, or a widget's ref or locator from list_widgets.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "screenshot",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Take a screenshot"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "What the Preview shows for a sliced plate. summary: the slice reply's, plus prepare and travel time and travel distance. features: seconds, share of the print time and grams per feature type (the Line Type legend), and travel. layers: per layer (1-based, as set_view's layer) Z, height, seconds and grams, paged; layer_features adds each feature type's seconds. objects: grams per object instance, with its list_objects index when its name is unique. view, for the plate the Preview shows: view type, time mode, layer range, which legend rows are visible, and each view type's colour range for what the legend shows. Times are normal-mode estimates. A G-code file opened for viewing reads the same.",
|
|
"destructive": false,
|
|
"group": "api",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"include": {
|
|
"description": "Parts besides the summary; default [\"features\", \"view\"].",
|
|
"items": {
|
|
"enum": [
|
|
"features",
|
|
"layers",
|
|
"layer_features",
|
|
"objects",
|
|
"view"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"limit": {
|
|
"description": "Layers per page (default 100).",
|
|
"maximum": 1000,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plate": {
|
|
"description": "Plate index; default the current plate.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "get_slice_stats",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Get slice statistics"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Set up what the window shows, for screenshots and GUI work: the main tab, the 3D view (canvas: Prepare's, the preview or the assemble view, which has its own gizmos), the camera of the 3D view shown (a named direction, the default view, or fit to bed / objects / selection, then look_at, the point it looks at, an orbit to look from between the named directions, and the zoom), the preview's color scheme (picked as in the legend's combo, which shows every feature type again), legend rows, time estimate and layers (1-based, or up to a height). Only the given fields change. On the Design tab the camera points its view (default is its Home view; no fit_bed). The reply echoes them; preview layers as [first, last, count] with z, the heights of first and last; with any camera field, camera_state, the camera it leaves as get_app_state.camera gives it, and adjusted: [\"zoom\"] when the zoom was held to its limits.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"camera": {
|
|
"description": "Camera direction or fit.",
|
|
"enum": [
|
|
"iso",
|
|
"top",
|
|
"bottom",
|
|
"front",
|
|
"rear",
|
|
"left",
|
|
"right",
|
|
"default",
|
|
"fit_bed",
|
|
"fit_objects",
|
|
"fit_selection"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"canvas": {
|
|
"description": "3D view: Prepare's, the preview, or the assemble view (needs an object; leave it with 3d, as its Return button does).",
|
|
"enum": [
|
|
"3d",
|
|
"preview",
|
|
"assemble"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"layer": {
|
|
"description": "Preview: show layers up to this one (1-based).",
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"layer_range": {
|
|
"description": "Preview: [first, last] layers, 1-based.",
|
|
"items": {
|
|
"type": "integer"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"layer_z": {
|
|
"description": "Preview: show layers up to the first whose top is at or above this height (mm), as the slider places a custom G-code.",
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
"legend": {
|
|
"additionalProperties": {
|
|
"type": "boolean"
|
|
},
|
|
"description": "Preview: show (true) or hide (false) legend rows: feature types by name as get_slice_stats lists them (\"Sparse infill\"), and travel, wipe, retract, unretract, seams, filament_changes, color_changes, pauses, custom_gcode, in any case and with _ or a space between words. Hiding a row this print lacks does nothing. Applied after view_type.",
|
|
"type": "object"
|
|
},
|
|
"look_at": {
|
|
"description": "[x, y, z] in mm: the point the camera looks at, in the 3D view's world coordinates, as list_objects gives positions; on the Design tab, the Design view's, which the Design commands' world points use (describe_scene's modeling_origin is the sketch planes' origin). The camera moves parallel, keeping its direction and distance. After camera.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"orbit": {
|
|
"description": "[yaw, pitch] in degrees: move the camera around what it looks at, yaw to its right and pitch up (negative looks from lower), after camera and look_at. The same on every install, unlike a mouse drag.",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"tab": {
|
|
"description": "Main window tab.",
|
|
"enum": [
|
|
"home",
|
|
"design",
|
|
"prepare",
|
|
"preview",
|
|
"device",
|
|
"multi_device",
|
|
"project",
|
|
"calibration"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"time_mode": {
|
|
"description": "Preview: the time estimate the legend and layer times show; silent only when the print has its own.",
|
|
"enum": [
|
|
"normal",
|
|
"silent"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"view_type": {
|
|
"description": "Preview color scheme.",
|
|
"enum": [
|
|
"summary",
|
|
"feature_type",
|
|
"color_print",
|
|
"speed",
|
|
"actual_speed",
|
|
"height",
|
|
"width",
|
|
"volumetric_flow_rate",
|
|
"actual_volumetric_flow_rate",
|
|
"layer_time_linear",
|
|
"layer_time_logarithmic",
|
|
"fan_speed",
|
|
"temperature",
|
|
"pressure_advance",
|
|
"acceleration",
|
|
"jerk"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"zoom": {
|
|
"description": "Screenshot pixels per mm at look_at's depth, so everywhere in an orthographic view; held to the camera's limits (at most 250, at least what the scene's size allows). Applied last.",
|
|
"exclusiveMinimum": 0,
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "set_view",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [
|
|
"show_layer_range"
|
|
],
|
|
"read_only": false,
|
|
"title": "Point the view"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Replay a list of tool calls in order and report each step: {orca_replay:1, name, vars, steps:[{tool, args, expect, optional, await, save_as, timeout_s}]}, JSON with comments. Strings may use ${replay_dir}, ${out_dir}, ${env:NAME}, ${vars.NAME} and ${jobs.NAME}. A step that returns a job is awaited unless await:false, which stores the job under save_as so later steps can answer the dialog it opened. expect maps a JSON pointer into the step's result to matchers (eq ne gt ge lt le contains regex exists empty); the first failed step or expectation stops the run unless the step is optional. Writes result.json to out_dir (default: <replay name>.out next to a replay file). auto_answer_dialogs rules a replay registers end with it. export_replay turns this session into one.",
|
|
"destructive": false,
|
|
"group": "core",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"out_dir": {
|
|
"description": "Absolute directory for result.json and screenshots; created if missing.",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "Absolute path of a replay file.",
|
|
"type": "string"
|
|
},
|
|
"replay": {
|
|
"description": "The replay itself, as an object or as its JSON text, instead of path.",
|
|
"type": [
|
|
"object",
|
|
"string"
|
|
]
|
|
},
|
|
"vars": {
|
|
"description": "Values that override the replay's vars.",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "run_replay",
|
|
"listed": true,
|
|
"open_world": true,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Run a replay"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Turn the calls this session made into a replay that run_replay runs: mutating calls, wait and screenshot, in order, with refs replaced by locators, job replies replayed with await:false, and screenshot paths moved under ${out_dir}. Calls that failed, at once or as a job later, are left out; so is a call whose job is still running (unless it waits on a dialog), which left_out_running lists as {tool, job}. Reply: the replay, which with path is also written there. clear:true starts a new recording afterwards.",
|
|
"destructive": false,
|
|
"group": "core",
|
|
"guard": "inspect",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"clear": {
|
|
"description": "Forget the calls recorded so far once exported.",
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"description": "Replay name.",
|
|
"type": "string"
|
|
},
|
|
"overwrite": {
|
|
"description": "Replace an existing file.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute .json path to write.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "export_replay",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Export this session as a replay"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Run Python code inside OrcaSlicer as its main program (__name__ == \"__main__\") against orca.host, the whole plugin API (search_python_api searches it): read objects, meshes and settings, compute, use orca.host.ui and the preset API, and call these same tools, with their guards and undo, through orca.host.tools.call(name, args), from the code and from the threads and pool tasks it starts while the run lasts. Mesh and matrix arrays need numpy, which search_python_api says is installed or not; a file run's PEP 723 block can install it. The code runs on a worker thread, where calls documented as UI thread only raise RuntimeError. The run ends once its code and the non-daemon threads and pool tasks it started are done; its windows close with it. `args` holds the args you pass; set `result` to a JSON value to return it; print() output comes back as output. Reply: {status: finished | raised | cancelled | timed_out, result, output, traceback?, message?}; a script that raised changed what it changed before. The code's own file access is held to OrcaSlicer's folders (its data and resources folders, and for a file run the file's folder, read only), and it starts no programs or threads and reaches no network: such an access raises PermissionError, unless a person has let Python scripts run unrestricted in Preferences (get_app_state.python.scripts_unrestricted); the tools it calls work as they do for you. Recorded by export_replay as one step with its code, which a replay runs again against the project as it is then.",
|
|
"destructive": false,
|
|
"group": "core",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"args": {
|
|
"description": "Bound to the name `args` in the code.",
|
|
"type": "object"
|
|
},
|
|
"code": {
|
|
"description": "Python source, run as a module body.",
|
|
"type": "string"
|
|
},
|
|
"filename": {
|
|
"description": "The name tracebacks show for the code (default <run_script>). An existing file's path makes it a file run, as `python file.py` runs it: __file__, sys.argv, imports from its folder and its PEP 723 dependencies; any other name only names it.",
|
|
"type": "string"
|
|
},
|
|
"timeout_s": {
|
|
"description": "The run is stopped as timed_out after this many seconds (default 300).",
|
|
"maximum": 3600,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"code"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "run_script",
|
|
"listed": true,
|
|
"open_world": true,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Run a Python script"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Search orca, the Python API of run_script scripts and plugins, in the running build: orca.host (the project's model and meshes, presets and their editors, slicing data, orca.host.ui windows and dialogs, orca.host.tools calling these tools) and the classes, events and pages plugins build on. Each entry has its kind, signature (a class's constructors) and documentation. A query ranks them, best match first; without one, the whole package is listed with each entry's first sentence. Page with offset. numpy says whether numpy is installed, which mesh and matrix arrays need.",
|
|
"destructive": false,
|
|
"group": "core",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"limit": {
|
|
"description": "At most this many (default 20).",
|
|
"maximum": 200,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"query": {
|
|
"description": "A few words, such as \"mesh normals\" or \"preset value\".",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "search_python_api",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Search the Python API"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Record a video of OrcaSlicer until stop_recording: the main window with any modal dialog on it (target main), or the 3D view shown (canvas). Frames are MJPEG in a Matroska (.mkv) file with their real timestamps. With captions, the tool call acting on the app shows as a caption at the bottom (secret setting values never show); with pointer, the pointer is highlighted, its clicks rippling. Capture takes at most about a third of the UI thread, so the frame rate drops where capturing is slow. One recording at a time: one a replay or script starts ends with it, a client's when the server is turned off. With encode, the stop_recording that reports it also encodes it to an MP4 beside it, as the Start Recording command does, and the .mkv is deleted once the MP4 is written unless keep_raw_video_file; encode_recording makes an MP4 of any recording later. Called with no arguments, it opens the Start Recording dialog instead, as the Start Recording command does (blocked_by_dialog): its controls are named after their settings for set_widget_value, answer_dialog \"Start recording\" starts the person's recording, which neither the end of a replay or script nor the server turning off ends, and the dialog remembers the settings; silent: true starts one here at once with the defaults.",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "inspect",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"captions": {
|
|
"description": "Caption the tool call acting on the app (default false).",
|
|
"type": "boolean"
|
|
},
|
|
"codec": {
|
|
"description": "With encode: the codec (default the preset's).",
|
|
"enum": [
|
|
"h265",
|
|
"h264"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"crf": {
|
|
"description": "With encode: constant rate factor, lower is better and larger (default the preset's).",
|
|
"maximum": 51,
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"encode": {
|
|
"description": "Encode it to an MP4 once stopped; needs an ffmpeg (default false).",
|
|
"type": "boolean"
|
|
},
|
|
"encode_preset": {
|
|
"description": "With encode: the settings the fields below change (default balanced: h265, crf 28, medium, main).",
|
|
"enum": [
|
|
"small",
|
|
"balanced",
|
|
"quality",
|
|
"compatible"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"fps": {
|
|
"description": "Frames per second at most (default 10).",
|
|
"maximum": 30,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"keep_raw_video_file": {
|
|
"description": "With encode: keep the .mkv beside the MP4 (default false: the encode deletes it once the MP4 is written).",
|
|
"type": "boolean"
|
|
},
|
|
"max_dim": {
|
|
"description": "Long edge of the video in pixels (default 1920).",
|
|
"maximum": 3840,
|
|
"minimum": 320,
|
|
"type": "integer"
|
|
},
|
|
"max_seconds": {
|
|
"description": "The recording ends on its own after this long (default 3600).",
|
|
"maximum": 3600,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"overwrite": {
|
|
"description": "Replace an existing save_path, and with encode its MP4.",
|
|
"type": "boolean"
|
|
},
|
|
"pointer": {
|
|
"description": "Highlight the pointer and show its clicks (default false).",
|
|
"type": "boolean"
|
|
},
|
|
"profile": {
|
|
"description": "With encode: h264 high, main or baseline; h265 main or main10 (default the preset's, else the codec's first).",
|
|
"enum": [
|
|
"high",
|
|
"main",
|
|
"baseline",
|
|
"main10"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"quality": {
|
|
"description": "JPEG quality of the frames (default 80).",
|
|
"maximum": 95,
|
|
"minimum": 30,
|
|
"type": "integer"
|
|
},
|
|
"save_path": {
|
|
"description": "Absolute .mkv path; default the session's output folder.",
|
|
"type": "string"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the command without asking, with the defaults of what the call leaves out. A call with no arguments does what a person's pick does.",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"speed": {
|
|
"description": "With encode: slower makes a smaller file (default the preset's).",
|
|
"enum": [
|
|
"ultrafast",
|
|
"superfast",
|
|
"veryfast",
|
|
"faster",
|
|
"fast",
|
|
"medium",
|
|
"slow",
|
|
"slower",
|
|
"veryslow"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"description": "main (default): the main window and its dialogs; canvas: the 3D view shown.",
|
|
"enum": [
|
|
"main",
|
|
"canvas"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "start_recording",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Start Recording"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Stop the running recording and return its file once it is written: seconds, frames captured and written, frames dropped when encoding fell behind, failed when they could not be encoded, or skipped when the window could not be captured, the size, the mean UI-thread time a capture took (capture_ms), and why it ended. A recording that ended on its own (max_seconds, the replay or script that started it ended, a write error) is reported once by the next stop_recording. For a recording started with encode, it then starts the MP4 encode and returns it under encode: a job, whose wait {for: \"job\"} returns encode_recording's result, whose raw_video_file_deleted says whether the .mkv was deleted. This is the call with silent: true. Called with no arguments, it stops the recording as the Stop Recording command does, whoever started it: without waiting for its file, it shows the person a notification naming it and replies with its path; the next stop_recording with silent: true reports it as ended stopped_in_app.",
|
|
"destructive": false,
|
|
"group": "Commands",
|
|
"guard": "inspect",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"silent": {
|
|
"description": "true runs the command without asking, with the defaults of what the call leaves out. A call with no arguments does what a person's pick does.",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "stop_recording",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Stop Recording"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Encode a recording into an H.265 (or H.264) MP4 with the system ffmpeg (ORCA_FFMPEG, else ffmpeg on PATH; it needs libx265 or libx264), keeping its timing. Takes this session's last finished recording unless path names one, and writes beside it unless save_path says where. A long encode returns a job: wait for it, or cancel_job {job} stops it. Once the MP4 is written, it deletes the .mkv if this session recorded it, unless keep_raw_video_file; any other .mkv is kept. raw_video_file_deleted in the reply says which.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "inspect",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"codec": {
|
|
"description": "Default h265.",
|
|
"enum": [
|
|
"h265",
|
|
"h264"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"crf": {
|
|
"description": "Constant rate factor, lower is better and larger (default 28 for h265, 23 for h264).",
|
|
"maximum": 51,
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"keep_raw_video_file": {
|
|
"description": "Keep the .mkv beside the MP4 (default false: a recording this session made is deleted once the MP4 is written).",
|
|
"type": "boolean"
|
|
},
|
|
"overwrite": {
|
|
"description": "Replace an existing save_path.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute .mkv of a finished recording; default this session's last.",
|
|
"type": "string"
|
|
},
|
|
"profile": {
|
|
"description": "h264: high, main or baseline; h265: main, or main10 for 10 bits per sample. Default the encoder's (high, main).",
|
|
"enum": [
|
|
"high",
|
|
"main",
|
|
"baseline",
|
|
"main10"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"save_path": {
|
|
"description": "Absolute .mp4 path; default the recording's, with .mp4.",
|
|
"type": "string"
|
|
},
|
|
"speed": {
|
|
"description": "The encoder's preset: slower makes a smaller file of the same quality (default medium).",
|
|
"enum": [
|
|
"ultrafast",
|
|
"superfast",
|
|
"veryfast",
|
|
"faster",
|
|
"fast",
|
|
"medium",
|
|
"slow",
|
|
"slower",
|
|
"veryslow"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "encode_recording",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Encode a recording"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Sketch on the selected flat face or plane, or click one next. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Extrude a committed sketch, one of its loops, a face or a drawn profile into a body. A committed sketch, or one loop of it, extrudes as the Extrude card does; push/pull grows a planar face of a body; a profile drawn here is an explicit closed `profile` (list of [x,y]) or a centred width x height rectangle on `plane`. End conditions match Onshape. Reply: extrude_index, the index of its sketch (-1 for a face), the boolean and body used, end, frame.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
}
|
|
],
|
|
"title": "A 20 x 20 x 5 mm plate on the XY plane"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 4,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"sketch": 0
|
|
},
|
|
"tool": "extrude"
|
|
}
|
|
],
|
|
"title": "A committed sketch extruded 5 mm: a rectangle around a circle makes a plate with a bore"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"distance": 3,
|
|
"face": 5,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
}
|
|
},
|
|
"tool": "extrude"
|
|
}
|
|
],
|
|
"title": "A plate's top face pushed up 3 mm"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "the body to join, subtract from or intersect, or whose face is pushed; omit for the body a sketch touches, else the last body",
|
|
"type": "integer"
|
|
},
|
|
"boolean": {
|
|
"default": null,
|
|
"description": "auto joins the body the profile touches, else makes a new body, as the card's default; default auto with sketch, new without",
|
|
"enum": [
|
|
"auto",
|
|
"new",
|
|
"union",
|
|
"subtract",
|
|
"intersect",
|
|
null
|
|
],
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"distance": {
|
|
"default": 10,
|
|
"description": "In mm.",
|
|
"exclusiveMinimum": 0,
|
|
"type": "number"
|
|
},
|
|
"distance2": {
|
|
"default": 0,
|
|
"description": "second-side depth when end=two_sided (else falls back to distance) (mm)",
|
|
"type": "number"
|
|
},
|
|
"end": {
|
|
"default": "blind",
|
|
"enum": [
|
|
"blind",
|
|
"symmetric",
|
|
"two_sided",
|
|
"through_all",
|
|
"up_to_face"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"face": {
|
|
"default": null,
|
|
"description": "push/pull: a planar face (query_topology id) of `body` grown along its outward normal (flip for inward); boolean auto joins that body. sketch, loop, profile, width, height, plane and taper are then refused, and end is blind or symmetric",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"flip": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"height": {
|
|
"default": 20,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"loop": {
|
|
"default": null,
|
|
"description": "with sketch: one closed loop (closed_loops[].index of sketch_describe {sketch}) with the loops inside it as holes; a hole is a loop of its own, so its index extrudes the disc. Omit for the whole sketch",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"plane": {
|
|
"default": "XY",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face (origin at its centroid, normal out of the body, x from the world axes). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"profile": {
|
|
"default": [],
|
|
"description": "optional closed contour [[x,y],...] in plane mm; overrides width/height",
|
|
"type": "array"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"sketch": {
|
|
"default": null,
|
|
"description": "a committed Sketch feature to extrude (sketch_commit's sketch_index); profile, width, height and plane are then refused",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"taper": {
|
|
"default": 0,
|
|
"description": "draft/taper of the side wall (deg)",
|
|
"type": "number"
|
|
},
|
|
"up_to_face": {
|
|
"default": -1,
|
|
"description": "face id (query_topology) of the body the extrude works on, when end=up_to_face",
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"default": 20,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "extrude",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Extrude"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Revolve a committed sketch as the Revolve card does, or a profile drawn here, about an axis. A sketch turns about a line of it or a plane axis; a profile drawn here is an explicit `profile` offset from the axis, or a width x height rectangle with one edge on the axis, centred along it, so a full turn is a cylinder width long of radius height. Reply: revolve_index, the index of its sketch, the boolean, body and axis used, frame.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"axis": 1,
|
|
"plane": "XZ",
|
|
"profile": [
|
|
[
|
|
10,
|
|
0
|
|
],
|
|
[
|
|
15,
|
|
0
|
|
],
|
|
[
|
|
15,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
]
|
|
]
|
|
},
|
|
"tool": "revolve"
|
|
}
|
|
],
|
|
"title": "A ring: a profile 10 to 15 mm out from the XZ plane's vertical axis, turned a full circle"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XZ"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
10,
|
|
0,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"construction": true,
|
|
"p0": [
|
|
0,
|
|
0
|
|
],
|
|
"p1": [
|
|
0,
|
|
10
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"sketch": 0
|
|
},
|
|
"tool": "revolve"
|
|
}
|
|
],
|
|
"title": "A committed sketch turned about its centerline, a construction line"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"angle": {
|
|
"default": 360,
|
|
"description": "In deg.",
|
|
"type": "number"
|
|
},
|
|
"axis": {
|
|
"default": 0,
|
|
"description": "the plane's X (0) or Y (1) axis through its origin",
|
|
"enum": [
|
|
0,
|
|
1
|
|
],
|
|
"type": "integer"
|
|
},
|
|
"axis_entity": {
|
|
"default": null,
|
|
"description": "with sketch: a line of the sketch (entity index) as the axis, or -1 for the plane axis; omit for the sketch's only centerline (construction line) when it has one and axis is not given",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"body": {
|
|
"default": -1,
|
|
"description": "the body to join, subtract from or intersect; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"boolean": {
|
|
"default": "new",
|
|
"enum": [
|
|
"new",
|
|
"union",
|
|
"subtract",
|
|
"intersect"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"flip": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"height": {
|
|
"default": 10,
|
|
"description": "without sketch or profile: how far the rectangle reaches out from the axis, the solid's radius (mm)",
|
|
"type": "number"
|
|
},
|
|
"plane": {
|
|
"default": "XY",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face (origin at its centroid, normal out of the body, x from the world axes). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"profile": {
|
|
"default": [],
|
|
"description": "optional closed contour [[x,y],...] in plane mm; overrides width/height",
|
|
"type": "array"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"sketch": {
|
|
"default": null,
|
|
"description": "a committed Sketch feature to revolve (sketch_commit's sketch_index); profile, width, height and plane are then refused",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"width": {
|
|
"default": 20,
|
|
"description": "without sketch or profile: the rectangle's length along the axis (mm)",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "revolve",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Revolve"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Sweep a committed sketch's closed profile along a path, a sketch or a helix, as the Sweep card does. Draw the profile across the path's start (a helix's start and tangent are in its reply); along a helix the profile keeps its angle to the helix axis. Long sweeps take seconds and the reply may be a job. Reply: sweep_index, bodies, boolean, body.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"height": 20,
|
|
"pitch": 5,
|
|
"radius": 10
|
|
},
|
|
"tool": "helix"
|
|
},
|
|
{
|
|
"args": {
|
|
"plane": "XZ"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
10,
|
|
0
|
|
],
|
|
"radius": 1,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"path": 0,
|
|
"sketch": 1
|
|
},
|
|
"tool": "sweep"
|
|
}
|
|
],
|
|
"title": "A spring: a 2 mm circle across a helix's start, swept along it"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
0,
|
|
0
|
|
],
|
|
"p1": [
|
|
0,
|
|
40
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"plane": "XZ"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 3,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"path": 0,
|
|
"sketch": 1
|
|
},
|
|
"tool": "sweep"
|
|
}
|
|
],
|
|
"title": "A 6 mm rod swept along a 40 mm line"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "the body a union, subtract or intersect works on; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"boolean": {
|
|
"default": "new",
|
|
"enum": [
|
|
"new",
|
|
"union",
|
|
"subtract",
|
|
"intersect"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"path": {
|
|
"description": "feature index of a sketch or a helix, other than the profile",
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"sketch": {
|
|
"description": "the profile: a committed sketch's feature index",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"sketch",
|
|
"path"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sweep",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sweep"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Loft a solid through two or more committed sketches, in order, as the Loft card does. Each sketch is on its own plane (sketch on datum planes). Lofts take seconds and the reply may be a job. Reply: loft_index, bodies, boolean, body.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"base": "XY",
|
|
"offset": 20,
|
|
"type": "offset"
|
|
},
|
|
"tool": "plane"
|
|
},
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-10,
|
|
-10,
|
|
10,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"plane": {
|
|
"datum": 0
|
|
}
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 6,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"profiles": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"tool": "loft"
|
|
}
|
|
],
|
|
"title": "A square-to-round transition 20 mm tall, the circle sketched on a datum plane"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "the body a union, subtract or intersect works on; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"boolean": {
|
|
"default": "new",
|
|
"enum": [
|
|
"new",
|
|
"union",
|
|
"subtract",
|
|
"intersect"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"profiles": {
|
|
"description": "sketch feature indices, in loft order",
|
|
"type": "array"
|
|
},
|
|
"ruled": {
|
|
"default": false,
|
|
"description": "straight sections between the profiles instead of a smooth skin",
|
|
"type": "boolean"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"profiles"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "loft",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Loft"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Offset a face of a body by a wall thickness, producing a new thin solid body. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"face": 5,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"thickness": 2
|
|
},
|
|
"tool": "thicken"
|
|
}
|
|
],
|
|
"title": "A 2 mm skin grown from a plate's top face as a new body"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"face": {
|
|
"description": "face id to thicken (query_topology)",
|
|
"type": "integer"
|
|
},
|
|
"flip": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"thickness": {
|
|
"default": 2,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"face"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "thicken",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Thicken"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Grow a thin rib wall (stiffener) from an open Line sketch entity, fused to a body. The wall is centred on the line in the sketch plane, thickness wide, and grows depth along the sketch plane's normal. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 3,
|
|
"height": 20,
|
|
"width": 40
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"plane": {
|
|
"body": 0,
|
|
"face": 5
|
|
}
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
-15,
|
|
0
|
|
],
|
|
"p1": [
|
|
15,
|
|
0
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"depth": 8,
|
|
"entity": 0,
|
|
"sketch": 2,
|
|
"thickness": 2
|
|
},
|
|
"tool": "rib"
|
|
}
|
|
],
|
|
"title": "A 2 mm rib 8 mm tall across a plate's top face"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"depth": {
|
|
"default": 10,
|
|
"description": "along the sketch plane's normal, or against it when negative (mm)",
|
|
"type": "number"
|
|
},
|
|
"entity": {
|
|
"description": "entity index of the open Line within the sketch",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"sketch": {
|
|
"description": "sketch feature index holding the open line",
|
|
"type": "integer"
|
|
},
|
|
"thickness": {
|
|
"default": 2,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"sketch",
|
|
"entity"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "rib",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Rib"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Combine two bodies: union | subtract (tool from target) | intersect. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"boolean": "new",
|
|
"distance": 20,
|
|
"height": 6,
|
|
"width": 6
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"op": "subtract",
|
|
"target": 0,
|
|
"tool": 1
|
|
},
|
|
"tool": "boolean"
|
|
}
|
|
],
|
|
"title": "A post subtracted from a block"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"boolean": "new",
|
|
"distance": 10,
|
|
"profile": [
|
|
[
|
|
5,
|
|
-5
|
|
],
|
|
[
|
|
20,
|
|
-5
|
|
],
|
|
[
|
|
20,
|
|
5
|
|
],
|
|
[
|
|
5,
|
|
5
|
|
]
|
|
]
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"op": "union",
|
|
"target": 0,
|
|
"tool": 1
|
|
},
|
|
"tool": "boolean"
|
|
}
|
|
],
|
|
"title": "Two overlapping blocks joined into one body"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"keep_tool": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"op": {
|
|
"default": "subtract",
|
|
"enum": [
|
|
"union",
|
|
"subtract",
|
|
"intersect"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"target": {
|
|
"default": 0,
|
|
"type": "integer"
|
|
},
|
|
"tolerance": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"tool": {
|
|
"default": 1,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "boolean",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Join"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Cut the tool body out of the target. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "bool_subtract",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Subtract"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Keep only where the two bodies overlap. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "bool_intersect",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Intersect"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Extrude a sketch wire with no end caps -> an open sheet body. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
-15,
|
|
0
|
|
],
|
|
"p1": [
|
|
15,
|
|
0
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"sketch": 0
|
|
},
|
|
"tool": "surf_extrude"
|
|
}
|
|
],
|
|
"title": "A 30 mm line extruded 10 mm into a flat sheet"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 10,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 20,
|
|
"sketch": 0
|
|
},
|
|
"tool": "surf_extrude"
|
|
}
|
|
],
|
|
"title": "A circle extruded 20 mm into an open tube, with no end caps"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"distance": {
|
|
"default": 10,
|
|
"description": "along the sketch plane's normal, or against it when negative (mm)",
|
|
"type": "number"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"sketch": {
|
|
"description": "sketch feature index",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"sketch"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "surf_extrude",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Surface Extrude"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Revolve a sketch wire with no caps -> an open sheet body. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XZ"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
10,
|
|
0
|
|
],
|
|
"p1": [
|
|
10,
|
|
20
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"axis": 1,
|
|
"sketch": 0
|
|
},
|
|
"tool": "surf_revolve"
|
|
}
|
|
],
|
|
"title": "A cylinder's wall: a line 10 mm out from the XZ plane's vertical axis, turned a full circle"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XZ"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
5,
|
|
0
|
|
],
|
|
"p1": [
|
|
15,
|
|
20
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"angle": 180,
|
|
"axis": 1,
|
|
"sketch": 0
|
|
},
|
|
"tool": "surf_revolve"
|
|
}
|
|
],
|
|
"title": "Half a truncated cone's wall: a sloping line turned 180 degrees about the XZ plane's vertical axis"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"angle": {
|
|
"default": 360,
|
|
"description": "In deg.",
|
|
"type": "number"
|
|
},
|
|
"axis": {
|
|
"default": 0,
|
|
"description": "the sketch plane's X (0) or Y (1) axis through its origin",
|
|
"enum": [
|
|
0,
|
|
1
|
|
],
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"sketch": {
|
|
"description": "sketch feature index",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"sketch"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "surf_revolve",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Surface Revolve"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Skin two or more profile sketches with no end caps -> an open sheet body. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"base": "XY",
|
|
"offset": 20,
|
|
"type": "offset"
|
|
},
|
|
"tool": "plane"
|
|
},
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 5,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"plane": {
|
|
"datum": 0
|
|
}
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 15,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"profiles": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"tool": "surf_loft"
|
|
}
|
|
],
|
|
"title": "An open funnel skinned from a circle on XY to a wider one on a datum plane 20 mm up"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"profiles": {
|
|
"description": "sketch feature indices, in order",
|
|
"type": "array"
|
|
},
|
|
"ruled": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"profiles"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "surf_loft",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Surface Loft"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Fill a sketch's closed boundary with one smooth face -> a sheet body. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 10,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"sketch": 0
|
|
},
|
|
"tool": "surf_fill"
|
|
}
|
|
],
|
|
"title": "A circle filled with a disc-shaped sheet"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"sketch": 0
|
|
},
|
|
"tool": "surf_fill"
|
|
}
|
|
],
|
|
"title": "A rectangle filled with a flat sheet"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"sketch": {
|
|
"description": "sketch feature index",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"sketch"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "surf_fill",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Surface Fill"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Thicken a whole sheet body into a solid. A sheet of several faces whose free rims close into planar loops (the walls of a box with no lids) is capped at them and grows inward, into the closed shape that makes, whatever flip says; one whose rim can't be capped is refused. A single face or a closed shell is offset face by face along each face's normal, the one query_topology gives, or against it with flip; a closed shell can fail to thicken this way. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"sketch": 0
|
|
},
|
|
"tool": "surf_fill"
|
|
},
|
|
{
|
|
"args": {
|
|
"thickness": 2
|
|
},
|
|
"tool": "thicken_surf"
|
|
}
|
|
],
|
|
"title": "A 30 x 20 mm sheet thickened into a 2 mm plate, a new body"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 10,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 20,
|
|
"sketch": 0
|
|
},
|
|
"tool": "surf_extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"flip": true,
|
|
"thickness": 1.5
|
|
},
|
|
"tool": "thicken_surf"
|
|
}
|
|
],
|
|
"title": "An open tube thickened 1.5 mm outward into a pipe: flip, as its normal points inward"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "sheet body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"flip": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"thickness": {
|
|
"default": 2,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "thicken_surf",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Thicken Surface"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Drill a circular hole at (x,y) or `at` on a plane. Reply: hole_index, body, x and y in the frame, off_plane with at, frame.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"diameter": 5,
|
|
"through": true
|
|
},
|
|
"tool": "hole"
|
|
}
|
|
],
|
|
"title": "A 5 mm hole through the middle of a plate"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"depth": 3,
|
|
"diameter": 4,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"plane": {
|
|
"body": 0,
|
|
"face": 5
|
|
},
|
|
"x": 5
|
|
},
|
|
"tool": "hole"
|
|
}
|
|
],
|
|
"title": "A 4 mm hole 3 mm deep into a plate's top face, 5 mm off centre"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"at": {
|
|
"default": null,
|
|
"description": "instead of x and y: a world point [x, y, z], projected onto the plane along its normal (off_plane says how far), or {\"body\": b, \"face\": f} a cylindrical face or {\"body\": b, \"edge\": e} a circular edge whose axis the hole shares. A world point moves with modeling_origin; x and y replay on any printer",
|
|
"type": [
|
|
"array",
|
|
"object",
|
|
"null"
|
|
]
|
|
},
|
|
"body": {
|
|
"default": -1,
|
|
"description": "the body to drill; omit for a face plane's body, else the last body",
|
|
"type": "integer"
|
|
},
|
|
"depth": {
|
|
"default": 10,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"diameter": {
|
|
"default": 5,
|
|
"description": "In mm.",
|
|
"exclusiveMinimum": 0,
|
|
"type": "number"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plane": {
|
|
"default": "XY",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face to drill into that body (origin at its centroid, normal into the body, x along its longest edge). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"through": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"x": {
|
|
"default": 0,
|
|
"description": "offset in the plane's frame from its origin, NOT world (mm)",
|
|
"type": "number"
|
|
},
|
|
"y": {
|
|
"default": 0,
|
|
"description": "offset in the plane's frame from its origin, NOT world (mm)",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "hole",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Hole"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Cut a thread as the Thread card does, along a cylindrical face or a circular edge, or on a plane. On a face a bore is tapped, a boss threaded; on a plane the thread goes at (x,y) or `at`. Without designation, a face or edge takes the nearest standard size, ISO metric and UTS alike. Long threads take seconds and the reply may be a job. Reply: thread_index, designation (null when custom), internal, diameter, pitch, depth, length, body, x, y, frame.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"diameter": 6.8,
|
|
"through": true
|
|
},
|
|
"tool": "hole"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"kinds": [
|
|
"cylindrical"
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"designation": "M8",
|
|
"face": 6,
|
|
"generation": {
|
|
"from_call": 2,
|
|
"key": "generation"
|
|
}
|
|
},
|
|
"tool": "thread"
|
|
}
|
|
],
|
|
"title": "An M8 thread tapped into a 6.8 mm hole through a block"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"designation": "M6",
|
|
"internal": false,
|
|
"length": 10,
|
|
"plane": "XY"
|
|
},
|
|
"tool": "thread"
|
|
}
|
|
],
|
|
"title": "An M6 threaded rod 10 mm long, standing on the XY plane"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 5,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 12,
|
|
"sketch": 0
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"kinds": [
|
|
"cylindrical"
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"face": 0,
|
|
"generation": {
|
|
"from_call": 4,
|
|
"key": "generation"
|
|
}
|
|
},
|
|
"tool": "thread"
|
|
}
|
|
],
|
|
"title": "A 10 mm boss threaded at the nearest standard size, which the reply's designation names"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"at": {
|
|
"default": null,
|
|
"description": "on a plane, instead of x and y: a world point [x, y, z], or {\"body\": b, \"face\": f} a cylindrical face or {\"body\": b, \"edge\": e} a circular edge whose axis the thread shares, as hole takes it",
|
|
"type": [
|
|
"array",
|
|
"object",
|
|
"null"
|
|
]
|
|
},
|
|
"body": {
|
|
"default": -1,
|
|
"description": "the body of face or edge, or the body threaded on a plane; omit for the last body (on a plane, a face plane's body)",
|
|
"type": "integer"
|
|
},
|
|
"depth": {
|
|
"default": null,
|
|
"description": "radial depth; default the 60 degree V's for the pitch and role (mm)",
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
},
|
|
"designation": {
|
|
"default": null,
|
|
"description": "e.g. M5, M8x1, 1/4-20 UNC: sets diameter, pitch and depth",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"diameter": {
|
|
"default": null,
|
|
"description": "nominal (major) diameter, replacing the standard's; with pitch, a custom thread (mm)",
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
},
|
|
"edge": {
|
|
"default": null,
|
|
"description": "instead of face: a circular edge id of `body`, the thread rising along its normal; needs length",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"face": {
|
|
"default": null,
|
|
"description": "a cylindrical face id of `body` (query_topology); the thread runs its length from its lower end",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"internal": {
|
|
"default": null,
|
|
"description": "true taps a hole, false threads a rod; required on a plane, else from the face (a bore is internal), external for an edge",
|
|
"type": [
|
|
"boolean",
|
|
"null"
|
|
]
|
|
},
|
|
"length": {
|
|
"default": null,
|
|
"description": "default the face's length; required for an edge or a plane (mm)",
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
},
|
|
"pitch": {
|
|
"default": null,
|
|
"description": "replaces the standard's (mm)",
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
},
|
|
"plane": {
|
|
"default": null,
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face to drill into that body (origin at its centroid, normal into the body, x along its longest edge). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"x": {
|
|
"default": 0,
|
|
"description": "on a plane: offset in the plane's frame from its origin, NOT world (mm)",
|
|
"type": "number"
|
|
},
|
|
"y": {
|
|
"default": 0,
|
|
"description": "on a plane: offset in the plane's frame from its origin, NOT world (mm)",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "thread",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Thread"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Hollow a body to a wall thickness (inward); optionally leave one face open. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"face": 5,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"thickness": 1.5
|
|
},
|
|
"tool": "shell"
|
|
}
|
|
],
|
|
"title": "A 20 x 20 x 10 mm box hollowed to 1.5 mm walls, open at the top"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"thickness": 2
|
|
},
|
|
"tool": "shell"
|
|
}
|
|
],
|
|
"title": "A block hollowed to closed 2 mm walls"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"face": {
|
|
"default": -1,
|
|
"description": "face id to leave open (query_topology); omit for a closed hollow",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"thickness": {
|
|
"default": 1,
|
|
"description": "In mm.",
|
|
"exclusiveMinimum": 0,
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "shell",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Shell"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Trim the body with a plane — drag the offset arrow; keep one half or both. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "cut",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Cut"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Split a body with a plane, as the Cut card does, moved by offset and turned over by flip; or along the plane of a face. The upper piece is on the plane's normal side; keeping both makes two bodies, the lower one right after the upper. Reply: split_index, bodies, body, upper_body and lower_body (the pieces kept), frame (a plane's, after offset and flip).",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"offset": 5,
|
|
"plane": "XY"
|
|
},
|
|
"tool": "split"
|
|
}
|
|
],
|
|
"title": "A block cut in two at half its height"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"keep_upper": false,
|
|
"offset": 5,
|
|
"plane": "XY"
|
|
},
|
|
"tool": "split"
|
|
}
|
|
],
|
|
"title": "A block cut at half its height, keeping only the lower half"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"boolean": "new",
|
|
"distance": 4,
|
|
"height": 30,
|
|
"width": 30
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 1
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"face": 5,
|
|
"face_body": 1,
|
|
"generation": {
|
|
"from_call": 2,
|
|
"key": "generation"
|
|
}
|
|
},
|
|
"tool": "split"
|
|
}
|
|
],
|
|
"title": "A block split along the top face of a wider plate"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"face": {
|
|
"default": null,
|
|
"description": "instead of plane: a face id (query_topology) to split along",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"face_body": {
|
|
"default": -1,
|
|
"description": "with face: the body that owns it; -1 = target",
|
|
"type": "integer"
|
|
},
|
|
"flip": {
|
|
"default": false,
|
|
"description": "with plane: turn it over, swapping upper and lower",
|
|
"type": "boolean"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"keep_lower": {
|
|
"default": true,
|
|
"type": "boolean"
|
|
},
|
|
"keep_upper": {
|
|
"default": true,
|
|
"type": "boolean"
|
|
},
|
|
"offset": {
|
|
"default": 0,
|
|
"description": "with plane: along its normal (mm)",
|
|
"type": "number"
|
|
},
|
|
"plane": {
|
|
"default": null,
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face (origin at its centroid, normal out of the body, x from the world axes). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "split",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Split"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Round measured edges of a body (edge ids from query_topology on that body). A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"convex": true,
|
|
"direction": [
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"edge_kinds": [
|
|
"line"
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"edge": [
|
|
0,
|
|
1,
|
|
4,
|
|
7
|
|
],
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"radius": 2
|
|
},
|
|
"tool": "fillet"
|
|
}
|
|
],
|
|
"title": "A plate's four vertical corners rounded to 2 mm"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"adjacency": true,
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"edge": 3,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"radius": 1
|
|
},
|
|
"tool": "fillet"
|
|
}
|
|
],
|
|
"title": "One top edge of a plate rounded to 1 mm"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body. edge id is resolved against THIS body.",
|
|
"type": "integer"
|
|
},
|
|
"edge": {
|
|
"description": "one edge id, or an array of ids rounded together in one feature",
|
|
"type": [
|
|
"integer",
|
|
"array"
|
|
]
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"radius": {
|
|
"default": 1,
|
|
"description": "In mm.",
|
|
"exclusiveMinimum": 0,
|
|
"type": "number"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"edge"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "fillet",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Fillet"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Chamfer measured edges of a body (edge ids from query_topology on that body). A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"adjacency": true,
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"distance": 1,
|
|
"edge": [
|
|
3,
|
|
6,
|
|
9,
|
|
11
|
|
],
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
}
|
|
},
|
|
"tool": "chamfer"
|
|
}
|
|
],
|
|
"title": "A plate's top edges chamfered 1 mm"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body. edge id is resolved against THIS body.",
|
|
"type": "integer"
|
|
},
|
|
"distance": {
|
|
"default": 1,
|
|
"description": "In mm.",
|
|
"exclusiveMinimum": 0,
|
|
"type": "number"
|
|
},
|
|
"edge": {
|
|
"description": "one edge id, or an array of ids chamfered together in one feature",
|
|
"type": [
|
|
"integer",
|
|
"array"
|
|
]
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"edge"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "chamfer",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Chamfer"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Taper a body face by an angle about its base (pull direction +Z). A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"direction": [
|
|
1,
|
|
0,
|
|
0
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"angle": 5,
|
|
"body": 0,
|
|
"face": 1,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
}
|
|
},
|
|
"tool": "draft"
|
|
}
|
|
],
|
|
"title": "A block's +X side tapered 5 degrees"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"angle": {
|
|
"default": 5,
|
|
"description": "In deg.",
|
|
"type": "number"
|
|
},
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"face": {
|
|
"description": "face id to draft (query_topology)",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"face"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "draft",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Draft"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Offset a sheet body by a signed distance -> another sheet body. A positive offset moves each face along its normal, the one query_topology gives, and a negative one against it, so the side depends on how the sheet was made: an extruded circle's normal points inward. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"sketch": 0
|
|
},
|
|
"tool": "surf_fill"
|
|
},
|
|
{
|
|
"args": {
|
|
"offset": 5
|
|
},
|
|
"tool": "surf_offset"
|
|
}
|
|
],
|
|
"title": "A rectangular sheet copied 5 mm above itself"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 10,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 20,
|
|
"sketch": 0
|
|
},
|
|
"tool": "surf_extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"offset": -2
|
|
},
|
|
"tool": "surf_offset"
|
|
}
|
|
],
|
|
"title": "An open tube of radius 10 mm offset -2 mm, against its inward normal, to one of radius 12 mm"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "sheet body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"default": 1,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "surf_offset",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Surface Offset"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Replicate a body: linear (count along a plane axis at spacing) or circular (count over an angle about the plane normal). A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"count": 3,
|
|
"spacing": 30
|
|
},
|
|
"tool": "pattern"
|
|
}
|
|
],
|
|
"title": "Three plates 30 mm apart along X"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"profile": [
|
|
[
|
|
20,
|
|
-3
|
|
],
|
|
[
|
|
30,
|
|
-3
|
|
],
|
|
[
|
|
30,
|
|
3
|
|
],
|
|
[
|
|
20,
|
|
3
|
|
]
|
|
]
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"circular": true,
|
|
"count": 6
|
|
},
|
|
"tool": "pattern"
|
|
}
|
|
],
|
|
"title": "Six blocks in a circle about the XY plane's normal"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"angle": {
|
|
"default": 360,
|
|
"description": "circular total sweep (deg)",
|
|
"type": "number"
|
|
},
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"circular": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"count": {
|
|
"default": 3,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"dir": {
|
|
"default": 0,
|
|
"description": "linear axis: 0=plane X, 1=plane Y",
|
|
"enum": [
|
|
0,
|
|
1
|
|
],
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plane": {
|
|
"default": "XY",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face (origin at its centroid, normal out of the body, x from the world axes). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"spacing": {
|
|
"default": 10,
|
|
"description": "linear step (mm)",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "pattern",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Linear pattern"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Repeat the body around an axis — set the count and sweep. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "pattern_circular",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Circular pattern"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Mirror a body about a base plane. mode=new creates a mirrored copy; mode=add fuses the mirror back into the source. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"profile": [
|
|
[
|
|
-5,
|
|
5
|
|
],
|
|
[
|
|
5,
|
|
5
|
|
],
|
|
[
|
|
5,
|
|
15
|
|
],
|
|
[
|
|
-5,
|
|
15
|
|
]
|
|
]
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"plane": "XZ"
|
|
},
|
|
"tool": "mirror"
|
|
}
|
|
],
|
|
"title": "A mirrored copy of a block across the XZ plane"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"profile": [
|
|
[
|
|
-5,
|
|
0
|
|
],
|
|
[
|
|
5,
|
|
0
|
|
],
|
|
[
|
|
5,
|
|
10
|
|
],
|
|
[
|
|
-5,
|
|
10
|
|
]
|
|
]
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"mode": "add",
|
|
"plane": "XZ"
|
|
},
|
|
"tool": "mirror"
|
|
}
|
|
],
|
|
"title": "A block against the XZ plane and its mirror image fused into one body"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"keep_original": {
|
|
"default": true,
|
|
"description": "when mode=new, keep the source body",
|
|
"type": "boolean"
|
|
},
|
|
"mode": {
|
|
"default": "new",
|
|
"enum": [
|
|
"new",
|
|
"add"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"plane": {
|
|
"default": "XZ",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face (origin at its centroid, normal out of the body, x from the world axes). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "mirror",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Mirror"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Replicate a body along a sketch curve. `count` copies are placed at equal-parameter points on the entity, each translated by (P_i - P_0). A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"end_angle_deg": 180,
|
|
"radius": 30,
|
|
"start_angle_deg": 0,
|
|
"type": "arc"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"profile": [
|
|
[
|
|
28,
|
|
-2
|
|
],
|
|
[
|
|
32,
|
|
-2
|
|
],
|
|
[
|
|
32,
|
|
2
|
|
],
|
|
[
|
|
28,
|
|
2
|
|
]
|
|
]
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"count": 4,
|
|
"entity": 0,
|
|
"sketch": 0
|
|
},
|
|
"tool": "pat_curve"
|
|
}
|
|
],
|
|
"title": "Four pegs spaced along a half circle"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"count": {
|
|
"default": 3,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"entity": {
|
|
"description": "entity index of the guide curve within that sketch",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"sketch": {
|
|
"description": "feature index of the sketch holding the guide curve",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"sketch",
|
|
"entity"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "pat_curve",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Pattern on Curve"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Move and/or rotate a body (B-rep transform). copy=true keeps the source and appends the transformed copy as a new body. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"dx": 30
|
|
},
|
|
"tool": "body_transform"
|
|
}
|
|
],
|
|
"title": "A plate moved 30 mm along X"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"copy": true,
|
|
"dz": 10
|
|
},
|
|
"tool": "body_transform"
|
|
}
|
|
],
|
|
"title": "A copy of a plate 10 mm above it"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"angle": {
|
|
"default": 0,
|
|
"description": "In deg.",
|
|
"type": "number"
|
|
},
|
|
"axis_x": {
|
|
"default": 0,
|
|
"type": "number"
|
|
},
|
|
"axis_y": {
|
|
"default": 0,
|
|
"type": "number"
|
|
},
|
|
"axis_z": {
|
|
"default": 1,
|
|
"type": "number"
|
|
},
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"copy": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"dx": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"dy": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"dz": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"pivot_x": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"pivot_y": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"pivot_z": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "body_transform",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Move"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Mate two bodies: transform the moving body (cs_b) so its connector lands on the fixed one (cs_a). kind: 0=Fastened, 1=Planar, 2=Revolute, 3=Slider, 4=Cylindrical. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"boolean": "new",
|
|
"distance": 10,
|
|
"profile": [
|
|
[
|
|
30,
|
|
-5
|
|
],
|
|
[
|
|
40,
|
|
-5
|
|
],
|
|
[
|
|
40,
|
|
5
|
|
],
|
|
[
|
|
30,
|
|
5
|
|
]
|
|
]
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"face": 5,
|
|
"generation": {
|
|
"from_call": 2,
|
|
"key": "generation"
|
|
},
|
|
"type": "face_and_direction"
|
|
},
|
|
"tool": "coordsys_v"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "-z",
|
|
"body": 1
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 1,
|
|
"face": 4,
|
|
"generation": {
|
|
"from_call": 4,
|
|
"key": "generation"
|
|
},
|
|
"type": "face_and_direction"
|
|
},
|
|
"tool": "coordsys_v"
|
|
},
|
|
{
|
|
"args": {
|
|
"cs_a": 4,
|
|
"cs_b": 5,
|
|
"flip": true,
|
|
"kind": 0
|
|
},
|
|
"tool": "mate"
|
|
}
|
|
],
|
|
"title": "A block stood on a plate: its bottom-face connector fastened, turned over, to the plate's top-face one"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"angle": {
|
|
"default": 0,
|
|
"description": "In deg.",
|
|
"type": "number"
|
|
},
|
|
"cs_a": {
|
|
"description": "feature index of the fixed CoordSys (mate connector A)",
|
|
"type": "integer"
|
|
},
|
|
"cs_b": {
|
|
"description": "feature index of the CoordSys on the body that moves",
|
|
"type": "integer"
|
|
},
|
|
"flip": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"kind": {
|
|
"default": 0,
|
|
"description": "0=Fastened (rigid), 1=Planar (normal only), 2=Revolute (free rotation about axis), 3=Slider (free translation along axis), 4=Cylindrical (free rotation+translation)",
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"cs_a",
|
|
"cs_b"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "mate",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Mate"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a datum plane as the Plane card does, to sketch or build on as {\"datum\": plane_index}. Offset from a base plane or a face, at an angle about an edge, midway between two faces, tangent to a cylindrical face, through two edges, or coincident with a base plane or a face. Not the `plane` param of other Design commands. Reply: plane_index, name, frame.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"base": "XY",
|
|
"offset": 20,
|
|
"type": "offset"
|
|
},
|
|
"tool": "plane"
|
|
}
|
|
],
|
|
"title": "A datum plane 20 mm above XY"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"kinds": [
|
|
"planar"
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"face_a": {
|
|
"body": 0,
|
|
"face": 4
|
|
},
|
|
"face_b": {
|
|
"body": 0,
|
|
"face": 5
|
|
},
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"type": "midplane"
|
|
},
|
|
"tool": "plane"
|
|
}
|
|
],
|
|
"title": "A datum plane midway between a block's top and bottom faces"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"adjacency": true,
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"angle": 30,
|
|
"edge_a": {
|
|
"body": 0,
|
|
"edge": 3
|
|
},
|
|
"face_a": {
|
|
"body": 0,
|
|
"face": 5
|
|
},
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"type": "angle"
|
|
},
|
|
"tool": "plane"
|
|
}
|
|
],
|
|
"title": "A datum plane turned 30 degrees from a plate's top face about its front edge"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"angle": {
|
|
"default": 0,
|
|
"description": "offset without face_a: tilt about the base axis `axis`; angle: turn about edge_a from the reference plane; tangent: position around the cylinder (deg)",
|
|
"type": "number"
|
|
},
|
|
"axis": {
|
|
"default": 0,
|
|
"description": "offset without face_a: tilt about the base plane's X (0) or Y (1) axis",
|
|
"enum": [
|
|
0,
|
|
1
|
|
],
|
|
"type": "integer"
|
|
},
|
|
"base": {
|
|
"default": "XY",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin, or {\"datum\": i}: what offset, coincident and angle build on without face_a",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"edge_a": {
|
|
"default": null,
|
|
"description": "Edge A, {\"body\": b, \"edge\": e}: angle's hinge; two_edges' first edge",
|
|
"type": [
|
|
"object",
|
|
"null"
|
|
]
|
|
},
|
|
"edge_b": {
|
|
"default": null,
|
|
"description": "Edge B, {\"body\": b, \"edge\": e}: two_edges' second edge",
|
|
"type": [
|
|
"object",
|
|
"null"
|
|
]
|
|
},
|
|
"face_a": {
|
|
"default": null,
|
|
"description": "Face A, {\"body\": b, \"face\": f}: offset or coincident on a face; angle's reference plane; midplane's first face; tangent's cylindrical face",
|
|
"type": [
|
|
"object",
|
|
"null"
|
|
]
|
|
},
|
|
"face_b": {
|
|
"default": null,
|
|
"description": "Face B, {\"body\": b, \"face\": f}: midplane's second face",
|
|
"type": [
|
|
"object",
|
|
"null"
|
|
]
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"default": 20,
|
|
"description": "offset: distance along the normal of base or face_a (mm)",
|
|
"type": "number"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"size": {
|
|
"default": [
|
|
60,
|
|
60
|
|
],
|
|
"description": "[u, v]: the size the plane is drawn at (mm)",
|
|
"type": "array"
|
|
},
|
|
"type": {
|
|
"default": "offset",
|
|
"enum": [
|
|
"offset",
|
|
"angle",
|
|
"midplane",
|
|
"tangent",
|
|
"two_edges",
|
|
"coincident"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "plane",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Plane"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Create a datum axis (reference line): two points, face normal, cylinder centreline, plane intersection, or along edge. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"diameter": 5,
|
|
"through": true
|
|
},
|
|
"tool": "hole"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"kinds": [
|
|
"cylindrical"
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"face": 6,
|
|
"generation": {
|
|
"from_call": 2,
|
|
"key": "generation"
|
|
},
|
|
"type": "cylinder"
|
|
},
|
|
"tool": "axis"
|
|
}
|
|
],
|
|
"title": "The axis of a hole through a plate"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"face": 5,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"type": "face_normal"
|
|
},
|
|
"tool": "axis"
|
|
}
|
|
],
|
|
"title": "The normal through the centre of a plate's top face"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"base": "XZ",
|
|
"offset": 10,
|
|
"type": "offset"
|
|
},
|
|
"tool": "plane"
|
|
},
|
|
{
|
|
"args": {
|
|
"base": "YZ",
|
|
"offset": 10,
|
|
"type": "offset"
|
|
},
|
|
"tool": "plane"
|
|
},
|
|
{
|
|
"args": {
|
|
"plane_a": 0,
|
|
"plane_b": 1,
|
|
"type": "plane_intersection"
|
|
},
|
|
"tool": "axis"
|
|
}
|
|
],
|
|
"title": "The vertical line where two datum planes meet"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "body for face/edge refs",
|
|
"type": "integer"
|
|
},
|
|
"edge": {
|
|
"default": -1,
|
|
"description": "edge id (query_topology) for along_edge",
|
|
"type": "integer"
|
|
},
|
|
"face": {
|
|
"default": -1,
|
|
"description": "face id (query_topology) for face_normal/cylinder",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"p1": {
|
|
"default": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"description": "first point [x,y,z] for two_points",
|
|
"type": "array"
|
|
},
|
|
"p2": {
|
|
"default": [
|
|
0,
|
|
0,
|
|
10
|
|
],
|
|
"description": "second point [x,y,z] for two_points",
|
|
"type": "array"
|
|
},
|
|
"plane_a": {
|
|
"default": -1,
|
|
"description": "first datum plane feature index for plane_intersection",
|
|
"type": "integer"
|
|
},
|
|
"plane_b": {
|
|
"default": -1,
|
|
"description": "second datum plane feature index for plane_intersection",
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"default": "two_points",
|
|
"enum": [
|
|
"two_points",
|
|
"face_normal",
|
|
"cylinder",
|
|
"plane_intersection",
|
|
"along_edge"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "axis",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Axis"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Create a datum coordinate system (origin + orthonormal axes). PointWorld aligns to world; FaceAndDirection uses a face for Z and an edge/hint for X. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"adjacency": true,
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"edge": 3,
|
|
"face": 5,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"type": "face_and_direction"
|
|
},
|
|
"tool": "coordsys_v"
|
|
}
|
|
],
|
|
"title": "A connector on a plate's top face, its x axis along the front edge"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "body for face/edge refs",
|
|
"type": "integer"
|
|
},
|
|
"edge": {
|
|
"default": -1,
|
|
"description": "edge id (query_topology) for X axis hint",
|
|
"type": "integer"
|
|
},
|
|
"face": {
|
|
"default": -1,
|
|
"description": "face id (query_topology) for Z axis",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"point": {
|
|
"default": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"description": "origin [x,y,z] for point_world",
|
|
"type": "array"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"default": "point_world",
|
|
"enum": [
|
|
"point_world",
|
|
"face_and_direction"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"x_hint": {
|
|
"default": [
|
|
1,
|
|
0,
|
|
0
|
|
],
|
|
"description": "fallback X direction hint if no edge given",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "coordsys_v",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Coordinate system"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Create a helical curve, a sweep path for springs, coils and augers. It starts on the plane's x axis at `radius` from its origin. pitch = axial rise per turn. left_handed flips the winding. taper_deg != 0 gives a conical helix. Reply: helix_index, frame, start and tangent (world), to draw a sweep's profile across the curve there.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"height": 20,
|
|
"pitch": 5,
|
|
"radius": 10
|
|
},
|
|
"tool": "helix"
|
|
}
|
|
],
|
|
"title": "A four-turn helix on XY: radius 10 mm, pitch 5 mm, 20 mm tall"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"height": 20,
|
|
"left_handed": true,
|
|
"pitch": 4,
|
|
"radius": 10,
|
|
"taper_deg": 10
|
|
},
|
|
"tool": "helix"
|
|
}
|
|
],
|
|
"title": "A left-handed conical helix tapering 10 degrees"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"height": {
|
|
"default": 20,
|
|
"description": "In mm.",
|
|
"exclusiveMinimum": 0,
|
|
"type": "number"
|
|
},
|
|
"left_handed": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"pitch": {
|
|
"default": 5,
|
|
"description": "In mm.",
|
|
"exclusiveMinimum": 0,
|
|
"type": "number"
|
|
},
|
|
"plane": {
|
|
"default": "XY",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face (origin at its centroid, normal out of the body, x from the world axes). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"radius": {
|
|
"default": 10,
|
|
"description": "In mm.",
|
|
"exclusiveMinimum": 0,
|
|
"type": "number"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"taper_deg": {
|
|
"default": 0,
|
|
"description": "In deg.",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "helix",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Helix"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Project edges of a solid onto a sketch plane, producing a new sketch feature. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"face": 5,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"plane": "XY",
|
|
"source_body": 0
|
|
},
|
|
"tool": "project"
|
|
}
|
|
],
|
|
"title": "A plate's top-face outline projected onto the XY plane as a new sketch"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"adjacency": true,
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"edges": [
|
|
3,
|
|
6
|
|
],
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"plane": "XY",
|
|
"source_body": 0
|
|
},
|
|
"tool": "project"
|
|
}
|
|
],
|
|
"title": "Two top edges of a plate, meeting at a corner, projected onto the XY plane"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"edges": {
|
|
"default": [],
|
|
"description": "global edge ids to project; empty => project the face",
|
|
"type": "array"
|
|
},
|
|
"face": {
|
|
"default": -1,
|
|
"description": "global face id on the source body; when set, all its edges are projected",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plane": {
|
|
"default": "XY",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face (origin at its centroid, normal out of the body, x from the world axes). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"source_body": {
|
|
"default": -1,
|
|
"description": "body owning the edges; -1 = last body",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "project",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Project"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Measure two refs, on one body or two: distance, closest points, angle and the gap between parallel faces. distance is between their representative points (a face's centroid, an edge's middle, an axis's middle); min_distance comes with closest_a and closest_b; angle_deg when both have a direction; parallel_gap across two parallel planar faces.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"kinds": [
|
|
"planar"
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"a": {
|
|
"face": 5
|
|
},
|
|
"b": {
|
|
"face": 4
|
|
},
|
|
"body": 0,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
}
|
|
},
|
|
"tool": "measure"
|
|
}
|
|
],
|
|
"title": "A plate's thickness, between its top and bottom faces"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"boolean": "new",
|
|
"distance": 10,
|
|
"profile": [
|
|
[
|
|
20,
|
|
-5
|
|
],
|
|
[
|
|
30,
|
|
-5
|
|
],
|
|
[
|
|
30,
|
|
5
|
|
],
|
|
[
|
|
20,
|
|
5
|
|
]
|
|
]
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"direction": [
|
|
1,
|
|
0,
|
|
0
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 1,
|
|
"direction": [
|
|
-1,
|
|
0,
|
|
0
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"a": {
|
|
"body": 0,
|
|
"face": 1
|
|
},
|
|
"b": {
|
|
"body": 1,
|
|
"face": 3
|
|
},
|
|
"generation": {
|
|
"from_call": 3,
|
|
"key": "generation"
|
|
}
|
|
},
|
|
"tool": "measure"
|
|
}
|
|
],
|
|
"title": "The 10 mm gap between two blocks' facing sides"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"a": {
|
|
"description": "{\"face\": f}, {\"edge\": e} or {\"point\": [x, y, z]}, with an optional \"body\"; {\"face\": f, \"axis\": true} is a cylindrical face's axis over its length",
|
|
"type": "object"
|
|
},
|
|
"b": {
|
|
"description": "as a",
|
|
"type": "object"
|
|
},
|
|
"body": {
|
|
"default": 0,
|
|
"description": "the body of a ref that names none",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"a",
|
|
"b"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "measure",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Measure"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Volume / surface area / centre of mass / inertia tensor of a body.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0
|
|
},
|
|
"tool": "mass_props"
|
|
}
|
|
],
|
|
"title": "The volume and centre of mass of a 20 x 20 x 5 mm plate"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": 0,
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "mass_props",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Volume and area"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Solid bodies that overlap, as {body_a, body_b, volume}. Read-only; bodies that merely touch enclose no volume and are not reported.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"boolean": "new",
|
|
"distance": 20,
|
|
"height": 10,
|
|
"width": 10
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"silent": true
|
|
},
|
|
"tool": "interference"
|
|
}
|
|
],
|
|
"title": "A post standing in a block: the two overlap"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"min_volume": {
|
|
"default": 1e-06,
|
|
"description": "overlap volume above which a pair counts as interfering (mm^3)",
|
|
"type": "number"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "interference",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Interference"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Bind a feature's numeric field to an expression over the design variables, or unbind it with an empty expr. Unbound, the field keeps its value. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"expr": "8",
|
|
"name": "t"
|
|
},
|
|
"tool": "set_variable"
|
|
},
|
|
{
|
|
"args": {
|
|
"expr": "t",
|
|
"feature": 1,
|
|
"field": "distance"
|
|
},
|
|
"tool": "edit_feature"
|
|
}
|
|
],
|
|
"title": "A plate's thickness bound to the variable t"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"expr": "8",
|
|
"name": "t"
|
|
},
|
|
"tool": "set_variable"
|
|
},
|
|
{
|
|
"args": {
|
|
"expr": "t",
|
|
"feature": 1,
|
|
"field": "distance"
|
|
},
|
|
"tool": "edit_feature"
|
|
},
|
|
{
|
|
"args": {
|
|
"expr": "",
|
|
"feature": 1,
|
|
"field": "distance"
|
|
},
|
|
"tool": "edit_feature"
|
|
}
|
|
],
|
|
"title": "A plate's thickness unbound, keeping the 8 mm the binding gave it"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"expr": {
|
|
"description": "\"\" removes the binding",
|
|
"type": "string"
|
|
},
|
|
"feature": {
|
|
"description": "feature index (describe_scene)",
|
|
"type": "integer"
|
|
},
|
|
"field": {
|
|
"description": "a numeric field of describe_feature's params, e.g. width, distance, hole_diameter, thread_diameter",
|
|
"type": "string"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"feature",
|
|
"field",
|
|
"expr"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "edit_feature",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Edit"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Give this feature a name you will recognise in the tree (a body takes its name from the feature that makes it). It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "rename",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Rename…"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Remove faces from a solid, healing the gap via OCCT defeaturing. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"diameter": 5,
|
|
"through": true
|
|
},
|
|
"tool": "hole"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"kinds": [
|
|
"cylindrical"
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"faces": [
|
|
6
|
|
],
|
|
"generation": {
|
|
"from_call": 2,
|
|
"key": "generation"
|
|
}
|
|
},
|
|
"tool": "delete_face"
|
|
}
|
|
],
|
|
"title": "A plate's bore filled in by deleting its cylindrical face"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"if": {
|
|
"minProperties": 1
|
|
},
|
|
"properties": {
|
|
"body": {
|
|
"default": -1,
|
|
"description": "target body; omit for the last body",
|
|
"type": "integer"
|
|
},
|
|
"faces": {
|
|
"description": "global face ids to delete",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"silent": {
|
|
"description": "true runs the tool with the other arguments and opens nothing. A call with no arguments does what the Design tab's menu row does, as a person's pick does. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"faces"
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "delete_face",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Delete Face"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Set the selected body's display color. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "colour",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Color"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Frame the selection in the view, keeping the view direction. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "zoom_to",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Zoom to selection"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete what is selected. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "delete",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Delete"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete this whole body — removes the feature it was made from. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "delete_body",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Delete Body"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Line — click start, then end. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_line_t",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Line"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click points; click the first point to close the loop, right-click to end it open. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_polyline",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Polyline"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Rectangle — click two opposite corners. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_rect",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Corner rectangle"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click center, then a corner. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_rect_center",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Center rectangle"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click two corners of one edge, then a point for the width. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_rect_oblique",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Oblique rectangle"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click two opposite corners, then a point for the corner radius. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_rect_rounded",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Rounded rectangle"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Circle — click center, then radius. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_circle",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Center circle"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click two ends of the diameter. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_circle_2pt",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "2-point circle"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click three points on the circle. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_circle_3pt",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "3-point circle"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Arc — click start, end, then a point. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_arc_t",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "3-point arc"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click start (on the last entity) then end. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_arc_tangent",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Tangent arc"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click center, then start, then a point for the end angle. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_arc_center",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Center-point arc"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Slot — two centerline ends, then the width. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_slot",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Slot"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click center, start, end, then a point for the width. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_slot_arc",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Arc slot"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Ellipse — center, major end, minor point. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_ellipse",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Ellipse"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click center, major-axis end, minor point, then arc start and end. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_ellipse_arc",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Elliptical arc"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Spline — click control points. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_spline",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Spline"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Triangle — click center, then a vertex. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_poly_3",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Triangle"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Square — click center, then a vertex. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_poly_4",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Square"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Pentagon — click center, then a vertex. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_poly_5",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Pentagon"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Hexagon — click center, then a vertex. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_polygon",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Hexagon"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Octagon — click center, then a vertex. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_poly_8",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Octagon"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Dodecagon — click center, then a vertex. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_poly_12",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Dodecagon"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Measure the polygon to its corners (inscribed). It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_poly_inscribed",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Inscribed"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Measure the polygon to its flats (circumscribed). It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_poly_circumscribed",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Circumscribed"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Point — click to place. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_point_t",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Point"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Type text; it becomes a Text feature on this sketch's plane, editable later. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_text",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Text"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Import an SVG outline into this sketch as editable lines. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_svg",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "SVG"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Offset — pick an entity, drag the distance. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_offset",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Offset"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Trim — click a segment to trim it. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_trim",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Trim"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Fillet — pick two lines, set the radius. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_fillet",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Fillet"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Chamfer — pick two lines, set the distance. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_chamfer",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Chamfer"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Pick entities, drag the spacing handle, click the count; click empty to apply. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_array",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Linear array"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Pick entities, drag the sweep handle, click the count; click empty to apply. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_array_polar",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Polar array"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Mirror — pick axis, then entities. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_mirror",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Mirror"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Pick entities, then drag the handle or click the distance; click empty to apply. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_move",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Move"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Pick entities, then drag around the pivot or click the angle; click empty to apply. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_rotate",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Rotate"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Pick entities, then drag the handle or click the factor; click empty to apply. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_scale",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Scale"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Dimension — click 2 points or an entity. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_dimension",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Dimension"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Constrain the selected sketch entities to each other. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_constrain",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Constrain"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add dimensions and relations (coincident, tangent, parallel...) to the selected sketch. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only outside a sketch (sketch_commit or sketch_cancel ends one; while the tab constrains a sketch, its Confirm or Cancel button ends that).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "constrain",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Constrain sketch"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Toggle construction: geometry that guides but is never built. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_construct",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Construction"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Extend — click a line/arc to extend it. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_extend",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Extend"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete the selected sketch entities. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_delete",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Delete"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Type the length of this line. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_length",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Length…"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Type the radius of this arc, or the diameter of this circle. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_radius",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Radius / diameter…"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Type the angle between two lines, or the distance between the two picks. It takes no arguments and does what the Design tab's right-click menu row does, as a person's pick does: open a tool, start a sketch tool, act at once, or tell the person why it cannot. The reply's status is what the tab's status line shows then. It runs only in an open sketch (sketch_begin opens one).",
|
|
"destructive": false,
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": true,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"key": "sk_angdist",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Angle / distance…"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "The Design document: features, variables with their values, bodies, undo_depth / redo_depth and generation. A feature's bound lists the fields an expression drives; a body gives bbox, source_feature, visible, color and moved (by the Move gizmo). selection is what the right-click menu would be built for: its kind, the selection_kind a tool's opening reply gives, and its id (none, face_planar, body_solid, sk_line and the like).",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {},
|
|
"tool": "describe_scene"
|
|
}
|
|
],
|
|
"title": "An empty design"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "describe_scene"
|
|
}
|
|
],
|
|
"title": "A plate's two features and its body"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "describe_scene",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Describe scene"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "One feature as its card shows it: params, the editable ones with their ranges, expr, refs, used_by and bodies_made. expr holds its bindings, and refs the feature and body indices and face and edge ids it uses; a sketch adds its plane, entities and constraints (angles in degrees). Imported Text or SVG art shows its regions (a count), region_loops (how many closed loops each region has, its outer loop plus its holes; counts, not the loops' geometry) and region_areas (each region's filled area in mm² as placed, its outer loop less its holes).",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"feature": 1
|
|
},
|
|
"tool": "describe_feature"
|
|
}
|
|
],
|
|
"title": "A plate's extrude, with the fields its card edits"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"feature": 0
|
|
},
|
|
"tool": "describe_feature"
|
|
}
|
|
],
|
|
"title": "A committed sketch's plane, entities and constraints"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"feature": {
|
|
"description": "feature index (describe_scene)",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"feature"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "describe_feature",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Describe feature"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "A body's faces and edges, with their kinds and geometry, narrowed by face and edge filters. Faces give kind, area, centroid, normal, and a cylinder's, cone's, sphere's or torus's numbers; edges give kind, length, ends, a circle's centre and radius. Face filters (kinds, direction, at_extreme) and edge filters (edge_kinds, direction, convex) narrow their own list; when filters are given, a list none of its filters names is empty, or with adjacency holds the neighbours of the other list. Reply: face_count and edge_count of the body, faces_total and edges_total after filtering, next_offset while a page has more, generation.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
}
|
|
],
|
|
"title": "Every face and edge of a 20 x 20 x 5 mm plate"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
}
|
|
],
|
|
"title": "A plate's top face"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"convex": true,
|
|
"direction": [
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"edge_kinds": [
|
|
"line"
|
|
]
|
|
},
|
|
"tool": "query_topology"
|
|
}
|
|
],
|
|
"title": "A plate's vertical outside corners, the edges a fillet rounds"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"adjacency": {
|
|
"default": false,
|
|
"description": "faces list their edges; edges list their faces (one for a seam) and say convex true or false, or tangent where the faces meet smoothly",
|
|
"type": "boolean"
|
|
},
|
|
"at_extreme": {
|
|
"default": null,
|
|
"description": "faces whose centroid lies on that side of the body's bounding box, e.g. +z for the top face",
|
|
"enum": [
|
|
"+x",
|
|
"-x",
|
|
"+y",
|
|
"-y",
|
|
"+z",
|
|
"-z",
|
|
null
|
|
],
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"body": {
|
|
"default": 0,
|
|
"type": "integer"
|
|
},
|
|
"convex": {
|
|
"default": null,
|
|
"description": "edges where two faces meet in an outside (true) or inside (false) corner; implies adjacency",
|
|
"type": [
|
|
"boolean",
|
|
"null"
|
|
]
|
|
},
|
|
"direction": {
|
|
"default": null,
|
|
"description": "[x, y, z]: planar faces whose outward normal points this way, and line edges along it either way, within 1 degree",
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
]
|
|
},
|
|
"edge_kinds": {
|
|
"default": null,
|
|
"description": "edge kinds to list: line, circle, ellipse, bspline, bezier, other",
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
]
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"kinds": {
|
|
"default": null,
|
|
"description": "face kinds to list: planar, cylindrical, conical, spherical, toroidal, bezier, bspline, revolution, extrusion, offset, other",
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
]
|
|
},
|
|
"limit": {
|
|
"default": null,
|
|
"description": "page size of both lists; omit for all",
|
|
"minimum": 1,
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"offset": {
|
|
"default": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "query_topology",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Query topology"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Cross-section of a body by a base plane at an offset (sections-as-evidence). Returns ordered world contours, each flagged closed/open.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"offset": 2.5,
|
|
"plane": "XY"
|
|
},
|
|
"tool": "slice_body"
|
|
}
|
|
],
|
|
"title": "A plate's cross-section halfway up"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 4,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"sketch": 0
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"offset": 2.5,
|
|
"plane": "XY"
|
|
},
|
|
"tool": "slice_body"
|
|
}
|
|
],
|
|
"title": "The two contours through a plate with a bore"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": 0,
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"plane": {
|
|
"default": "XY",
|
|
"enum": [
|
|
"XY",
|
|
"XZ",
|
|
"YZ"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "slice_body",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Slice body"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Compare a body with a reference: volume, bbox, centroid and surface deviation (the RE acceptance metric). The reference is {step:path|body:id}; the surface deviation is max/mean/rms in mm.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"boolean": "new",
|
|
"distance": 6,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"reference": {
|
|
"body": 1
|
|
}
|
|
},
|
|
"tool": "validate_against"
|
|
}
|
|
],
|
|
"title": "A 5 mm plate against a 6 mm one"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"reference": {
|
|
"step": "/path/to/reference.step"
|
|
}
|
|
},
|
|
"tool": "validate_against"
|
|
}
|
|
],
|
|
"needs": "a STEP file of the reference part",
|
|
"title": "A plate against a reference part's STEP file"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"default": 0,
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"reference": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"reference"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "validate_against",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Validate against"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "The open sketch, or a committed one: entities, constraint count and its loops. The loops are closed_loops {index, entities, holes, area}, open_ends, defects, buildable. The open sketch adds dof, the armed tool, the selection (entity indices) and selected_constraint, the index of the constraint picked by its badge or the Constraints list, null for none; a committed one adds its name and plane.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 4,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_describe"
|
|
}
|
|
],
|
|
"title": "The open sketch: a rectangle with a circle inside it as a hole"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"sketch": 0
|
|
},
|
|
"tool": "sketch_describe"
|
|
}
|
|
],
|
|
"title": "A committed sketch's plane, entities and loop"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"sketch": {
|
|
"default": null,
|
|
"description": "a committed Sketch feature's index; omit for the open sketch",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_describe",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Sketch describe"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "The open sketch's loops (closed_loops, open_ends, defects, buildable) and dof.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
0,
|
|
0
|
|
],
|
|
"p1": [
|
|
20,
|
|
0
|
|
],
|
|
"type": "line"
|
|
},
|
|
{
|
|
"p0": [
|
|
20,
|
|
0.05
|
|
],
|
|
"p1": [
|
|
20,
|
|
10
|
|
],
|
|
"type": "line"
|
|
},
|
|
{
|
|
"p0": [
|
|
20,
|
|
10
|
|
],
|
|
"p1": [
|
|
0,
|
|
0
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_validate"
|
|
}
|
|
],
|
|
"title": "A triangle with a 0.05 mm gap: two open ends, not buildable"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"tolerance": {
|
|
"default": 0.001,
|
|
"description": "reported back (mm)",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_validate",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Sketch validate"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "The constraints of the open sketch, or of a committed one: index, type, refs and value. A ref is {entity, role} for a point and {entity} for a whole entity; value is mm, or degrees for an angle. Reply: scope (live or committed), items, and dof and solve_ok for the open sketch.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_constraints"
|
|
}
|
|
],
|
|
"title": "The coincident, horizontal and vertical constraints a drawn rectangle gets"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"sketch": 0
|
|
},
|
|
"tool": "sketch_constraints"
|
|
}
|
|
],
|
|
"title": "A committed sketch's constraints"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"sketch": {
|
|
"default": null,
|
|
"description": "a committed Sketch feature's index; omit for the open sketch",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_constraints",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Sketch constraints"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Import a STEP file as native B-rep bodies (the reference part to measure). A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"path": "/path/to/part.step"
|
|
},
|
|
"tool": "import_step"
|
|
}
|
|
],
|
|
"needs": "a STEP file of the part",
|
|
"title": "A part read from a STEP file as a body"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"path": {
|
|
"description": "absolute path",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "import_step",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Import step"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Convert a triangle mesh (STL/OBJ) into an editable B-rep body. Reports whether the result is a real solid or an open shell, and why. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"path": "/path/to/part.stl"
|
|
},
|
|
"tool": "import_mesh"
|
|
}
|
|
],
|
|
"needs": "an STL or OBJ mesh file",
|
|
"title": "An STL mesh turned into an editable body"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"merge_angle_deg": {
|
|
"default": 5.0,
|
|
"type": "number"
|
|
},
|
|
"path": {
|
|
"description": "absolute path",
|
|
"type": "string"
|
|
},
|
|
"tolerance": {
|
|
"default": 0.01,
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "import_mesh",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Import mesh"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Drill a hole with optional counterbore (style=1) or countersink (style=2) at (x,y) or `at` on a plane. Reply as hole.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 30,
|
|
"width": 30
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"cbore_depth": 6,
|
|
"cbore_diameter": 11,
|
|
"diameter": 6.6,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"plane": {
|
|
"body": 0,
|
|
"face": 5
|
|
},
|
|
"style": 1
|
|
},
|
|
"tool": "hole_styled"
|
|
}
|
|
],
|
|
"title": "A counterbored hole for an M6 cap screw through a 10 mm block's top face"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"csink_angle": 90,
|
|
"csink_diameter": 9,
|
|
"diameter": 4.5,
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"plane": {
|
|
"body": 0,
|
|
"face": 5
|
|
},
|
|
"style": 2
|
|
},
|
|
"tool": "hole_styled"
|
|
}
|
|
],
|
|
"title": "A countersunk hole through a plate's top face"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"at": {
|
|
"default": null,
|
|
"description": "instead of x and y: a world point [x, y, z], projected onto the plane along its normal (off_plane says how far), or {\"body\": b, \"face\": f} a cylindrical face or {\"body\": b, \"edge\": e} a circular edge whose axis the hole shares. A world point moves with modeling_origin; x and y replay on any printer",
|
|
"type": [
|
|
"array",
|
|
"object",
|
|
"null"
|
|
]
|
|
},
|
|
"body": {
|
|
"default": -1,
|
|
"description": "the body to drill; omit for a face plane's body, else the last body",
|
|
"type": "integer"
|
|
},
|
|
"cbore_depth": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"cbore_diameter": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"csink_angle": {
|
|
"default": 90,
|
|
"description": "In deg.",
|
|
"type": "number"
|
|
},
|
|
"csink_diameter": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"depth": {
|
|
"default": 10,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"diameter": {
|
|
"default": 5,
|
|
"description": "In mm.",
|
|
"exclusiveMinimum": 0,
|
|
"type": "number"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plane": {
|
|
"default": "XY",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face to drill into that body (origin at its centroid, normal into the body, x along its longest edge). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"standard": {
|
|
"default": "",
|
|
"description": "provenance designation, e.g. M6",
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"default": 0,
|
|
"description": "0=simple, 1=counterbore, 2=countersink",
|
|
"type": "integer"
|
|
},
|
|
"through": {
|
|
"default": true,
|
|
"type": "boolean"
|
|
},
|
|
"x": {
|
|
"default": 0,
|
|
"description": "offset in the plane's frame from its origin, NOT world (mm)",
|
|
"type": "number"
|
|
},
|
|
"y": {
|
|
"default": 0,
|
|
"description": "offset in the plane's frame from its origin, NOT world (mm)",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "hole_styled",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Hole styled"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Drill a standard clearance hole (ISO 273 / ANSI) at (x,y) or `at` on a plane. style: 0=simple, 1=counterbore, 2=countersink. Reply as hole.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"designation": "M5",
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"plane": {
|
|
"body": 0,
|
|
"face": 5
|
|
}
|
|
},
|
|
"tool": "hole_standard"
|
|
}
|
|
],
|
|
"title": "An M5 clearance hole through a plate's top face"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 10,
|
|
"height": 30,
|
|
"width": 30
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"designation": "M6",
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"plane": {
|
|
"body": 0,
|
|
"face": 5
|
|
},
|
|
"style": 1
|
|
},
|
|
"tool": "hole_standard"
|
|
}
|
|
],
|
|
"title": "An M6 counterbored clearance hole through a 10 mm block's top face"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"at": {
|
|
"default": null,
|
|
"description": "instead of x and y: a world point [x, y, z], projected onto the plane along its normal (off_plane says how far), or {\"body\": b, \"face\": f} a cylindrical face or {\"body\": b, \"edge\": e} a circular edge whose axis the hole shares. A world point moves with modeling_origin; x and y replay on any printer",
|
|
"type": [
|
|
"array",
|
|
"object",
|
|
"null"
|
|
]
|
|
},
|
|
"body": {
|
|
"default": -1,
|
|
"description": "the body to drill; omit for a face plane's body, else the last body",
|
|
"type": "integer"
|
|
},
|
|
"depth": {
|
|
"default": 10,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"designation": {
|
|
"description": "e.g. M6, 1/4-20",
|
|
"type": "string"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plane": {
|
|
"default": "XY",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face to drill into that body (origin at its centroid, normal into the body, x along its longest edge). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"style": {
|
|
"default": 0,
|
|
"type": "integer"
|
|
},
|
|
"through": {
|
|
"default": true,
|
|
"type": "boolean"
|
|
},
|
|
"x": {
|
|
"default": 0,
|
|
"description": "offset in the plane's frame from its origin, NOT world (mm)",
|
|
"type": "number"
|
|
},
|
|
"y": {
|
|
"default": 0,
|
|
"description": "offset in the plane's frame from its origin, NOT world (mm)",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"designation"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "hole_standard",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Hole standard"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Build a cubic-Bezier G1 bridge (BSpline) between two sketch-entity endpoints within a sketch feature. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
-20,
|
|
0
|
|
],
|
|
"p1": [
|
|
-5,
|
|
0
|
|
],
|
|
"type": "line"
|
|
},
|
|
{
|
|
"p0": [
|
|
5,
|
|
10
|
|
],
|
|
"p1": [
|
|
20,
|
|
10
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"end_a": 1,
|
|
"end_b": 0,
|
|
"ent_a": 0,
|
|
"ent_b": 1,
|
|
"sketch": 0
|
|
},
|
|
"tool": "bridge"
|
|
}
|
|
],
|
|
"title": "A smooth curve joining the facing ends of two lines in a committed sketch"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"end_a": {
|
|
"default": 1,
|
|
"description": "0 = start/p0 side, 1 = end/p1 side",
|
|
"enum": [
|
|
0,
|
|
1
|
|
],
|
|
"type": "integer"
|
|
},
|
|
"end_b": {
|
|
"default": 0,
|
|
"description": "0 = start/p0 side, 1 = end/p1 side",
|
|
"enum": [
|
|
0,
|
|
1
|
|
],
|
|
"type": "integer"
|
|
},
|
|
"ent_a": {
|
|
"description": "first entity index within the sketch",
|
|
"type": "integer"
|
|
},
|
|
"ent_b": {
|
|
"description": "second entity index within the sketch",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"sketch": {
|
|
"description": "sketch feature index",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"sketch",
|
|
"ent_a",
|
|
"ent_b"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "bridge",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Bridge"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Set a design variable to an expression, or remove it with an empty expr. Feature fields bound with edit_feature follow it. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"expr": "20",
|
|
"name": "w"
|
|
},
|
|
"tool": "set_variable"
|
|
}
|
|
],
|
|
"title": "A variable w of 20"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"expr": "20",
|
|
"name": "w"
|
|
},
|
|
"tool": "set_variable"
|
|
},
|
|
{
|
|
"args": {
|
|
"expr": "w / 2 + 3",
|
|
"name": "h"
|
|
},
|
|
"tool": "set_variable"
|
|
}
|
|
],
|
|
"title": "A variable worked out from another: h = w / 2 + 3, which is 13"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"expr": "20",
|
|
"name": "w"
|
|
},
|
|
"tool": "set_variable"
|
|
},
|
|
{
|
|
"args": {
|
|
"expr": "",
|
|
"name": "w"
|
|
},
|
|
"tool": "set_variable"
|
|
}
|
|
],
|
|
"title": "A variable removed with an empty expression"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"expr": {
|
|
"description": "e.g. \"20\" or \"width / 2 + 3\"; \"\" removes the variable",
|
|
"type": "string"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"expr"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "set_variable",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Set variable"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Change a feature's editable fields as its card's Confirm does when editing: one undo step and a rebuild. A field an expression drives is refused. Reply: changed {field: [old, new]}.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"feature": 1,
|
|
"fields": {
|
|
"distance": 15
|
|
}
|
|
},
|
|
"tool": "set_feature"
|
|
}
|
|
],
|
|
"title": "A plate made 15 mm thick"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"diameter": 5,
|
|
"through": true
|
|
},
|
|
"tool": "hole"
|
|
},
|
|
{
|
|
"args": {
|
|
"feature": 2,
|
|
"fields": {
|
|
"hole_diameter": 8
|
|
}
|
|
},
|
|
"tool": "set_feature"
|
|
}
|
|
],
|
|
"title": "A plate's hole widened from 5 to 8 mm"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"feature": {
|
|
"description": "feature index (describe_scene)",
|
|
"type": "integer"
|
|
},
|
|
"fields": {
|
|
"description": "{field: value} from describe_feature's editable, e.g. {\"distance\": 15}: numbers within its ranges; mode new|union|subtract|intersect; extrude_end blind|symmetric|two_sided|through_all; shape rectangle|circle; xf_* vectors [x, y, z]",
|
|
"type": "object"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"feature",
|
|
"fields"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "set_feature",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Set feature"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete a feature as its tree row's Delete does; deleting a sketch also deletes the features built on it. One undo step. Later indices shift. Reply: removed (how many features went), features, bodies.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"diameter": 5,
|
|
"through": true
|
|
},
|
|
"tool": "hole"
|
|
},
|
|
{
|
|
"args": {
|
|
"feature": 2
|
|
},
|
|
"tool": "feature_delete"
|
|
}
|
|
],
|
|
"title": "A plate's hole deleted"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"sketch": 0
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"feature": 0
|
|
},
|
|
"tool": "feature_delete"
|
|
}
|
|
],
|
|
"title": "A committed sketch deleted, and the extrude built on it with it"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"feature": {
|
|
"description": "feature index (describe_scene)",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"feature"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "feature_delete",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Feature delete"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Move a feature one place up or down the history, as Move up / Move down do. A feature cannot come before one it uses. One undo step. Reply: feature (its new index), from.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"base": "XY",
|
|
"offset": 20,
|
|
"type": "offset"
|
|
},
|
|
"tool": "plane"
|
|
},
|
|
{
|
|
"args": {
|
|
"delta": -1,
|
|
"feature": 2
|
|
},
|
|
"tool": "feature_move"
|
|
}
|
|
],
|
|
"title": "A datum plane moved up the history, above the extrude before it"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"delta": {
|
|
"description": "-1 up, 1 down",
|
|
"enum": [
|
|
-1,
|
|
1
|
|
],
|
|
"type": "integer"
|
|
},
|
|
"feature": {
|
|
"description": "feature index (describe_scene)",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"feature",
|
|
"delta"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "feature_move",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Feature move"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Show or hide (suppress) a feature as its row's eye does. A hidden feature is left out of the rebuild and bodies may renumber. One undo step, none when it already was. Reply: enabled, changed, bodies.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"diameter": 5,
|
|
"through": true
|
|
},
|
|
"tool": "hole"
|
|
},
|
|
{
|
|
"args": {
|
|
"enabled": false,
|
|
"feature": 2
|
|
},
|
|
"tool": "feature_set_enabled"
|
|
}
|
|
],
|
|
"title": "A plate's hole hidden: the plate rebuilds without it"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"diameter": 5,
|
|
"through": true
|
|
},
|
|
"tool": "hole"
|
|
},
|
|
{
|
|
"args": {
|
|
"enabled": false,
|
|
"feature": 2
|
|
},
|
|
"tool": "feature_set_enabled"
|
|
},
|
|
{
|
|
"args": {
|
|
"enabled": true,
|
|
"feature": 2
|
|
},
|
|
"tool": "feature_set_enabled"
|
|
}
|
|
],
|
|
"title": "A hidden hole shown again"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"feature": {
|
|
"description": "feature index (describe_scene)",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"feature",
|
|
"enabled"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "feature_set_enabled",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Feature set enabled"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Rename a feature as F2 on its row does. Its own undo step. Reply: name, changed.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"feature": 1,
|
|
"name": "Base plate"
|
|
},
|
|
"tool": "feature_rename"
|
|
}
|
|
],
|
|
"title": "A plate's extrude renamed Base plate"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"feature": {
|
|
"description": "feature index (describe_scene)",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"description": "trimmed; not empty",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"feature",
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "feature_rename",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Feature rename"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Rename, colour or show/hide a body, as its Bodies row and the Color button do; give one or more. Not in the undo history. The name and colour are saved with the project and the name names its committed object; visibility is view state, and commit leaves hidden bodies out. Reply: name, color, visible.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 0,
|
|
"color": "#3366CC",
|
|
"name": "Base"
|
|
},
|
|
"tool": "body_set"
|
|
}
|
|
],
|
|
"title": "A plate's body named Base and coloured blue"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"boolean": "new",
|
|
"distance": 10,
|
|
"profile": [
|
|
[
|
|
20,
|
|
-5
|
|
],
|
|
[
|
|
30,
|
|
-5
|
|
],
|
|
[
|
|
30,
|
|
5
|
|
],
|
|
[
|
|
20,
|
|
5
|
|
]
|
|
]
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 1,
|
|
"visible": false
|
|
},
|
|
"tool": "body_set"
|
|
}
|
|
],
|
|
"title": "The second of two bodies hidden"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"description": "body index (describe_scene)",
|
|
"type": "integer"
|
|
},
|
|
"color": {
|
|
"default": null,
|
|
"description": "\"#RRGGBB\"",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"default": null,
|
|
"description": "trimmed; not empty",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"visible": {
|
|
"default": null,
|
|
"type": [
|
|
"boolean",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"body"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "body_set",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Body set"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete a body as its row's Delete does: the feature that made it goes, which can take other features and bodies with it. One undo step. Reply: deleted_feature {index, type, name}, removed, features, bodies.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"boolean": "new",
|
|
"distance": 10,
|
|
"profile": [
|
|
[
|
|
20,
|
|
-5
|
|
],
|
|
[
|
|
30,
|
|
-5
|
|
],
|
|
[
|
|
30,
|
|
5
|
|
],
|
|
[
|
|
20,
|
|
5
|
|
]
|
|
]
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"body": 1
|
|
},
|
|
"tool": "body_delete"
|
|
}
|
|
],
|
|
"title": "The second of two bodies deleted, with the extrude that made it"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"body": {
|
|
"description": "body index (describe_scene)",
|
|
"type": "integer"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"body"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "body_delete",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Body delete"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Commit to Plate: send the visible bodies to Prepare at their Move-gizmo positions and show Prepare. It is one Prepare undo step. A lone body is sent even when hidden. A body named in the Bodies list or with body_set names its object or part. Reply: objects (list_objects index after replace, name, parts: how many), bodies_sent, bodies_hidden, replaced.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "commit"
|
|
}
|
|
],
|
|
"title": "A plate sent to Prepare as one object"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"boolean": "new",
|
|
"distance": 10,
|
|
"profile": [
|
|
[
|
|
20,
|
|
-5
|
|
],
|
|
[
|
|
30,
|
|
-5
|
|
],
|
|
[
|
|
30,
|
|
5
|
|
],
|
|
[
|
|
20,
|
|
5
|
|
]
|
|
]
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"mode": "bodies"
|
|
},
|
|
"tool": "commit"
|
|
}
|
|
],
|
|
"title": "Two bodies sent to Prepare as an object each"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"mode": {
|
|
"default": "",
|
|
"description": "assembly: one object with a part per body; bodies: an object per body. Default: the Commit button's mode, which this leaves as it is.",
|
|
"enum": [
|
|
"assembly",
|
|
"bodies"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"replace": {
|
|
"default": [],
|
|
"description": "list_objects indices to delete in the same undo step, such as an earlier commit. Their settings, modifiers and paint go with them.",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "commit",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Commit"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "New Design: erase every feature, body and variable and the Design undo history. Committed objects stay on the plate. Reply: cleared {features, bodies, variables}.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"discard_changes": true
|
|
},
|
|
"tool": "new_design"
|
|
}
|
|
],
|
|
"title": "A plate's design erased"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {},
|
|
"tool": "new_design"
|
|
}
|
|
],
|
|
"title": "An empty design started over, which needs no discard_changes"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"discard_changes": {
|
|
"default": false,
|
|
"description": "needed when the design is not empty",
|
|
"type": "boolean"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "new_design",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "New design"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Export STEP: write every body to a file as native B-rep, at its Move-gizmo position. Reply: path, bytes, bodies, moved_bodies.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"path": "/path/to/part.step"
|
|
},
|
|
"tool": "export_step"
|
|
}
|
|
],
|
|
"needs": "a folder to write the STEP file in",
|
|
"title": "A plate written to a STEP file"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"overwrite": {
|
|
"default": false,
|
|
"description": "replace an existing file",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "absolute path; its directory must exist",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "export_step",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Export step"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Open a sketch session on a plane, as picking a plane or face for Sketch does. Sketch points are [x, y] in that plane's frame (mm), from its origin: modeling_origin for a base plane. Reply: frame.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
}
|
|
],
|
|
"title": "A sketch on the XY plane"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"distance": 5,
|
|
"height": 20,
|
|
"width": 20
|
|
},
|
|
"tool": "extrude"
|
|
},
|
|
{
|
|
"args": {
|
|
"at_extreme": "+z",
|
|
"body": 0
|
|
},
|
|
"tool": "query_topology"
|
|
},
|
|
{
|
|
"args": {
|
|
"generation": {
|
|
"from_call": 1,
|
|
"key": "generation"
|
|
},
|
|
"plane": {
|
|
"body": 0,
|
|
"face": 5
|
|
}
|
|
},
|
|
"tool": "sketch_begin"
|
|
}
|
|
],
|
|
"title": "A sketch on a plate's top face"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"base": "XY",
|
|
"offset": 20,
|
|
"type": "offset"
|
|
},
|
|
"tool": "plane"
|
|
},
|
|
{
|
|
"args": {
|
|
"plane": {
|
|
"datum": 0
|
|
}
|
|
},
|
|
"tool": "sketch_begin"
|
|
}
|
|
],
|
|
"title": "A sketch on a datum plane 20 mm above XY"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"plane": {
|
|
"default": "XY",
|
|
"description": "\"XY\", \"XZ\" or \"YZ\" through modeling_origin; {\"datum\": i}, a Plane feature; or {\"body\": b, \"face\": f}, a planar face (origin at its centroid, normal out of the body, x from the world axes). The reply's frame gives the axes.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_begin",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch begin"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Commit the open sketch as a Sketch feature, as the sketch's Confirm does, and leave sketch mode. An empty sketch is refused and stays open. Reply: sketch_index, name, features (the new count) and its loops (closed_loops with the index extrude's loop takes, open_ends, defects, buildable).",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 4,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_commit"
|
|
}
|
|
],
|
|
"title": "A rectangle around a circle, committed as a sketch of two loops"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_commit",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch commit"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Discard the open sketch and leave sketch mode.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_cancel"
|
|
}
|
|
],
|
|
"title": "Discard a sketch with a rectangle drawn"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_cancel",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch cancel"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add entities or shapes to the open sketch: `entities` (a list), or one item's fields beside `type`, or `rect`. Entities: line {p0, p1}, circle {center, radius}, arc {center, radius, start_angle, end_angle}, point {p}. Shapes, built as their drawing tools build them: polygon {center, sides, radius (to a vertex) or across_flats, angle (of that vertex, or of the first edge's midpoint)}, slot {c0, c1, width}, ellipse {center, radius (semi-major), rminor, rotation}, ellipse_arc {the ellipse's fields, start_angle, end_angle: parametric, counter-clockwise}, spline {ctrl: 2 or more poles}. Each item of entities may carry its own construction: true; the top-level construction applies only to rect and to the single-type form. Points are [x, y] in the sketch plane (mm); angles are radians, or degrees as start_angle_deg and the like. A polygon is lines; its side count is not kept once committed. Reply: first_index, added, shapes [{first, count}] per item, entities, dof.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
}
|
|
],
|
|
"title": "A 30 x 20 mm rectangle"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 12,
|
|
"type": "circle"
|
|
},
|
|
{
|
|
"across_flats": 10,
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"sides": 6,
|
|
"type": "polygon"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
}
|
|
],
|
|
"title": "A hexagon 10 mm across flats inside a circle"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"end_angle_deg": 90,
|
|
"radius": 20,
|
|
"start_angle_deg": 0,
|
|
"type": "arc"
|
|
},
|
|
{
|
|
"c0": [
|
|
-10,
|
|
-20
|
|
],
|
|
"c1": [
|
|
10,
|
|
-20
|
|
],
|
|
"type": "slot",
|
|
"width": 6
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
}
|
|
],
|
|
"title": "A quarter arc given in degrees, and a slot"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"construction": {
|
|
"default": false,
|
|
"description": "for rect and the single-type form; an item of entities carries its own",
|
|
"type": "boolean"
|
|
},
|
|
"end_angle": {
|
|
"default": 0,
|
|
"description": "In rad.",
|
|
"type": "number"
|
|
},
|
|
"entities": {
|
|
"default": [],
|
|
"description": "entity or shape objects, each with a type",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"rect": {
|
|
"default": [],
|
|
"description": "[x0, y0, x1, y1]: a closed rectangle of four lines",
|
|
"type": "array"
|
|
},
|
|
"start_angle": {
|
|
"default": 0,
|
|
"description": "arc start, counter-clockwise from the plane's x axis (rad)",
|
|
"type": "number"
|
|
},
|
|
"type": {
|
|
"default": "",
|
|
"description": "one item, its fields beside it",
|
|
"enum": [
|
|
"line",
|
|
"arc",
|
|
"circle",
|
|
"point",
|
|
"polygon",
|
|
"slot",
|
|
"ellipse",
|
|
"ellipse_arc",
|
|
"spline"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_add",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch add"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Select sketch entities by index; an empty list clears the selection. Reply: selected.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
0,
|
|
2
|
|
]
|
|
},
|
|
"tool": "sketch_select"
|
|
}
|
|
],
|
|
"title": "Select a rectangle's two long sides"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
0
|
|
]
|
|
},
|
|
"tool": "sketch_select"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": []
|
|
},
|
|
"tool": "sketch_select"
|
|
}
|
|
],
|
|
"title": "Clear the selection"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"entities": {
|
|
"default": [],
|
|
"description": "entity indices",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_select",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch select"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete sketch entities. Reply: removed, entities.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
2
|
|
]
|
|
},
|
|
"tool": "sketch_delete"
|
|
}
|
|
],
|
|
"title": "Delete a rectangle's top side"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
1,
|
|
3
|
|
]
|
|
},
|
|
"tool": "sketch_select"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_delete"
|
|
}
|
|
],
|
|
"title": "Delete the selected sides"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"entities": {
|
|
"default": [],
|
|
"description": "entity indices; omit for the selection",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_delete",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch delete"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Toggle construction on sketch entities. Reply: changed. A rejected rebuild is reported in the reply: ok is false or error is not empty.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
0,
|
|
-10
|
|
],
|
|
"p1": [
|
|
0,
|
|
10
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
4
|
|
]
|
|
},
|
|
"tool": "sketch_construction"
|
|
}
|
|
],
|
|
"title": "A centre line across a rectangle, made construction so it splits no loop"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"entities": {
|
|
"default": [],
|
|
"description": "entity indices; omit for the selection",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_construction",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch construction"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add an offset copy of sketch lines, arcs and circles. Reply: first_index, added, dof.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 2
|
|
},
|
|
"tool": "sketch_offset"
|
|
}
|
|
],
|
|
"title": "A rectangle's 2 mm inner wall"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 5,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": -2,
|
|
"entities": [
|
|
0
|
|
]
|
|
},
|
|
"tool": "sketch_offset"
|
|
}
|
|
],
|
|
"title": "A circle grown 2 mm by a negative offset"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"distance": {
|
|
"description": "signed offset (mm)",
|
|
"type": "number"
|
|
},
|
|
"entities": {
|
|
"default": [],
|
|
"description": "entity indices; omit for the selection, else every entity",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"distance"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_offset",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch offset"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a mirrored copy of sketch entities about the line through axis_a and axis_b. Reply: first_index, added, dof.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
10,
|
|
0
|
|
],
|
|
"radius": 3,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"axis_a": [
|
|
0,
|
|
0
|
|
],
|
|
"axis_b": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
"tool": "sketch_mirror"
|
|
}
|
|
],
|
|
"title": "A circle mirrored across the sketch's y axis"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"axis_a": {
|
|
"default": [
|
|
0,
|
|
0
|
|
],
|
|
"description": "[x, y] in the sketch plane, mm",
|
|
"type": "array"
|
|
},
|
|
"axis_b": {
|
|
"default": [
|
|
0,
|
|
1
|
|
],
|
|
"description": "[x, y] in the sketch plane, mm",
|
|
"type": "array"
|
|
},
|
|
"entities": {
|
|
"default": [],
|
|
"description": "entity indices; omit for the selection, else every entity",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_mirror",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch mirror"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Weld sketch endpoints that nearly meet and constrain them coincident, so loops are closed by construction. Reply: welded and the loops.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
0,
|
|
0
|
|
],
|
|
"p1": [
|
|
20,
|
|
0
|
|
],
|
|
"type": "line"
|
|
},
|
|
{
|
|
"p0": [
|
|
20,
|
|
0.05
|
|
],
|
|
"p1": [
|
|
20,
|
|
10
|
|
],
|
|
"type": "line"
|
|
},
|
|
{
|
|
"p0": [
|
|
20,
|
|
10
|
|
],
|
|
"p1": [
|
|
0,
|
|
0
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"tolerance": 0.1
|
|
},
|
|
"tool": "sketch_heal"
|
|
}
|
|
],
|
|
"title": "Close a triangle's 0.05 mm gap"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"ignore_construction": {
|
|
"default": true,
|
|
"type": "boolean"
|
|
},
|
|
"tolerance": {
|
|
"default": 0.001,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_heal",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch heal"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Set the dimension of the selected sketch entities, as the value field does. A line's length, a circle's diameter, an arc's radius, or the angle or distance between two. Select them with sketch_select first. Reply: kind, before, value, dof and the loops.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
0
|
|
]
|
|
},
|
|
"tool": "sketch_select"
|
|
},
|
|
{
|
|
"args": {
|
|
"value": 40
|
|
},
|
|
"tool": "sketch_set_value"
|
|
}
|
|
],
|
|
"title": "A rectangle's bottom side made 40 mm long"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 4,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
0
|
|
]
|
|
},
|
|
"tool": "sketch_select"
|
|
},
|
|
{
|
|
"args": {
|
|
"value": 12
|
|
},
|
|
"tool": "sketch_set_value"
|
|
}
|
|
],
|
|
"title": "A circle's diameter set to 12 mm"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"value": {
|
|
"description": "mm, or degrees for an angle",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"value"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_set_value",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch set value"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Round the corner of two lines of the open sketch, as the Fillet tool does. Both lines are cut back and joined by an arc of `radius`, bound coincident and tangent to them; constraints the sharp corner held are released. Reply: entity (the arc), lines, released_constraints, entities, constraints, dof, solve_ok.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
0,
|
|
1
|
|
],
|
|
"radius": 3
|
|
},
|
|
"tool": "sketch_fillet"
|
|
}
|
|
],
|
|
"title": "A rectangle's corner rounded to 3 mm"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"entities": {
|
|
"default": [],
|
|
"description": "the two line indices; omit for the selection",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"radius": {
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"radius"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_fillet",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch fillet"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Bevel the corner of two lines of the open sketch, as the Chamfer tool does. Both lines are cut back by `distance` from the corner and joined by a line bound coincident to them. Reply: entity (the new line), lines, released_constraints, entities, constraints, dof, solve_ok.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"distance": 2,
|
|
"entities": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"tool": "sketch_chamfer"
|
|
}
|
|
],
|
|
"title": "A rectangle's corner bevelled 2 mm back"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"distance": {
|
|
"description": "setback along each line (mm)",
|
|
"type": "number"
|
|
},
|
|
"entities": {
|
|
"default": [],
|
|
"description": "the two line indices; omit for the selection",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"distance"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_chamfer",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch chamfer"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Trim or extend the open sketch's entity nearest `at`, as a Trim or Extend click there does. Trim: a line or an arc is cut back from its end nearer `at` to the first crossing with another entity beyond `at`; a circle loses the part between the crossings either side of `at` and becomes an arc. With extend, as an Extend click: the line's or arc's end nearer `at` runs out to the next entity. The entity's constraints are released. Reply: entity, geometry (its new fields), released_constraints, entities, dof.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
-10,
|
|
0
|
|
],
|
|
"p1": [
|
|
10,
|
|
0
|
|
],
|
|
"type": "line"
|
|
},
|
|
{
|
|
"p0": [
|
|
0,
|
|
-5
|
|
],
|
|
"p1": [
|
|
0,
|
|
5
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"at": [
|
|
5,
|
|
0
|
|
]
|
|
},
|
|
"tool": "sketch_trim"
|
|
}
|
|
],
|
|
"title": "A line cut back to the line crossing it"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
-10,
|
|
0
|
|
],
|
|
"p1": [
|
|
10,
|
|
0
|
|
],
|
|
"type": "line"
|
|
},
|
|
{
|
|
"p0": [
|
|
0,
|
|
3
|
|
],
|
|
"p1": [
|
|
0,
|
|
8
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"at": [
|
|
0,
|
|
3
|
|
],
|
|
"extend": true
|
|
},
|
|
"tool": "sketch_trim"
|
|
}
|
|
],
|
|
"title": "A line extended down to the line below it"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"at": {
|
|
"description": "[x, y] in the sketch plane, mm: a point on the part to cut, or near the end to extend",
|
|
"type": "array"
|
|
},
|
|
"extend": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"tolerance": {
|
|
"default": 0.05,
|
|
"description": "how far from `at` the entity may be (mm)",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"at"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_trim",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch trim"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Move, rotate, scale or array entities of the open sketch, as the transform tools' Confirm does. move {dx, dy}, rotate {angle, pivot} and scale {scale, pivot} change the entities and release the constraints that no longer hold. array {dx, dy, count} adds copies stepped by dx, dy; polar_array {pivot, angle, count} adds copies every angle/count about pivot (angle is the whole sweep, default 360 degrees). count includes the original, and each copy is bound to its source (equal length and parallel, or its radius). pivot defaults to the entities' centroid. Angles are radians, or degrees as angle_deg. Reply: moved and released_constraints, or first_index, added and bound; pivot; entities, dof.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 3,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"dx": 10,
|
|
"entities": [
|
|
0
|
|
],
|
|
"op": "move"
|
|
},
|
|
"tool": "sketch_transform"
|
|
}
|
|
],
|
|
"title": "A circle moved 10 mm along x"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
20,
|
|
0
|
|
],
|
|
"radius": 3,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"angle_deg": 360,
|
|
"count": 6,
|
|
"entities": [
|
|
0
|
|
],
|
|
"op": "polar_array",
|
|
"pivot": [
|
|
0,
|
|
0
|
|
]
|
|
},
|
|
"tool": "sketch_transform"
|
|
}
|
|
],
|
|
"title": "Six holes on a 40 mm bolt circle"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
0,
|
|
0
|
|
],
|
|
"p1": [
|
|
20,
|
|
0
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"angle_deg": 30,
|
|
"entities": [
|
|
0
|
|
],
|
|
"op": "rotate",
|
|
"pivot": [
|
|
0,
|
|
0
|
|
]
|
|
},
|
|
"tool": "sketch_transform"
|
|
}
|
|
],
|
|
"title": "A line turned 30 degrees about its start"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"angle": {
|
|
"default": null,
|
|
"description": "or angle_deg (rad)",
|
|
"type": "number"
|
|
},
|
|
"count": {
|
|
"default": null,
|
|
"maximum": 1000,
|
|
"minimum": 2,
|
|
"type": "integer"
|
|
},
|
|
"dx": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"dy": {
|
|
"default": 0,
|
|
"description": "In mm.",
|
|
"type": "number"
|
|
},
|
|
"entities": {
|
|
"default": [],
|
|
"description": "entity indices; omit for the selection",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"op": {
|
|
"enum": [
|
|
"move",
|
|
"rotate",
|
|
"scale",
|
|
"array",
|
|
"polar_array"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"pivot": {
|
|
"default": null,
|
|
"description": "[x, y] in the sketch plane, mm",
|
|
"type": "array"
|
|
},
|
|
"scale": {
|
|
"default": null,
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"op"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_transform",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch transform"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Add a constraint to the open sketch, as a CONSTRAIN bar button does (sketch_set_value is the value field, V). With `entities`, else the selection, the button's own rules choose the points, and a value it would ask for is `value` or the current one. With `refs` the references are taken as written, in sketch_constraints' form: {entity, role} for a point (role p0, p1 or center; entity also \"origin\") and {entity} for a whole entity (also \"x_axis\", \"y_axis\"). distance, lock_x, lock_y, point_on_line and point_on_object have no button and take refs. A constraint the sketch cannot solve with is rolled back and the call fails. Reply: added (indices), items, constraints, dof, solve_ok.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
0,
|
|
0
|
|
],
|
|
"p1": [
|
|
10,
|
|
2
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
0
|
|
],
|
|
"type": "horizontal"
|
|
},
|
|
"tool": "sketch_constrain"
|
|
}
|
|
],
|
|
"title": "A sloping line made horizontal"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"center": [
|
|
0,
|
|
0
|
|
],
|
|
"radius": 4,
|
|
"type": "circle"
|
|
},
|
|
{
|
|
"center": [
|
|
15,
|
|
0
|
|
],
|
|
"radius": 6,
|
|
"type": "circle"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
0,
|
|
1
|
|
],
|
|
"type": "equal"
|
|
},
|
|
"tool": "sketch_constrain"
|
|
}
|
|
],
|
|
"title": "Two circles given equal radii"
|
|
},
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"entities": [
|
|
{
|
|
"p0": [
|
|
0,
|
|
0
|
|
],
|
|
"p1": [
|
|
10,
|
|
2
|
|
],
|
|
"type": "line"
|
|
}
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {
|
|
"refs": [
|
|
{
|
|
"entity": 0,
|
|
"role": "p0"
|
|
},
|
|
{
|
|
"entity": 0,
|
|
"role": "p1"
|
|
}
|
|
],
|
|
"type": "distance",
|
|
"value": 25
|
|
},
|
|
"tool": "sketch_constrain"
|
|
}
|
|
],
|
|
"title": "A line's ends held 25 mm apart, named by refs"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"entities": {
|
|
"default": [],
|
|
"description": "1 to 3 entity indices; omit for the selection",
|
|
"type": "array"
|
|
},
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"refs": {
|
|
"default": [],
|
|
"description": "[{entity, role?}], instead of entities",
|
|
"type": "array"
|
|
},
|
|
"type": {
|
|
"description": "\"equal\" is the Equal button: equal length, or equal radius for two curves",
|
|
"enum": [
|
|
"fix",
|
|
"coincident",
|
|
"horizontal",
|
|
"vertical",
|
|
"distance",
|
|
"lock_x",
|
|
"lock_y",
|
|
"equal_length",
|
|
"parallel",
|
|
"perpendicular",
|
|
"concentric",
|
|
"tangent",
|
|
"midpoint",
|
|
"symmetric",
|
|
"angle",
|
|
"radius",
|
|
"diameter",
|
|
"point_on_line",
|
|
"point_on_object",
|
|
"equal_radius",
|
|
"collinear",
|
|
"distance_x",
|
|
"distance_y",
|
|
"symmetric_about_y",
|
|
"symmetric_about_x",
|
|
"equal"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"default": null,
|
|
"description": "mm, or degrees for an angle",
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_constrain",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch constrain"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Delete a constraint of the open sketch, as its row's delete button does; the constraints after it move down one index. Reply: removed, constraints, dof, solve_ok.",
|
|
"destructive": false,
|
|
"examples": [
|
|
{
|
|
"calls": [
|
|
{
|
|
"args": {
|
|
"plane": "XY"
|
|
},
|
|
"tool": "sketch_begin"
|
|
},
|
|
{
|
|
"args": {
|
|
"rect": [
|
|
-15,
|
|
-10,
|
|
15,
|
|
10
|
|
]
|
|
},
|
|
"tool": "sketch_add"
|
|
},
|
|
{
|
|
"args": {},
|
|
"tool": "sketch_constraints"
|
|
},
|
|
{
|
|
"args": {
|
|
"index": 4
|
|
},
|
|
"tool": "sketch_unconstrain"
|
|
}
|
|
],
|
|
"title": "A rectangle's bottom side freed from horizontal"
|
|
}
|
|
],
|
|
"group": "Design",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"properties": {
|
|
"generation": {
|
|
"description": "The generation (describe_scene, query_topology) the face and edge ids this call passes were read at. Ids expire when a feature rebuilds the model, and a stale id still names a real face or edge: with the generation, a call whose ids were read before the model changed is refused.",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"index": {
|
|
"description": "sketch_constraints' items[].index",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"index"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "sketch_unconstrain",
|
|
"listed": false,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Sketch unconstrain"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Search everything the Speed Dial can run: built-in commands (slice, export, views, object operations, plates, calibration wizards, help), recent projects, plugin scripts and pages. Each entry has an id for run_action, a description, the command's key for a built-in command, and, when it takes arguments, their input_schema. A query ranks them, best match first, as search_tools does; without one they are listed by group and title. include_settings also lists settings (each jumps to that setting in the sidebar; use get_settings / set_settings to read or change values).",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"group": {
|
|
"description": "Only this group, e.g. \"Object\", \"View\", \"Slice & Export\".",
|
|
"type": "string"
|
|
},
|
|
"include_settings": {
|
|
"description": "Also list settings (thousands). Default false.",
|
|
"type": "boolean"
|
|
},
|
|
"limit": {
|
|
"description": "Default 50.",
|
|
"maximum": 200,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"query": {
|
|
"description": "A few words, e.g. \"delete object\": each is matched at the start of the words of an action's id, title, group and description.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "search_actions",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "Search Speed Dial actions"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Run one action by the id search_actions returned (orca_command:view_front:orca, or the name inside it, view_front), with args, the command's arguments, when it takes some (its input_schema). A command that asks in a dialog asks when it is given no args, as a person's pick does, and runs without asking when given them: an absolute path skips a file dialog, and an output needs {\"path\": ..., \"overwrite\": true} to replace a file. Go to layer and Go to tab need their value ({\"percent\": 50}, {\"tab\": \"preview\"}). Actions that open a dialog return blocked_by_dialog; answer it with answer_dialog, or, for a native one it can't press (a file picker), register auto_answer_dialogs before the call. An export_gcode with a path completes when the file is written; an action that starts a background job (obj_arrange, obj_orient) when the job ends. An action that does nothing (no object selected) is an error. Some commands add what they did to the reply (the obj_order_by_* order, the object obj_assemble made).",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"args": {
|
|
"description": "The command's arguments, as its input_schema gives them.",
|
|
"type": "object"
|
|
},
|
|
"id": {
|
|
"description": "Action id from search_actions, or the name inside it.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "run_action",
|
|
"listed": true,
|
|
"open_world": true,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Run a Speed Dial action"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "List OrcaSlicer's open windows: the main window, then the windows that don't block the app (Plugins, an object's settings, a dock panel floating on its own), then the modal dialogs in the order they opened, the topmost last. A window's ref goes to screenshot as target to capture that window, to list_widgets as target to list it alone, and to press_keys as target; its title is the within of locators for its widgets.\nReply: each window's title, kind (main, window, dialog, or panel: a dock panel floating on its own), modal, ref, web (it shows a web page), x and y on screen (not on Wayland, which doesn't say), width and height, state (normal, maximized or minimized) and resizable (it has a resize border); set_window changes them.\nA native dialog (a message box, a file picker) has native: true and no ref: answer_dialog answers it. hidden: true marks the person's own windows (Action Replay, the Run Script panel and their prompts, the Python scripts setting), which no tool reaches and screenshots leave out.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"limit": {
|
|
"description": "Default 100.",
|
|
"maximum": 200,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "list_windows",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "List the windows"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Size, move, maximize, minimize or raise a window: the main window (default), the topmost modal dialog, or one list_windows lists, also while a modal dialog is open. Size the main window before set_view fits the camera and before start_recording, as a recording keeps its first frame's size. size and position are in the units list_windows reports, whose x/y and width/height are read as position and size too. A size or position restores a maximized or minimized window first. A window takes only the states its title bar offers; a modal dialog never minimizes. A refused call changes nothing. Replies once the window holds still and the 3D view has drawn at its new size (3 s at most): title, kind, ref, size, position, state, resizable, scale (screenshot pixels per window unit), display (its work area), active with raise, and adjusted with a note: what the OS or a size limit changed.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "recover",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"position": {
|
|
"description": "[x, y] of the window's top-left corner on screen; not on Wayland.",
|
|
"items": {
|
|
"type": "integer"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"raise": {
|
|
"description": "Bring the window in front of the app's other windows; active in the reply says whether it became the active one.",
|
|
"type": "boolean"
|
|
},
|
|
"size": {
|
|
"description": "[width, height], held to the window's minimum and maximum size.",
|
|
"items": {
|
|
"type": "integer"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"state": {
|
|
"description": "normal restores a maximized or minimized window; maximized and minimized take no size or position.",
|
|
"enum": [
|
|
"normal",
|
|
"maximized",
|
|
"minimized"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"description": "main (default), dialog (the topmost modal dialog), or a window's ref or locator from list_windows; a widget's ref or locator picks the window it is in.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "set_window",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Size or move a window"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Describe what is on screen as an indented tree, one element per line with a ref to pass to click, set_widget_value, press_keys and run_javascript (a page element's to mouse_gesture too): the widgets of every shown window, the rows of lists, trees and tables, each shown popup after the window it opened from, the main menus, the 3D canvas's toolbar items and gizmos, each ImGui panel drawn in the last frame with its items and text, and the elements of each shown web page (dialogs, the setup wizard, sign-in, plugin windows) under its web view. With a modal dialog open, only the topmost dialog's pages are read. Refs go stale when their element goes away: call list_widgets again then. Prefer run_action and the typed tools when one fits.\nA locator names an element without a ref, in any session (export_replay records them); index (0-based) picks one of several matches:\n- a widget: {label, class, name, within, index}, within being its window's title; a notebook page: {tab: \"General\", within}\n- a setting's field: {option: \"layer_height\"}\n- {menu: \"File>Export>Export G-code\"}, {gltoolbar: \"arrange\"}, {gizmo: \"Move\"}\n- an ImGui item: {imgui: \"label\", imgui_name?: \"name\", window?, canvas?, index?}, by its label, its name or both\n- a row of a list, tree, table or drop-down list: {row: \"Plate 1>Cube>Cylinder\", column?, within?, index?}, by its last labels; column names the cell to act on\n- a plate or one of its icons in the Prepare view: {plate_icon: \"lock\", plate: 0}, the icon being plate, delete, orient, arrange, lock, settings, name, move_to_front, filament_map or imex_mode\n- a web page's element: {web: \"Next\", kind?: \"button\", css?: \"#AcceptBtn\", within?, index?}, by the label list_widgets lists (exactly, else ignoring case, else a part of it), its kind, a CSS selector (the id a line shows as name: name=#save is {css: \"#save\"}), or together. Without within it looks in the topmost dialog's pages while one is open, else in every shown page, and it waits up to 3 s for its element.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "inspect",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"include_imgui": {
|
|
"description": "List ImGui items (default true).",
|
|
"type": "boolean"
|
|
},
|
|
"include_menus": {
|
|
"description": "List menu items (default true).",
|
|
"type": "boolean"
|
|
},
|
|
"include_web": {
|
|
"description": "List the elements of web pages (default true).",
|
|
"type": "boolean"
|
|
},
|
|
"max_nodes": {
|
|
"description": "Default 400.",
|
|
"maximum": 5000,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"max_web_nodes": {
|
|
"description": "Page elements, apart from max_nodes; default 300.",
|
|
"maximum": 5000,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"query": {
|
|
"description": "Case-insensitive text to look for in labels, values, names and classes.",
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"description": "all (default), main, dialog (the topmost modal), popup, or a window's ref (list_windows).",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "list_widgets",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": true,
|
|
"title": "List the widgets"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Click a GUI element as a person would. Menu items, buttons, checkboxes, toggles, radio buttons, toolbar items and gizmos are activated the way their owners expect: a gizmo opens and a second click closes it (Text on an object without text creates a text part: created). Other widgets and ImGui items get a mouse click once scrolled into view; with x/y, at that point of a 3D canvas or custom-drawn widget, in logical pixels from its top left. A row is selected as a click on its cell selects it (ctrl adds, shift extends; in the object list the named column acts, as Printable toggles), double activates it and a right click opens its menu; a drop-down list's row is picked. A plate icon does what it does in the Prepare view: lock replies locked, arrange and orient reply done once their job ends, settings and filament_map list the dialog they open (dialogs). Modifiers reach the 3D canvas, the object list and handlers that read them. A menu the click opens is never shown: the reply lists it as popup_menu, or popup_item runs one of its items (ran). A click that opens a dialog replies blocked_by_dialog.\nA web page's element gets the pointer and mouse events of a click at its centre (or x/y) once scrolled into view, refused when something else covers that point. The reply reads back checked, and has closed when the click closed its dialog (with dialogs, those still open under it, which still need an answer), navigated (with url) when it changed the page, or dialogs when it opened another. Otherwise page says what changed on the page within 300 ms: changed (false when its lines are as before), the list_widgets lines added and removed, partial when a plugin configuration frame could not be compared, and posted, how many messages the page sent OrcaSlicer.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "recover",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"button": {
|
|
"description": "Default left.",
|
|
"enum": [
|
|
"left",
|
|
"right",
|
|
"middle"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"double": {
|
|
"description": "Double click.",
|
|
"type": "boolean"
|
|
},
|
|
"modifiers": {
|
|
"description": "Modifier keys held during the click, as in press_keys: ctrl and cmd are both Command on macOS and Ctrl elsewhere; rawctrl is the macOS Control key.",
|
|
"items": {
|
|
"enum": [
|
|
"ctrl",
|
|
"cmd",
|
|
"rawctrl",
|
|
"shift",
|
|
"alt"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"popup_item": {
|
|
"description": "Run this item of the menu the input opens (a right click's context menu, a button's menu), by its label path, \"Add Modifier>Cylinder\"; \"#2\" picks a repeated label's second item. Without it, such a menu is listed in the reply (popup_menu), not shown.",
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"description": "A ref from the latest list_widgets call (\"w12\") or a locator, such as {label: \"OK\", within: \"Preferences\"} or {menu: \"File>Export>Export G-code\"}; list_widgets's description lists every kind.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"timeout_s": {
|
|
"description": "For a web page's element: seconds the page gets to answer (default 10).",
|
|
"maximum": 120,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"x": {
|
|
"description": "x of the point to click, in a 3D canvas, a custom-drawn widget or a page element.",
|
|
"type": "integer"
|
|
},
|
|
"y": {
|
|
"description": "y of the point to click.",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"target"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "click",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Click an element"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Set a widget's value and send the events a person's edit would. Widgets: text fields (submit, the default, also presses Enter and leaves the field, which is when Orca's setting fields commit), spin controls, sliders, choice, combo and list boxes (by option text or index), checkboxes, toggles and a row's checkbox (true or false), and a radio button (an Orca radio box too) or a selector's option, as the dialog message shows them (*) / ( ) (true selects it; false on the selected one is refused, as only selecting another unselects it). ImGui items, by their kind, with the value read back: a field is typed into (a slider through the number field beside it, multiline text with \\n), a combo's option is picked by its text or 0-based index, and a checkbox, radio or toggle is clicked when it differs. A web page's fields, as typing would leave them: text, number, range, colour and date fields and editable text get the value with input and change events (submit then leaves the field; press_keys Return presses Enter), a select its option by text, value or index, and a checkbox or radio is clicked when it differs; the value is read back and page says what changed, as for click. File fields can't be set. For settings, set_settings is more reliable.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "recover",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"submit": {
|
|
"description": "Press Enter / commit after setting (default true).",
|
|
"type": "boolean"
|
|
},
|
|
"target": {
|
|
"description": "A ref from the latest list_widgets call (\"w12\") or a locator, such as {label: \"OK\", within: \"Preferences\"} or {menu: \"File>Export>Export G-code\"}; list_widgets's description lists every kind.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"timeout_s": {
|
|
"description": "For a web page's element: seconds the page gets to answer (default 10).",
|
|
"maximum": 120,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"value": {
|
|
"description": "The new value.",
|
|
"type": [
|
|
"string",
|
|
"number",
|
|
"boolean"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"target",
|
|
"value"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "set_widget_value",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Set a widget's value"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Send a key chord (\"Ctrl+S\", \"Escape\", \"Return\", \"Delete\", \"Shift+Tab\", \"Left\", \"F5\") and/or type text to a target or, without one, to the focused window (the topmost dialog while one is open, the shown 3D view when nothing has focus). As with a real key press, the shortcut handling of the target's panels and window sees the keys first. Typing reaches ImGui fields and key handlers; fill a widget's text field with set_widget_value. A menu the keys open is listed as popup_menu, or popup_item runs one of its items. Keys for a web page (its element, or without a target the focused web view or the topmost dialog's only page) go to the page's focused element with the browser's default actions: typing, Backspace/Delete, Enter (submits a form, activates a button), Space, Tab moving the focus, arrows stepping a select, range or radio group; page says what they changed, as for click.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "recover",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"keys": {
|
|
"description": "Key chord.",
|
|
"type": "string"
|
|
},
|
|
"popup_item": {
|
|
"description": "Run this item of the menu the input opens (a right click's context menu, a button's menu), by its label path, \"Add Modifier>Cylinder\"; \"#2\" picks a repeated label's second item. Without it, such a menu is listed in the reply (popup_menu), not shown.",
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"description": "A ref from the latest list_widgets call (\"w12\") or a locator, such as {label: \"OK\", within: \"Preferences\"} or {menu: \"File>Export>Export G-code\"}; list_widgets's description lists every kind.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"text": {
|
|
"description": "Characters to type.",
|
|
"type": "string"
|
|
},
|
|
"timeout_s": {
|
|
"description": "For a web page's element: seconds the page gets to answer (default 10).",
|
|
"maximum": 120,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "press_keys",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Press keys"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Make a mouse gesture on a 3D canvas as a person would: move, down, up, click, drag or wheel. It starts at `at`, a point of the model, which is projected through the camera and by default checked to land on that part (check \"point\" only projects it), or at x/y, logical pixels from the canvas's top left. A drag goes through `waypoints` to `to`, `steps` moves per leg: on an object it moves the object, in a painting gizmo it paints from a press on the object being painted (waypoints zigzagging over an area paint all of it), and elsewhere it turns or pans the camera as this install's mouse settings say, so turn the camera with set_view camera or orbit instead. A wheel turns delta notches; positive zooms in or scrolls a panel up. Modifiers are held as keys for the gesture (shift for Measure's point picking, alt for erasing). A down keeps its button and modifiers held, so moves drag, until an up or another gesture. Grabbers are set through the gizmo's panel fields or transform, not dragged. A menu a right click opens is listed as popup_menu, or popup_item (with click or up) runs one of its items. The reply's camera_moved says the gesture moved the camera, so earlier screenshots and pixels no longer match the view.\nWith target, the gesture is on a web page's element instead (a canvas such as the colour picker's spectrum, a slider, a sortable or scrolled list): x/y, to and waypoints are logical pixels from its top left, a drag keeps the pointer captured where the page asks for it, and a wheel scrolls what is under the pointer unless the page takes it; page says what the gesture changed there, as for click.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "recover",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"action": {
|
|
"description": "Default click.",
|
|
"enum": [
|
|
"move",
|
|
"down",
|
|
"up",
|
|
"click",
|
|
"drag",
|
|
"wheel"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"at": {
|
|
"additionalProperties": false,
|
|
"description": "A point of the model: {object, instance (default 0), part (default 0), and point [x, y, z] in the part's own mesh coordinates (frame \"part\", the default) or the scene's (frame \"world\"), or spot: top | bottom | front | back | left | right, where a ray along that axis first meets the part}.",
|
|
"properties": {
|
|
"frame": {
|
|
"description": "Default part.",
|
|
"enum": [
|
|
"part",
|
|
"world"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"instance": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"object": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"part": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"point": {
|
|
"description": "[x, y, z] mm",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"spot": {
|
|
"description": "A side of the part.",
|
|
"enum": [
|
|
"top",
|
|
"bottom",
|
|
"front",
|
|
"back",
|
|
"left",
|
|
"right"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"object"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"button": {
|
|
"description": "Default left.",
|
|
"enum": [
|
|
"left",
|
|
"right",
|
|
"middle"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"canvas": {
|
|
"description": "Default current, the view shown. design takes x/y only.",
|
|
"enum": [
|
|
"3d",
|
|
"preview",
|
|
"assemble",
|
|
"design",
|
|
"current"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"check": {
|
|
"description": "For model points: surface (default) or projection only.",
|
|
"enum": [
|
|
"surface",
|
|
"point"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"delta": {
|
|
"description": "Wheel notches.",
|
|
"type": "integer"
|
|
},
|
|
"double": {
|
|
"description": "Double click.",
|
|
"type": "boolean"
|
|
},
|
|
"modifiers": {
|
|
"description": "Modifier keys held during the click, as in press_keys: ctrl and cmd are both Command on macOS and Ctrl elsewhere; rawctrl is the macOS Control key.",
|
|
"items": {
|
|
"enum": [
|
|
"ctrl",
|
|
"cmd",
|
|
"rawctrl",
|
|
"shift",
|
|
"alt"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"popup_item": {
|
|
"description": "Run this item of the menu the input opens (a right click's context menu, a button's menu), by its label path, \"Add Modifier>Cylinder\"; \"#2\" picks a repeated label's second item. Without it, such a menu is listed in the reply (popup_menu), not shown.",
|
|
"type": "string"
|
|
},
|
|
"steps": {
|
|
"description": "Moves per drag leg (default 10).",
|
|
"maximum": 200,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"target": {
|
|
"description": "A web page's element (its ref or a {web}/{css} locator) to gesture on instead of a 3D canvas.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"timeout_s": {
|
|
"description": "For a web page's element: seconds the page gets to answer (default 10).",
|
|
"maximum": 120,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"to": {
|
|
"description": "A canvas pixel [x, y] or a point of the model, as for at.",
|
|
"type": [
|
|
"array",
|
|
"object"
|
|
]
|
|
},
|
|
"tolerance": {
|
|
"description": "Surface check distance in mm (default 1% of the part's size, at least 0.1).",
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
"waypoints": {
|
|
"description": "Where a drag goes after the start, before to.",
|
|
"items": {
|
|
"description": "A canvas pixel [x, y] or a point of the model, as for at.",
|
|
"type": [
|
|
"array",
|
|
"object"
|
|
]
|
|
},
|
|
"type": "array"
|
|
},
|
|
"x": {
|
|
"description": "Start x, instead of at.",
|
|
"type": "integer"
|
|
},
|
|
"y": {
|
|
"description": "Start y, instead of at.",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"key": "mouse_gesture",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Mouse gesture on the 3D view"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Do what a file picker inside the open gizmo does, with a path instead of its dialog: svg_change loads another SVG file into the SVG part being edited, svg_save_as writes that part's SVG to a new file (an existing one only with overwrite), texture_import imports a height-map image into the texture library and puts it on Texture Displacement's active layer. To add an SVG part, use run_action add_primitive_svg with a path. Gizmos open with click {target: {gizmo: name}}, and their panels take set_widget_value / click on the ImGui items list_widgets lists.",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "mutate",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"action": {
|
|
"description": "What to do.",
|
|
"enum": [
|
|
"svg_change",
|
|
"svg_save_as",
|
|
"texture_import"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"overwrite": {
|
|
"description": "svg_save_as: replace an existing file.",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute path of the file to read or write.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"action",
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "pick_gizmo_file",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Pick a file for the open gizmo"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Press a button of the topmost modal dialog: yes, no, ok, cancel, close, apply, a button's label, or a numeric id. A disabled button (enabled: false) is refused, the dialog's message showing what it still needs, and so is one on a page the dialog does not show, except a hidden cancel or close, which ends the dialog. The label of an option of a selector made of buttons (Orca's radio groups, tab bars and multi-switches, shown as (*) / ( ) in the message) selects that option and leaves the dialog open; set other radio buttons and switches with click or set_widget_value true, and notebook tabs with click. dialog.title, text the dialog's title contains, makes sure which dialog that is; it must be the topmost. Reply: closed: true when it closed, and dialogs, those still open. A native message box (native: true) is pressed through the OS, by one of the buttons get_app_state.dialogs lists for it; a file or folder picker can't be answered here, nor any native dialog on macOS (its buttons list is empty): register auto_answer_dialogs before opening them. A web dialog's buttons are on its page: a label is pressed there, waiting up to 3 s for it to show, so the page's own handler runs. With no such page button, or a page busy for those 3 s, cancel and close end the dialog, and ok, yes, no and apply are refused rather than skip the page's commit; page_buttons then lists the page's buttons.",
|
|
"destructive": false,
|
|
"group": "core",
|
|
"guard": "recover",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"button": {
|
|
"description": "Button to press.",
|
|
"type": "string"
|
|
},
|
|
"dialog": {
|
|
"additionalProperties": false,
|
|
"description": "Which dialog; default the topmost.",
|
|
"properties": {
|
|
"title": {
|
|
"description": "Text the dialog's title contains (case-insensitive).",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"button"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "answer_dialog",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Answer a dialog"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Answer modal dialogs automatically when their title or message matches a rule's regex (case-insensitive). get_app_state.auto_answer_rules lists the rules in force. Called from a replay or script, the rules last until it ends; otherwise they replace the ones this session set before, and an empty list clears them. A native dialog returns the rule's button at once and never shows. A file or folder picker takes button ok with an absolute path and returns it without showing (on Linux such a rule cancels it); without a path a picker can only be cancelled, and a multi-select picker takes no path. A wx dialog has the button pressed as answer_dialog does, so its handler runs. A matching dialog already open is answered too (answered_open_dialog), so a prompt that shows around the same time, such as the restore prompt after startup, is caught either way. A web dialog is matched by its title: a button that names one of its shown wx buttons (by label, standard name or id) is pressed as for a wx dialog, any other on its page once it shows there, for up to 10 s after the page loads; past that, cancel and close end the dialog and any other button gives up.",
|
|
"destructive": false,
|
|
"group": "core",
|
|
"guard": "recover",
|
|
"idempotent": true,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"rules": {
|
|
"description": "Rules, first match wins.",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"button": {
|
|
"description": "yes | no | ok | cancel | close | apply | label | id",
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"description": "Regex searched in \"title\\nmessage\", in \"title\\ntext\" (the dialog's own static text, one line each, without its controls), and in the title alone for a dialog with no text (a web dialog), so ^Title$ matches it.",
|
|
"type": "string"
|
|
},
|
|
"overwrite": {
|
|
"description": "A save picker may return an existing file at path (default false).",
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"description": "Absolute path a matching file or folder picker returns, with button ok. A picker has no title until it shows, so the rule matches its prompt and must not anchor on a title with ^. The rule answers pickers only: an open picker needs an existing file, a folder picker an existing folder, and a save picker a new file. A picker the path can't serve is cancelled and the reason logged.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"match",
|
|
"button"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"rules"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "auto_answer_dialogs",
|
|
"listed": true,
|
|
"open_world": false,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Answer dialogs automatically"
|
|
},
|
|
{
|
|
"completion": "immediate",
|
|
"description": "Evaluate JavaScript in one of OrcaSlicer's web views (Home, the device page, dialogs, plugin windows). Prefer list_widgets and the input tools (click, set_widget_value, press_keys, mouse_gesture), which see and drive pages as they do widgets. The code runs in the target's page: a web view's (kind webview in list_widgets), or a page element's, with the element as `el`; without a target, in the topmost dialog's web view, else in the only shown one. While a modal dialog is open, only its pages run code. Reply: result, the value of the last expression (JSON values come back parsed), and url; closed: true when the code closed its dialog, navigated: true when it changed the page, dialogs when it opened another. Messages the page posts to OrcaSlicer reach it once the code has returned. It runs through eval, which a page whose Content-Security-Policy forbids it may refuse (list_widgets and the input tools still work there).",
|
|
"destructive": false,
|
|
"group": "ui",
|
|
"guard": "recover",
|
|
"idempotent": false,
|
|
"in_palette": false,
|
|
"input_schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"code": {
|
|
"description": "JavaScript to run.",
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"description": "A ref from the latest list_widgets call (\"w12\") or a locator, such as {label: \"OK\", within: \"Preferences\"} or {menu: \"File>Export>Export G-code\"}; list_widgets's description lists every kind.",
|
|
"type": [
|
|
"string",
|
|
"object"
|
|
]
|
|
},
|
|
"timeout_s": {
|
|
"description": "Seconds the code gets (default 10).",
|
|
"maximum": 120,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"code"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"key": "run_javascript",
|
|
"listed": true,
|
|
"open_world": true,
|
|
"operations": [],
|
|
"read_only": false,
|
|
"title": "Run JavaScript in a web view"
|
|
}
|
|
]
|
|
}
|