---
source: kcl/src/simulation_tests.rs
description: Artifact commands artifact_graph_sketch_on_face_etc.kcl
snapshot_kind: text
---
[
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "make_plane",
      "origin": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      },
      "x_axis": {
        "x": 1.0,
        "y": 0.0,
        "z": 0.0
      },
      "y_axis": {
        "x": 0.0,
        "y": 1.0,
        "z": 0.0
      },
      "size": 100.0,
      "clobber": false,
      "hide": true
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "plane_set_color",
      "plane_id": "[uuid]",
      "color": {
        "r": 0.7,
        "g": 0.28,
        "b": 0.28,
        "a": 0.4
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "make_plane",
      "origin": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      },
      "x_axis": {
        "x": 0.0,
        "y": 1.0,
        "z": 0.0
      },
      "y_axis": {
        "x": 0.0,
        "y": 0.0,
        "z": 1.0
      },
      "size": 100.0,
      "clobber": false,
      "hide": true
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "plane_set_color",
      "plane_id": "[uuid]",
      "color": {
        "r": 0.28,
        "g": 0.7,
        "b": 0.28,
        "a": 0.4
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "make_plane",
      "origin": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      },
      "x_axis": {
        "x": 1.0,
        "y": 0.0,
        "z": 0.0
      },
      "y_axis": {
        "x": 0.0,
        "y": 0.0,
        "z": 1.0
      },
      "size": 100.0,
      "clobber": false,
      "hide": true
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "plane_set_color",
      "plane_id": "[uuid]",
      "color": {
        "r": 0.28,
        "g": 0.28,
        "b": 0.7,
        "a": 0.4
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "make_plane",
      "origin": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      },
      "x_axis": {
        "x": -1.0,
        "y": 0.0,
        "z": 0.0
      },
      "y_axis": {
        "x": 0.0,
        "y": 1.0,
        "z": 0.0
      },
      "size": 100.0,
      "clobber": false,
      "hide": true
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "make_plane",
      "origin": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      },
      "x_axis": {
        "x": 0.0,
        "y": -1.0,
        "z": 0.0
      },
      "y_axis": {
        "x": 0.0,
        "y": 0.0,
        "z": 1.0
      },
      "size": 100.0,
      "clobber": false,
      "hide": true
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "make_plane",
      "origin": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      },
      "x_axis": {
        "x": -1.0,
        "y": 0.0,
        "z": 0.0
      },
      "y_axis": {
        "x": 0.0,
        "y": 0.0,
        "z": 1.0
      },
      "size": 100.0,
      "clobber": false,
      "hide": true
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "edge_lines_visible",
      "hidden": false
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "set_scene_units",
      "unit": "mm"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "object_visible",
      "object_id": "[uuid]",
      "hidden": true
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      0,
      0,
      0
    ],
    "command": {
      "type": "object_visible",
      "object_id": "[uuid]",
      "hidden": true
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      12,
      31,
      0
    ],
    "command": {
      "type": "make_plane",
      "origin": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      },
      "x_axis": {
        "x": 1.0,
        "y": 0.0,
        "z": 0.0
      },
      "y_axis": {
        "x": 0.0,
        "y": 0.0,
        "z": 1.0
      },
      "size": 60.0,
      "clobber": false,
      "hide": true
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      37,
      62,
      0
    ],
    "command": {
      "type": "enable_sketch_mode",
      "entity_id": "[uuid]",
      "ortho": false,
      "animated": false,
      "adjust_camera": false,
      "planar_normal": {
        "x": 0.0,
        "y": -1.0,
        "z": 0.0
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      37,
      62,
      0
    ],
    "command": {
      "type": "start_path"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      37,
      62,
      0
    ],
    "command": {
      "type": "move_path_pen",
      "path": "[uuid]",
      "to": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      68,
      86,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": 4.0,
          "y": 8.0,
          "z": 0.0
        },
        "relative": true
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      92,
      125,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": 5.0,
          "y": -8.0,
          "z": 0.0
        },
        "relative": true
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      131,
      187,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": 0.0,
          "y": 0.0,
          "z": 0.0
        },
        "relative": false
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      193,
      200,
      0
    ],
    "command": {
      "type": "close_path",
      "path_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      193,
      200,
      0
    ],
    "command": {
      "type": "sketch_mode_disable"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "enable_sketch_mode",
      "entity_id": "[uuid]",
      "ortho": false,
      "animated": false,
      "adjust_camera": false,
      "planar_normal": {
        "x": 0.0,
        "y": -1.0,
        "z": 0.0
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "extrude",
      "target": "[uuid]",
      "distance": 6.0,
      "faces": null
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "sketch_mode_disable"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "object_bring_to_front",
      "object_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "solid3d_get_extrusion_face_info",
      "object_id": "[uuid]",
      "edge_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      214,
      244,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      295,
      325,
      0
    ],
    "command": {
      "type": "enable_sketch_mode",
      "entity_id": "[uuid]",
      "ortho": false,
      "animated": false,
      "adjust_camera": false,
      "planar_normal": null
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      295,
      325,
      0
    ],
    "command": {
      "type": "start_path"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      295,
      325,
      0
    ],
    "command": {
      "type": "move_path_pen",
      "path": "[uuid]",
      "to": {
        "x": -0.5,
        "y": 0.5,
        "z": 0.0
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      331,
      349,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": 2.0,
          "y": 5.0,
          "z": 0.0
        },
        "relative": true
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      355,
      374,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": 2.0,
          "y": -5.0,
          "z": 0.0
        },
        "relative": true
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      380,
      436,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": -0.5,
          "y": 0.5,
          "z": 0.0
        },
        "relative": false
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      442,
      449,
      0
    ],
    "command": {
      "type": "close_path",
      "path_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "enable_sketch_mode",
      "entity_id": "[uuid]",
      "ortho": false,
      "animated": false,
      "adjust_camera": false,
      "planar_normal": null
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "extrude",
      "target": "[uuid]",
      "distance": 5.0,
      "faces": null
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "sketch_mode_disable"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "object_bring_to_front",
      "object_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "solid3d_get_extrusion_face_info",
      "object_id": "[uuid]",
      "edge_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      463,
      493,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      544,
      571,
      0
    ],
    "command": {
      "type": "enable_sketch_mode",
      "entity_id": "[uuid]",
      "ortho": false,
      "animated": false,
      "adjust_camera": false,
      "planar_normal": null
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      544,
      571,
      0
    ],
    "command": {
      "type": "start_path"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      544,
      571,
      0
    ],
    "command": {
      "type": "move_path_pen",
      "path": "[uuid]",
      "to": {
        "x": 1.0,
        "y": 1.5,
        "z": 0.0
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      577,
      611,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": 0.5,
          "y": 2.0,
          "z": 0.0
        },
        "relative": true
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      617,
      636,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": 1.0,
          "y": -2.0,
          "z": 0.0
        },
        "relative": true
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      642,
      698,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": 1.0,
          "y": 1.5,
          "z": 0.0
        },
        "relative": false
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      704,
      711,
      0
    ],
    "command": {
      "type": "close_path",
      "path_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "enable_sketch_mode",
      "entity_id": "[uuid]",
      "ortho": false,
      "animated": false,
      "adjust_camera": false,
      "planar_normal": null
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "extrude",
      "target": "[uuid]",
      "distance": 4.0,
      "faces": null
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "sketch_mode_disable"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "object_bring_to_front",
      "object_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "solid3d_get_extrusion_face_info",
      "object_id": "[uuid]",
      "edge_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      725,
      755,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      806,
      833,
      0
    ],
    "command": {
      "type": "enable_sketch_mode",
      "entity_id": "[uuid]",
      "ortho": false,
      "animated": false,
      "adjust_camera": false,
      "planar_normal": null
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      806,
      833,
      0
    ],
    "command": {
      "type": "start_path"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      806,
      833,
      0
    ],
    "command": {
      "type": "move_path_pen",
      "path": "[uuid]",
      "to": {
        "x": -3.0,
        "y": 14.0,
        "z": 0.0
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      839,
      859,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": 0.5,
          "y": 1.0,
          "z": 0.0
        },
        "relative": true
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      865,
      886,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": 0.5,
          "y": -2.0,
          "z": 0.0
        },
        "relative": true
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      892,
      948,
      0
    ],
    "command": {
      "type": "extend_path",
      "path": "[uuid]",
      "segment": {
        "type": "line",
        "end": {
          "x": -3.0,
          "y": 14.0,
          "z": 0.0
        },
        "relative": false
      }
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      954,
      961,
      0
    ],
    "command": {
      "type": "close_path",
      "path_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "enable_sketch_mode",
      "entity_id": "[uuid]",
      "ortho": false,
      "animated": false,
      "adjust_camera": false,
      "planar_normal": null
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "extrude",
      "target": "[uuid]",
      "distance": 3.0,
      "faces": null
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "sketch_mode_disable"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "object_bring_to_front",
      "object_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "solid3d_get_extrusion_face_info",
      "object_id": "[uuid]",
      "edge_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "solid3d_get_opposite_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  },
  {
    "cmdId": "[uuid]",
    "range": [
      975,
      1005,
      0
    ],
    "command": {
      "type": "solid3d_get_next_adjacent_edge",
      "object_id": "[uuid]",
      "edge_id": "[uuid]",
      "face_id": "[uuid]"
    }
  }
]
