Turn on units of measure (BREAKING CHANGE) (#6343)
* Turn on uom checks Signed-off-by: Nick Cameron <nrc@ncameron.org> * Convert all lengths to mm for engine calls Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
		@ -29,14 +29,6 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
      "hidden": true
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "set_scene_units",
 | 
			
		||||
      "unit": "mm"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
@ -1625,37 +1617,5 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "set_scene_units",
 | 
			
		||||
      "unit": "mm"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "set_scene_units",
 | 
			
		||||
      "unit": "mm"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "set_scene_units",
 | 
			
		||||
      "unit": "mm"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "set_scene_units",
 | 
			
		||||
      "unit": "mm"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@ -6,54 +6,54 @@ flowchart LR
 | 
			
		||||
    4["Segment<br>[646, 757, 0]"]
 | 
			
		||||
    5["Segment<br>[763, 816, 0]"]
 | 
			
		||||
    6["Segment<br>[822, 869, 0]"]
 | 
			
		||||
    7["Segment<br>[875, 970, 0]"]
 | 
			
		||||
    8["Segment<br>[976, 1047, 0]"]
 | 
			
		||||
    9["Segment<br>[1053, 1104, 0]"]
 | 
			
		||||
    10["Segment<br>[1110, 1163, 0]"]
 | 
			
		||||
    11["Segment<br>[1169, 1238, 0]"]
 | 
			
		||||
    12["Segment<br>[1244, 1280, 0]"]
 | 
			
		||||
    13["Segment<br>[1286, 1316, 0]"]
 | 
			
		||||
    14["Segment<br>[1322, 1352, 0]"]
 | 
			
		||||
    15["Segment<br>[1358, 1388, 0]"]
 | 
			
		||||
    16["Segment<br>[1394, 1424, 0]"]
 | 
			
		||||
    17["Segment<br>[1430, 1459, 0]"]
 | 
			
		||||
    18["Segment<br>[1465, 1495, 0]"]
 | 
			
		||||
    19["Segment<br>[1501, 1530, 0]"]
 | 
			
		||||
    20["Segment<br>[1536, 1565, 0]"]
 | 
			
		||||
    21["Segment<br>[1571, 1634, 0]"]
 | 
			
		||||
    22["Segment<br>[1640, 1696, 0]"]
 | 
			
		||||
    23["Segment<br>[1702, 1709, 0]"]
 | 
			
		||||
    7["Segment<br>[875, 971, 0]"]
 | 
			
		||||
    8["Segment<br>[977, 1048, 0]"]
 | 
			
		||||
    9["Segment<br>[1054, 1105, 0]"]
 | 
			
		||||
    10["Segment<br>[1111, 1164, 0]"]
 | 
			
		||||
    11["Segment<br>[1170, 1239, 0]"]
 | 
			
		||||
    12["Segment<br>[1245, 1281, 0]"]
 | 
			
		||||
    13["Segment<br>[1287, 1317, 0]"]
 | 
			
		||||
    14["Segment<br>[1323, 1353, 0]"]
 | 
			
		||||
    15["Segment<br>[1359, 1389, 0]"]
 | 
			
		||||
    16["Segment<br>[1395, 1425, 0]"]
 | 
			
		||||
    17["Segment<br>[1431, 1460, 0]"]
 | 
			
		||||
    18["Segment<br>[1466, 1496, 0]"]
 | 
			
		||||
    19["Segment<br>[1502, 1531, 0]"]
 | 
			
		||||
    20["Segment<br>[1537, 1566, 0]"]
 | 
			
		||||
    21["Segment<br>[1572, 1635, 0]"]
 | 
			
		||||
    22["Segment<br>[1641, 1697, 0]"]
 | 
			
		||||
    23["Segment<br>[1703, 1710, 0]"]
 | 
			
		||||
    24[Solid2d]
 | 
			
		||||
  end
 | 
			
		||||
  subgraph path85 [Path]
 | 
			
		||||
    85["Path<br>[1869, 1913, 0]"]
 | 
			
		||||
    86["Segment<br>[1919, 1999, 0]"]
 | 
			
		||||
    87["Segment<br>[2005, 2115, 0]"]
 | 
			
		||||
    88["Segment<br>[2121, 2238, 0]"]
 | 
			
		||||
    89["Segment<br>[2244, 2300, 0]"]
 | 
			
		||||
    90["Segment<br>[2306, 2313, 0]"]
 | 
			
		||||
    85["Path<br>[1870, 1914, 0]"]
 | 
			
		||||
    86["Segment<br>[1920, 2000, 0]"]
 | 
			
		||||
    87["Segment<br>[2006, 2116, 0]"]
 | 
			
		||||
    88["Segment<br>[2122, 2239, 0]"]
 | 
			
		||||
    89["Segment<br>[2245, 2301, 0]"]
 | 
			
		||||
    90["Segment<br>[2307, 2314, 0]"]
 | 
			
		||||
    91[Solid2d]
 | 
			
		||||
  end
 | 
			
		||||
  subgraph path107 [Path]
 | 
			
		||||
    107["Path<br>[2474, 2519, 0]"]
 | 
			
		||||
    108["Segment<br>[2525, 2603, 0]"]
 | 
			
		||||
    109["Segment<br>[2609, 2719, 0]"]
 | 
			
		||||
    110["Segment<br>[2725, 2842, 0]"]
 | 
			
		||||
    111["Segment<br>[2848, 2904, 0]"]
 | 
			
		||||
    112["Segment<br>[2910, 2917, 0]"]
 | 
			
		||||
    107["Path<br>[2475, 2520, 0]"]
 | 
			
		||||
    108["Segment<br>[2526, 2604, 0]"]
 | 
			
		||||
    109["Segment<br>[2610, 2720, 0]"]
 | 
			
		||||
    110["Segment<br>[2726, 2843, 0]"]
 | 
			
		||||
    111["Segment<br>[2849, 2905, 0]"]
 | 
			
		||||
    112["Segment<br>[2911, 2918, 0]"]
 | 
			
		||||
    113[Solid2d]
 | 
			
		||||
  end
 | 
			
		||||
  subgraph path129 [Path]
 | 
			
		||||
    129["Path<br>[3076, 3121, 0]"]
 | 
			
		||||
    130["Segment<br>[3127, 3212, 0]"]
 | 
			
		||||
    131["Segment<br>[3218, 3328, 0]"]
 | 
			
		||||
    132["Segment<br>[3334, 3451, 0]"]
 | 
			
		||||
    133["Segment<br>[3457, 3513, 0]"]
 | 
			
		||||
    134["Segment<br>[3519, 3526, 0]"]
 | 
			
		||||
    129["Path<br>[3077, 3122, 0]"]
 | 
			
		||||
    130["Segment<br>[3128, 3213, 0]"]
 | 
			
		||||
    131["Segment<br>[3219, 3329, 0]"]
 | 
			
		||||
    132["Segment<br>[3335, 3452, 0]"]
 | 
			
		||||
    133["Segment<br>[3458, 3514, 0]"]
 | 
			
		||||
    134["Segment<br>[3520, 3527, 0]"]
 | 
			
		||||
    135[Solid2d]
 | 
			
		||||
  end
 | 
			
		||||
  1["Plane<br>[515, 532, 0]"]
 | 
			
		||||
  25["Sweep Extrusion<br>[1752, 1782, 0]"]
 | 
			
		||||
  25["Sweep Extrusion<br>[1753, 1783, 0]"]
 | 
			
		||||
  26[Wall]
 | 
			
		||||
  27[Wall]
 | 
			
		||||
  28[Wall]
 | 
			
		||||
@ -113,7 +113,7 @@ flowchart LR
 | 
			
		||||
  82["SweepEdge Adjacent"]
 | 
			
		||||
  83["SweepEdge Opposite"]
 | 
			
		||||
  84["SweepEdge Adjacent"]
 | 
			
		||||
  92["Sweep Extrusion<br>[2357, 2388, 0]"]
 | 
			
		||||
  92["Sweep Extrusion<br>[2358, 2389, 0]"]
 | 
			
		||||
  93[Wall]
 | 
			
		||||
  94[Wall]
 | 
			
		||||
  95[Wall]
 | 
			
		||||
@ -128,7 +128,7 @@ flowchart LR
 | 
			
		||||
  104["SweepEdge Adjacent"]
 | 
			
		||||
  105["SweepEdge Opposite"]
 | 
			
		||||
  106["SweepEdge Adjacent"]
 | 
			
		||||
  114["Sweep Extrusion<br>[2960, 2991, 0]"]
 | 
			
		||||
  114["Sweep Extrusion<br>[2961, 2992, 0]"]
 | 
			
		||||
  115[Wall]
 | 
			
		||||
  116[Wall]
 | 
			
		||||
  117[Wall]
 | 
			
		||||
@ -143,7 +143,7 @@ flowchart LR
 | 
			
		||||
  126["SweepEdge Adjacent"]
 | 
			
		||||
  127["SweepEdge Opposite"]
 | 
			
		||||
  128["SweepEdge Adjacent"]
 | 
			
		||||
  136["Sweep Extrusion<br>[3570, 3600, 0]"]
 | 
			
		||||
  136["Sweep Extrusion<br>[3571, 3601, 0]"]
 | 
			
		||||
  137[Wall]
 | 
			
		||||
  138[Wall]
 | 
			
		||||
  139[Wall]
 | 
			
		||||
@ -158,9 +158,9 @@ flowchart LR
 | 
			
		||||
  148["SweepEdge Adjacent"]
 | 
			
		||||
  149["SweepEdge Opposite"]
 | 
			
		||||
  150["SweepEdge Adjacent"]
 | 
			
		||||
  151["StartSketchOnFace<br>[1824, 1863, 0]"]
 | 
			
		||||
  152["StartSketchOnFace<br>[2429, 2468, 0]"]
 | 
			
		||||
  153["StartSketchOnFace<br>[3033, 3070, 0]"]
 | 
			
		||||
  151["StartSketchOnFace<br>[1825, 1864, 0]"]
 | 
			
		||||
  152["StartSketchOnFace<br>[2430, 2469, 0]"]
 | 
			
		||||
  153["StartSketchOnFace<br>[3034, 3071, 0]"]
 | 
			
		||||
  1 --- 2
 | 
			
		||||
  2 --- 3
 | 
			
		||||
  2 --- 4
 | 
			
		||||
 | 
			
		||||
@ -1117,13 +1117,13 @@ description: Result of parsing router-template-cross-bar.kcl
 | 
			
		||||
                        "right": {
 | 
			
		||||
                          "commentStart": 0,
 | 
			
		||||
                          "end": 0,
 | 
			
		||||
                          "raw": "2",
 | 
			
		||||
                          "raw": "2_",
 | 
			
		||||
                          "start": 0,
 | 
			
		||||
                          "type": "Literal",
 | 
			
		||||
                          "type": "Literal",
 | 
			
		||||
                          "value": {
 | 
			
		||||
                            "value": 2.0,
 | 
			
		||||
                            "suffix": "None"
 | 
			
		||||
                            "suffix": "Count"
 | 
			
		||||
                          }
 | 
			
		||||
                        },
 | 
			
		||||
                        "start": 0,
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user