Type check and coerce arguments to user functions and return values from std Rust functions (#6958)

* Shuffle around function call code

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Refactor function calls to share more code

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Hack to leave the result of revolve as a singleton rather than array

Signed-off-by: Nick Cameron <nrc@ncameron.org>

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-05-19 16:50:15 +12:00
committed by GitHub
parent f3e9d110c0
commit b19acd550d
197 changed files with 13837 additions and 14317 deletions

View File

@ -177,7 +177,7 @@ You can also import the whole module. This is useful if you want to use the
result of a module as a variable, like a part. result of a module as a variable, like a part.
```norun ```norun
import "tests/inputs/cube.kcl" as cube import "cube.kcl"
cube cube
|> translate(x=10) |> translate(x=10)
``` ```
@ -241,7 +241,7 @@ If you want to have multiple instances of the same object, you can use the
[`clone`](/docs/kcl/clone) function. This will render a new instance of the object in memory. [`clone`](/docs/kcl/clone) function. This will render a new instance of the object in memory.
```norun ```norun
import cube from "tests/inputs/cube.kcl" import cube from "cube.kcl"
cube cube
|> translate(x=10) |> translate(x=10)
@ -257,7 +257,7 @@ separate objects in memory, and can be manipulated independently.
Here is an example with a file from another CAD system: Here is an example with a file from another CAD system:
```kcl ```kcl
import "tests/inputs/cube.step" as cube import "tests/inputs/cube.step"
cube cube
|> translate(x=10) |> translate(x=10)

View File

@ -12,7 +12,7 @@ reduce(
@array: [any], @array: [any],
initial: any, initial: any,
f: fn(any, accum: any): any, f: fn(any, accum: any): any,
): [any] ): any
``` ```
Take a starting value. Then, for each element of an array, calculate the next value, Take a starting value. Then, for each element of an array, calculate the next value,
@ -28,7 +28,7 @@ using the previous value and the element.
### Returns ### Returns
[`[any]`](/docs/kcl-std/types/std-types-any) [`any`](/docs/kcl-std/types/std-types-any)
### Examples ### Examples

View File

@ -11,7 +11,7 @@ Compute the length of the given leg.
legLen( legLen(
hypotenuse: number(Length), hypotenuse: number(Length),
leg: number(Length), leg: number(Length),
): number(deg) ): number(Length)
``` ```
@ -25,7 +25,7 @@ legLen(
### Returns ### Returns
[`number(deg)`](/docs/kcl-std/types/std-types-number) - A number. [`number(Length)`](/docs/kcl-std/types/std-types-number) - A number.
### Examples ### Examples

View File

@ -17,7 +17,7 @@ revolve(
bidirectionalAngle?: number(Angle), bidirectionalAngle?: number(Angle),
tagStart?: tag, tagStart?: tag,
tagEnd?: tag, tagEnd?: tag,
): Solid ): [Solid; 1+]
``` ```
This, like extrude, is able to create a 3-dimensional solid from a This, like extrude, is able to create a 3-dimensional solid from a
@ -46,7 +46,7 @@ revolved around the same axis.
### Returns ### Returns
[`Solid`](/docs/kcl-std/types/std-types-Solid) - A solid is a collection of extruded surfaces. [`[Solid; 1+]`](/docs/kcl-std/types/std-types-Solid)
### Examples ### Examples

View File

@ -63,9 +63,9 @@ slabVoidStart = -slabWidth / 2 + handrailThickness
slabVoidWidth = slabWidth - (handrailThickness * 2) slabVoidWidth = slabWidth - (handrailThickness * 2)
slabVoidShape = startSketchOn(slabAndHandrailGeometry, face = END) slabVoidShape = startSketchOn(slabAndHandrailGeometry, face = END)
|> startProfile(%, at = [slabVoidStart, slabVoidStart]) |> startProfile(%, at = [slabVoidStart, slabVoidStart])
|> line(%, end = [0, slabVoidWidth], %) |> line(%, end = [0, slabVoidWidth])
|> line(%, end = [slabVoidWidth, 0], %) |> line(%, end = [slabVoidWidth, 0])
|> line(%, end = [0, -slabVoidWidth], %) |> line(%, end = [0, -slabVoidWidth])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)]) |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close(%) |> close(%)

View File

@ -2,18 +2,17 @@ use fnv::FnvHashMap;
use indexmap::IndexMap; use indexmap::IndexMap;
use kittycad_modeling_cmds::{ use kittycad_modeling_cmds::{
self as kcmc, self as kcmc,
id::ModelingCmdId,
ok_response::OkModelingCmdResponse, ok_response::OkModelingCmdResponse,
shared::ExtrusionFaceCapType, shared::ExtrusionFaceCapType,
websocket::{BatchResponse, OkWebSocketResponseData, WebSocketResponse}, websocket::{BatchResponse, OkWebSocketResponseData, WebSocketResponse},
EnableSketchMode, ModelingCmd, EnableSketchMode, ModelingCmd,
}; };
use schemars::JsonSchema;
use serde::{ser::SerializeSeq, Serialize}; use serde::{ser::SerializeSeq, Serialize};
use uuid::Uuid; use uuid::Uuid;
use crate::{ use crate::{
errors::KclErrorDetails, errors::KclErrorDetails,
execution::ArtifactId,
parsing::ast::types::{Node, Program}, parsing::ast::types::{Node, Program},
KclError, NodePath, SourceRange, KclError, NodePath, SourceRange,
}; };
@ -58,52 +57,6 @@ impl PartialOrd for ArtifactCommand {
} }
} }
#[derive(Debug, Clone, Copy, Serialize, PartialEq, Eq, Ord, PartialOrd, Hash, ts_rs::TS, JsonSchema)]
#[ts(export_to = "Artifact.ts")]
pub struct ArtifactId(Uuid);
impl ArtifactId {
pub fn new(uuid: Uuid) -> Self {
Self(uuid)
}
}
impl From<Uuid> for ArtifactId {
fn from(uuid: Uuid) -> Self {
Self::new(uuid)
}
}
impl From<&Uuid> for ArtifactId {
fn from(uuid: &Uuid) -> Self {
Self::new(*uuid)
}
}
impl From<ArtifactId> for Uuid {
fn from(id: ArtifactId) -> Self {
id.0
}
}
impl From<&ArtifactId> for Uuid {
fn from(id: &ArtifactId) -> Self {
id.0
}
}
impl From<ModelingCmdId> for ArtifactId {
fn from(id: ModelingCmdId) -> Self {
Self::new(*id.as_ref())
}
}
impl From<&ModelingCmdId> for ArtifactId {
fn from(id: &ModelingCmdId) -> Self {
Self::new(*id.as_ref())
}
}
pub type DummyPathToNode = Vec<()>; pub type DummyPathToNode = Vec<()>;
fn serialize_dummy_path_to_node<S>(_path_to_node: &DummyPathToNode, serializer: S) -> Result<S::Ok, S::Error> fn serialize_dummy_path_to_node<S>(_path_to_node: &DummyPathToNode, serializer: S) -> Result<S::Ok, S::Error>

View File

@ -3,7 +3,7 @@ use schemars::JsonSchema;
use serde::Serialize; use serde::Serialize;
use super::{types::NumericType, ArtifactId, KclValue}; use super::{types::NumericType, ArtifactId, KclValue};
use crate::{docs::StdLibFn, ModuleId, SourceRange}; use crate::{ModuleId, SourceRange};
/// A CAD modeling operation for display in the feature tree, AKA operations /// A CAD modeling operation for display in the feature tree, AKA operations
/// timeline. /// timeline.
@ -13,21 +13,6 @@ use crate::{docs::StdLibFn, ModuleId, SourceRange};
pub enum Operation { pub enum Operation {
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
StdLibCall { StdLibCall {
/// The standard library function being called.
#[serde(flatten)]
std_lib_fn: StdLibFnRef,
/// The unlabeled argument to the function.
unlabeled_arg: Option<OpArg>,
/// The labeled keyword arguments to the function.
labeled_args: IndexMap<String, OpArg>,
/// The source range of the operation in the source code.
source_range: SourceRange,
/// True if the operation resulted in an error.
#[serde(default, skip_serializing_if = "is_false")]
is_error: bool,
},
#[serde(rename_all = "camelCase")]
KclStdLibCall {
name: String, name: String,
/// The unlabeled argument to the function. /// The unlabeled argument to the function.
unlabeled_arg: Option<OpArg>, unlabeled_arg: Option<OpArg>,
@ -57,19 +42,12 @@ impl PartialOrd for Operation {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> { fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(match (self, other) { Some(match (self, other) {
(Self::StdLibCall { source_range: a, .. }, Self::StdLibCall { source_range: b, .. }) => a.cmp(b), (Self::StdLibCall { source_range: a, .. }, Self::StdLibCall { source_range: b, .. }) => a.cmp(b),
(Self::StdLibCall { source_range: a, .. }, Self::KclStdLibCall { source_range: b, .. }) => a.cmp(b),
(Self::StdLibCall { source_range: a, .. }, Self::GroupBegin { source_range: b, .. }) => a.cmp(b), (Self::StdLibCall { source_range: a, .. }, Self::GroupBegin { source_range: b, .. }) => a.cmp(b),
(Self::StdLibCall { .. }, Self::GroupEnd) => std::cmp::Ordering::Less, (Self::StdLibCall { .. }, Self::GroupEnd) => std::cmp::Ordering::Less,
(Self::KclStdLibCall { source_range: a, .. }, Self::KclStdLibCall { source_range: b, .. }) => a.cmp(b),
(Self::KclStdLibCall { source_range: a, .. }, Self::StdLibCall { source_range: b, .. }) => a.cmp(b),
(Self::KclStdLibCall { source_range: a, .. }, Self::GroupBegin { source_range: b, .. }) => a.cmp(b),
(Self::KclStdLibCall { .. }, Self::GroupEnd) => std::cmp::Ordering::Less,
(Self::GroupBegin { source_range: a, .. }, Self::GroupBegin { source_range: b, .. }) => a.cmp(b), (Self::GroupBegin { source_range: a, .. }, Self::GroupBegin { source_range: b, .. }) => a.cmp(b),
(Self::GroupBegin { source_range: a, .. }, Self::StdLibCall { source_range: b, .. }) => a.cmp(b), (Self::GroupBegin { source_range: a, .. }, Self::StdLibCall { source_range: b, .. }) => a.cmp(b),
(Self::GroupBegin { source_range: a, .. }, Self::KclStdLibCall { source_range: b, .. }) => a.cmp(b),
(Self::GroupBegin { .. }, Self::GroupEnd) => std::cmp::Ordering::Less, (Self::GroupBegin { .. }, Self::GroupEnd) => std::cmp::Ordering::Less,
(Self::GroupEnd, Self::StdLibCall { .. }) => std::cmp::Ordering::Greater, (Self::GroupEnd, Self::StdLibCall { .. }) => std::cmp::Ordering::Greater,
(Self::GroupEnd, Self::KclStdLibCall { .. }) => std::cmp::Ordering::Greater,
(Self::GroupEnd, Self::GroupBegin { .. }) => std::cmp::Ordering::Greater, (Self::GroupEnd, Self::GroupBegin { .. }) => std::cmp::Ordering::Greater,
(Self::GroupEnd, Self::GroupEnd) => std::cmp::Ordering::Equal, (Self::GroupEnd, Self::GroupEnd) => std::cmp::Ordering::Equal,
}) })
@ -81,7 +59,6 @@ impl Operation {
pub(crate) fn set_std_lib_call_is_error(&mut self, is_err: bool) { pub(crate) fn set_std_lib_call_is_error(&mut self, is_err: bool) {
match self { match self {
Self::StdLibCall { ref mut is_error, .. } => *is_error = is_err, Self::StdLibCall { ref mut is_error, .. } => *is_error = is_err,
Self::KclStdLibCall { ref mut is_error, .. } => *is_error = is_err,
Self::GroupBegin { .. } | Self::GroupEnd => {} Self::GroupBegin { .. } | Self::GroupEnd => {}
} }
} }
@ -107,6 +84,7 @@ pub enum Group {
labeled_args: IndexMap<String, OpArg>, labeled_args: IndexMap<String, OpArg>,
}, },
/// A whole-module import use. /// A whole-module import use.
#[allow(dead_code)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
ModuleInstance { ModuleInstance {
/// The name of the module being used. /// The name of the module being used.
@ -135,54 +113,6 @@ impl OpArg {
} }
} }
/// A reference to a standard library function. This exists to implement
/// `PartialEq` and `Eq` for `Operation`.
#[derive(Debug, Clone, Serialize, ts_rs::TS, JsonSchema)]
#[ts(export_to = "Operation.ts")]
#[serde(rename_all = "camelCase")]
pub struct StdLibFnRef {
// The following doc comment gets inlined into Operation, overriding what's
// there, in the generated TS. We serialize to its name. Renaming the
// field to "name" allows it to match the other variant.
/// The standard library function being called.
#[serde(
rename = "name",
serialize_with = "std_lib_fn_name",
deserialize_with = "std_lib_fn_from_name"
)]
#[ts(type = "string", rename = "name")]
pub std_lib_fn: Box<dyn StdLibFn>,
}
impl StdLibFnRef {
pub(crate) fn new(std_lib_fn: Box<dyn StdLibFn>) -> Self {
Self { std_lib_fn }
}
}
impl From<&Box<dyn StdLibFn>> for StdLibFnRef {
fn from(std_lib_fn: &Box<dyn StdLibFn>) -> Self {
Self::new(std_lib_fn.clone())
}
}
impl PartialEq for StdLibFnRef {
fn eq(&self, other: &Self) -> bool {
self.std_lib_fn.name() == other.std_lib_fn.name()
}
}
impl Eq for StdLibFnRef {}
#[expect(clippy::borrowed_box, reason = "Explicit Box is needed for serde")]
fn std_lib_fn_name<S>(std_lib_fn: &Box<dyn StdLibFn>, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
{
let name = std_lib_fn.name();
serializer.serialize_str(&name)
}
fn is_false(b: &bool) -> bool { fn is_false(b: &bool) -> bool {
!*b !*b
} }

View File

@ -1,42 +1,32 @@
use std::collections::HashMap; use std::collections::HashMap;
use async_recursion::async_recursion; use async_recursion::async_recursion;
use indexmap::IndexMap;
#[cfg(feature = "artifact-graph")]
use crate::execution::cad_op::{Group, OpArg, OpKclValue, Operation};
use crate::{ use crate::{
errors::{KclError, KclErrorDetails}, errors::{KclError, KclErrorDetails},
execution::{ execution::{
annotations, annotations,
fn_call::Args,
kcl_value::{FunctionSource, TypeDef}, kcl_value::{FunctionSource, TypeDef},
memory, memory,
state::ModuleState, state::ModuleState,
types::{NumericType, PrimitiveType, RuntimeType}, types::{NumericType, PrimitiveType, RuntimeType},
BodyType, EnvironmentRef, ExecState, ExecutorContext, KclValue, Metadata, PlaneType, TagEngineInfo, BodyType, EnvironmentRef, ExecState, ExecutorContext, KclValue, Metadata, PlaneType, StatementKind,
TagIdentifier, TagIdentifier,
}, },
fmt, fmt,
modules::{ModuleId, ModulePath, ModuleRepr}, modules::{ModuleId, ModulePath, ModuleRepr},
parsing::ast::types::{ parsing::ast::types::{
Annotation, ArrayExpression, ArrayRangeExpression, AscribedExpression, BinaryExpression, BinaryOperator, Annotation, ArrayExpression, ArrayRangeExpression, AscribedExpression, BinaryExpression, BinaryOperator,
BinaryPart, BodyItem, CallExpressionKw, Expr, FunctionExpression, IfExpression, ImportPath, ImportSelector, BinaryPart, BodyItem, Expr, IfExpression, ImportPath, ImportSelector, ItemVisibility, LiteralIdentifier,
ItemVisibility, LiteralIdentifier, LiteralValue, MemberExpression, MemberObject, Name, Node, NodeRef, LiteralValue, MemberExpression, MemberObject, Name, Node, NodeRef, ObjectExpression, PipeExpression, Program,
ObjectExpression, PipeExpression, Program, TagDeclarator, Type, UnaryExpression, UnaryOperator, TagDeclarator, Type, UnaryExpression, UnaryOperator,
}, },
source_range::SourceRange, source_range::SourceRange,
std::{ std::args::TyF64,
args::{Arg, Args, KwArgs, TyF64},
FunctionKind,
},
CompilationError, CompilationError,
}; };
enum StatementKind<'a> {
Declaration { name: &'a str },
Expression,
}
impl<'a> StatementKind<'a> { impl<'a> StatementKind<'a> {
fn expect_name(&self) -> &'a str { fn expect_name(&self) -> &'a str {
match self { match self {
@ -594,7 +584,7 @@ impl ExecutorContext {
} }
#[async_recursion] #[async_recursion]
async fn execute_expr<'a: 'async_recursion>( pub(super) async fn execute_expr<'a: 'async_recursion>(
&self, &self,
init: &Expr, init: &Expr,
exec_state: &mut ExecState, exec_state: &mut ExecState,
@ -787,7 +777,7 @@ impl BinaryPart {
} }
impl Node<Name> { impl Node<Name> {
async fn get_result<'a>( pub(super) async fn get_result<'a>(
&self, &self,
exec_state: &'a mut ExecState, exec_state: &'a mut ExecState,
ctx: &ExecutorContext, ctx: &ExecutorContext,
@ -1305,300 +1295,6 @@ async fn inner_execute_pipe_body(
Ok(final_output) Ok(final_output)
} }
impl Node<CallExpressionKw> {
#[async_recursion]
pub async fn execute(&self, exec_state: &mut ExecState, ctx: &ExecutorContext) -> Result<KclValue, KclError> {
let fn_name = &self.callee;
let callsite: SourceRange = self.into();
// Build a hashmap from argument labels to the final evaluated values.
let mut fn_args = IndexMap::with_capacity(self.arguments.len());
let mut errors = Vec::new();
for arg_expr in &self.arguments {
let source_range = SourceRange::from(arg_expr.arg.clone());
let metadata = Metadata { source_range };
let value = ctx
.execute_expr(&arg_expr.arg, exec_state, &metadata, &[], StatementKind::Expression)
.await?;
let arg = Arg::new(value, source_range);
match &arg_expr.label {
Some(l) => {
fn_args.insert(l.name.clone(), arg);
}
None => {
if let Some(id) = arg_expr.arg.ident_name() {
fn_args.insert(id.to_owned(), arg);
} else {
errors.push(arg);
}
}
}
}
// Evaluate the unlabeled first param, if any exists.
let unlabeled = if let Some(ref arg_expr) = self.unlabeled {
let source_range = SourceRange::from(arg_expr.clone());
let metadata = Metadata { source_range };
let value = ctx
.execute_expr(arg_expr, exec_state, &metadata, &[], StatementKind::Expression)
.await?;
let label = arg_expr.ident_name().map(str::to_owned);
Some((label, Arg::new(value, source_range)))
} else {
None
};
let mut args = Args::new_kw(
KwArgs {
unlabeled,
labeled: fn_args,
errors,
},
self.into(),
ctx.clone(),
exec_state.pipe_value().map(|v| Arg::new(v.clone(), callsite)),
);
match ctx.stdlib.get_either(fn_name) {
FunctionKind::Core(func) => {
if func.deprecated() {
exec_state.warn(CompilationError::err(
self.callee.as_source_range(),
format!("`{fn_name}` is deprecated, see the docs for a recommended replacement"),
));
}
let formals = func.args(false);
// If it's possible the input arg was meant to be labelled and we probably don't want to use
// it as the input arg, then treat it as labelled.
if let Some((Some(label), _)) = &args.kw_args.unlabeled {
if (formals.iter().all(|a| a.label_required) || exec_state.pipe_value().is_some())
&& formals.iter().any(|a| &a.name == label && a.label_required)
&& !args.kw_args.labeled.contains_key(label)
{
let (label, arg) = args.kw_args.unlabeled.take().unwrap();
args.kw_args.labeled.insert(label.unwrap(), arg);
}
}
#[cfg(feature = "artifact-graph")]
let op = if func.feature_tree_operation() {
let op_labeled_args = args
.kw_args
.labeled
.iter()
.map(|(k, arg)| (k.clone(), OpArg::new(OpKclValue::from(&arg.value), arg.source_range)))
.collect();
Some(Operation::StdLibCall {
std_lib_fn: (&func).into(),
unlabeled_arg: args
.unlabeled_kw_arg_unconverted()
.map(|arg| OpArg::new(OpKclValue::from(&arg.value), arg.source_range)),
labeled_args: op_labeled_args,
source_range: callsite,
is_error: false,
})
} else {
None
};
for (label, arg) in &args.kw_args.labeled {
match formals.iter().find(|p| &p.name == label) {
Some(p) => {
if !p.label_required {
exec_state.err(CompilationError::err(
arg.source_range,
format!(
"The function `{fn_name}` expects an unlabeled first parameter (`{label}`), but it is labelled in the call"
),
));
}
}
None => {
exec_state.err(CompilationError::err(
arg.source_range,
format!("`{label}` is not an argument of `{fn_name}`"),
));
}
}
}
// Attempt to call the function.
let mut return_value = {
// Don't early-return in this block.
exec_state.mut_stack().push_new_env_for_rust_call();
let result = func.std_lib_fn()(exec_state, args).await;
exec_state.mut_stack().pop_env();
#[cfg(feature = "artifact-graph")]
if let Some(mut op) = op {
op.set_std_lib_call_is_error(result.is_err());
// Track call operation. We do this after the call
// since things like patternTransform may call user code
// before running, and we will likely want to use the
// return value. The call takes ownership of the args,
// so we need to build the op before the call.
exec_state.global.operations.push(op);
}
result
}?;
update_memory_for_tags_of_geometry(&mut return_value, exec_state)?;
Ok(return_value)
}
FunctionKind::UserDefined => {
// Clone the function so that we can use a mutable reference to
// exec_state.
let func = fn_name.get_result(exec_state, ctx).await?.clone();
let Some(fn_src) = func.as_fn() else {
return Err(KclError::Semantic(KclErrorDetails {
message: "cannot call this because it isn't a function".to_string(),
source_ranges: vec![callsite],
}));
};
let return_value = fn_src
.call_kw(Some(fn_name.to_string()), exec_state, ctx, args, callsite)
.await
.map_err(|e| {
// Add the call expression to the source ranges.
e.add_source_ranges(vec![callsite])
})?;
let result = return_value.ok_or_else(move || {
let mut source_ranges: Vec<SourceRange> = vec![callsite];
// We want to send the source range of the original function.
if let KclValue::Function { meta, .. } = func {
source_ranges = meta.iter().map(|m| m.source_range).collect();
};
KclError::UndefinedValue(KclErrorDetails {
message: format!("Result of user-defined function {} is undefined", fn_name),
source_ranges,
})
})?;
Ok(result)
}
}
}
}
fn update_memory_for_tags_of_geometry(result: &mut KclValue, exec_state: &mut ExecState) -> Result<(), KclError> {
// If the return result is a sketch or solid, we want to update the
// memory for the tags of the group.
// TODO: This could probably be done in a better way, but as of now this was my only idea
// and it works.
match result {
KclValue::Sketch { value } => {
for (name, tag) in value.tags.iter() {
if exec_state.stack().cur_frame_contains(name) {
exec_state.mut_stack().update(name, |v, _| {
v.as_mut_tag().unwrap().merge_info(tag);
});
} else {
exec_state
.mut_stack()
.add(
name.to_owned(),
KclValue::TagIdentifier(Box::new(tag.clone())),
SourceRange::default(),
)
.unwrap();
}
}
}
KclValue::Solid { ref mut value } => {
for v in &value.value {
if let Some(tag) = v.get_tag() {
// Get the past tag and update it.
let tag_id = if let Some(t) = value.sketch.tags.get(&tag.name) {
let mut t = t.clone();
let Some(info) = t.get_cur_info() else {
return Err(KclError::Internal(KclErrorDetails {
message: format!("Tag {} does not have path info", tag.name),
source_ranges: vec![tag.into()],
}));
};
let mut info = info.clone();
info.surface = Some(v.clone());
info.sketch = value.id;
t.info.push((exec_state.stack().current_epoch(), info));
t
} else {
// It's probably a fillet or a chamfer.
// Initialize it.
TagIdentifier {
value: tag.name.clone(),
info: vec![(
exec_state.stack().current_epoch(),
TagEngineInfo {
id: v.get_id(),
surface: Some(v.clone()),
path: None,
sketch: value.id,
},
)],
meta: vec![Metadata {
source_range: tag.clone().into(),
}],
}
};
// update the sketch tags.
value.sketch.merge_tags(Some(&tag_id).into_iter());
if exec_state.stack().cur_frame_contains(&tag.name) {
exec_state.mut_stack().update(&tag.name, |v, _| {
v.as_mut_tag().unwrap().merge_info(&tag_id);
});
} else {
exec_state
.mut_stack()
.add(
tag.name.clone(),
KclValue::TagIdentifier(Box::new(tag_id)),
SourceRange::default(),
)
.unwrap();
}
}
}
// Find the stale sketch in memory and update it.
if !value.sketch.tags.is_empty() {
let sketches_to_update: Vec<_> = exec_state
.stack()
.find_keys_in_current_env(|v| match v {
KclValue::Sketch { value: sk } => sk.original_id == value.sketch.original_id,
_ => false,
})
.cloned()
.collect();
for k in sketches_to_update {
exec_state.mut_stack().update(&k, |v, _| {
let sketch = v.as_mut_sketch().unwrap();
sketch.merge_tags(value.sketch.tags.values());
});
}
}
}
KclValue::Tuple { value, .. } | KclValue::HomArray { value, .. } => {
for v in value {
update_memory_for_tags_of_geometry(v, exec_state)?;
}
}
_ => {}
}
Ok(())
}
impl Node<TagDeclarator> { impl Node<TagDeclarator> {
pub async fn execute(&self, exec_state: &mut ExecState) -> Result<KclValue, KclError> { pub async fn execute(&self, exec_state: &mut ExecState) -> Result<KclValue, KclError> {
let memory_item = KclValue::TagIdentifier(Box::new(TagIdentifier { let memory_item = KclValue::TagIdentifier(Box::new(TagIdentifier {
@ -1893,409 +1589,6 @@ impl Node<PipeExpression> {
} }
} }
fn type_check_params_kw(
fn_name: Option<&str>,
function_expression: NodeRef<'_, FunctionExpression>,
args: &mut KwArgs,
exec_state: &mut ExecState,
) -> Result<(), KclError> {
// If it's possible the input arg was meant to be labelled and we probably don't want to use
// it as the input arg, then treat it as labelled.
if let Some((Some(label), _)) = &args.unlabeled {
if (function_expression.params.iter().all(|p| p.labeled) || exec_state.pipe_value().is_some())
&& function_expression
.params
.iter()
.any(|p| &p.identifier.name == label && p.labeled)
&& !args.labeled.contains_key(label)
{
let (label, arg) = args.unlabeled.take().unwrap();
args.labeled.insert(label.unwrap(), arg);
}
}
for (label, arg) in &mut args.labeled {
match function_expression.params.iter().find(|p| &p.identifier.name == label) {
Some(p) => {
if !p.labeled {
exec_state.err(CompilationError::err(
arg.source_range,
format!(
"{} expects an unlabeled first parameter (`{label}`), but it is labelled in the call",
fn_name
.map(|n| format!("The function `{}`", n))
.unwrap_or_else(|| "This function".to_owned()),
),
));
}
if let Some(ty) = &p.type_ {
arg.value = arg
.value
.coerce(
&RuntimeType::from_parsed(ty.inner.clone(), exec_state, arg.source_range).map_err(|e| KclError::Semantic(e.into()))?,
exec_state,
)
.map_err(|e| {
let mut message = format!(
"{label} requires a value with type `{}`, but found {}",
ty.inner,
arg.value.human_friendly_type(),
);
if let Some(ty) = e.explicit_coercion {
// TODO if we have access to the AST for the argument we could choose which example to suggest.
message = format!("{message}\n\nYou may need to add information about the type of the argument, for example:\n using a numeric suffix: `42{ty}`\n or using type ascription: `foo(): number({ty})`");
}
KclError::Semantic(KclErrorDetails {
message,
source_ranges: vec![arg.source_range],
})
})?;
}
}
None => {
exec_state.err(CompilationError::err(
arg.source_range,
format!(
"`{label}` is not an argument of {}",
fn_name
.map(|n| format!("`{}`", n))
.unwrap_or_else(|| "this function".to_owned()),
),
));
}
}
}
if !args.errors.is_empty() {
let actuals = args.labeled.keys();
let formals: Vec<_> = function_expression
.params
.iter()
.filter_map(|p| {
if !p.labeled {
return None;
}
let name = &p.identifier.name;
if actuals.clone().any(|a| a == name) {
return None;
}
Some(format!("`{name}`"))
})
.collect();
let suggestion = if formals.is_empty() {
String::new()
} else {
format!("; suggested labels: {}", formals.join(", "))
};
let mut errors = args.errors.iter().map(|e| {
CompilationError::err(
e.source_range,
format!("This argument needs a label, but it doesn't have one{suggestion}"),
)
});
let first = errors.next().unwrap();
errors.for_each(|e| exec_state.err(e));
return Err(KclError::Semantic(first.into()));
}
if let Some(arg) = &mut args.unlabeled {
if let Some(p) = function_expression.params.iter().find(|p| !p.labeled) {
if let Some(ty) = &p.type_ {
arg.1.value = arg
.1
.value
.coerce(
&RuntimeType::from_parsed(ty.inner.clone(), exec_state, arg.1.source_range)
.map_err(|e| KclError::Semantic(e.into()))?,
exec_state,
)
.map_err(|_| {
KclError::Semantic(KclErrorDetails {
message: format!(
"The input argument of {} requires a value with type `{}`, but found {}",
fn_name
.map(|n| format!("`{}`", n))
.unwrap_or_else(|| "this function".to_owned()),
ty.inner,
arg.1.value.human_friendly_type()
),
source_ranges: vec![arg.1.source_range],
})
})?;
}
}
}
Ok(())
}
fn assign_args_to_params_kw(
fn_name: Option<&str>,
function_expression: NodeRef<'_, FunctionExpression>,
mut args: Args,
exec_state: &mut ExecState,
) -> Result<(), KclError> {
type_check_params_kw(fn_name, function_expression, &mut args.kw_args, exec_state)?;
// Add the arguments to the memory. A new call frame should have already
// been created.
let source_ranges = vec![function_expression.into()];
for param in function_expression.params.iter() {
if param.labeled {
let arg = args.kw_args.labeled.get(&param.identifier.name);
let arg_val = match arg {
Some(arg) => arg.value.clone(),
None => match param.default_value {
Some(ref default_val) => KclValue::from_default_param(default_val.clone(), exec_state),
None => {
return Err(KclError::Semantic(KclErrorDetails {
source_ranges,
message: format!(
"This function requires a parameter {}, but you haven't passed it one.",
param.identifier.name
),
}));
}
},
};
exec_state
.mut_stack()
.add(param.identifier.name.clone(), arg_val, (&param.identifier).into())?;
} else {
let unlabelled = args.unlabeled_kw_arg_unconverted();
let Some(unlabeled) = unlabelled else {
let param_name = &param.identifier.name;
return Err(if args.kw_args.labeled.contains_key(param_name) {
KclError::Semantic(KclErrorDetails {
source_ranges,
message: format!("The function does declare a parameter named '{param_name}', but this parameter doesn't use a label. Try removing the `{param_name}:`"),
})
} else {
KclError::Semantic(KclErrorDetails {
source_ranges,
message: "This function expects an unlabeled first parameter, but you haven't passed it one."
.to_owned(),
})
});
};
exec_state.mut_stack().add(
param.identifier.name.clone(),
unlabeled.value.clone(),
(&param.identifier).into(),
)?;
}
}
Ok(())
}
fn coerce_result_type(
result: Result<Option<KclValue>, KclError>,
function_expression: NodeRef<'_, FunctionExpression>,
exec_state: &mut ExecState,
) -> Result<Option<KclValue>, KclError> {
if let Ok(Some(val)) = result {
if let Some(ret_ty) = &function_expression.return_type {
let ty = RuntimeType::from_parsed(ret_ty.inner.clone(), exec_state, ret_ty.as_source_range())
.map_err(|e| KclError::Semantic(e.into()))?;
let val = val.coerce(&ty, exec_state).map_err(|_| {
KclError::Semantic(KclErrorDetails {
message: format!(
"This function requires its result to be of type `{}`, but found {}",
ty.human_friendly_type(),
val.human_friendly_type(),
),
source_ranges: ret_ty.as_source_ranges(),
})
})?;
Ok(Some(val))
} else {
Ok(Some(val))
}
} else {
result
}
}
async fn call_user_defined_function_kw(
fn_name: Option<&str>,
args: Args,
memory: EnvironmentRef,
function_expression: NodeRef<'_, FunctionExpression>,
exec_state: &mut ExecState,
ctx: &ExecutorContext,
) -> Result<Option<KclValue>, KclError> {
// Create a new environment to execute the function body in so that local
// variables shadow variables in the parent scope. The new environment's
// parent should be the environment of the closure.
exec_state.mut_stack().push_new_env_for_call(memory);
if let Err(e) = assign_args_to_params_kw(fn_name, function_expression, args, exec_state) {
exec_state.mut_stack().pop_env();
return Err(e);
}
// Execute the function body using the memory we just created.
let result = ctx
.exec_block(&function_expression.body, exec_state, BodyType::Block)
.await;
let mut result = result.map(|_| {
exec_state
.stack()
.get(memory::RETURN_NAME, function_expression.as_source_range())
.ok()
.cloned()
});
result = coerce_result_type(result, function_expression, exec_state);
// Restore the previous memory.
exec_state.mut_stack().pop_env();
result
}
impl FunctionSource {
pub async fn call_kw(
&self,
fn_name: Option<String>,
exec_state: &mut ExecState,
ctx: &ExecutorContext,
mut args: Args,
callsite: SourceRange,
) -> Result<Option<KclValue>, KclError> {
match self {
FunctionSource::Std { func, ast, props } => {
if props.deprecated {
exec_state.warn(CompilationError::err(
callsite,
format!(
"`{}` is deprecated, see the docs for a recommended replacement",
props.name
),
));
}
type_check_params_kw(Some(&props.name), ast, &mut args.kw_args, exec_state)?;
if let Some(arg) = &mut args.kw_args.unlabeled {
if let Some(p) = ast.params.iter().find(|p| !p.labeled) {
if let Some(ty) = &p.type_ {
arg.1.value = arg
.1
.value
.coerce(
&RuntimeType::from_parsed(ty.inner.clone(), exec_state, arg.1.source_range)
.map_err(|e| KclError::Semantic(e.into()))?,
exec_state,
)
.map_err(|_| {
KclError::Semantic(KclErrorDetails {
message: format!(
"The input argument of {} requires a value with type `{}`, but found {}",
props.name,
ty.inner,
arg.1.value.human_friendly_type(),
),
source_ranges: vec![callsite],
})
})?;
}
}
}
#[cfg(feature = "artifact-graph")]
let op = if props.include_in_feature_tree {
let op_labeled_args = args
.kw_args
.labeled
.iter()
.map(|(k, arg)| (k.clone(), OpArg::new(OpKclValue::from(&arg.value), arg.source_range)))
.collect();
Some(Operation::KclStdLibCall {
name: fn_name.unwrap_or_default(),
unlabeled_arg: args
.unlabeled_kw_arg_unconverted()
.map(|arg| OpArg::new(OpKclValue::from(&arg.value), arg.source_range)),
labeled_args: op_labeled_args,
source_range: callsite,
is_error: false,
})
} else {
None
};
// Attempt to call the function.
exec_state.mut_stack().push_new_env_for_rust_call();
let mut result = {
// Don't early-return in this block.
let result = func(exec_state, args).await;
exec_state.mut_stack().pop_env();
#[cfg(feature = "artifact-graph")]
if let Some(mut op) = op {
op.set_std_lib_call_is_error(result.is_err());
// Track call operation. We do this after the call
// since things like patternTransform may call user code
// before running, and we will likely want to use the
// return value. The call takes ownership of the args,
// so we need to build the op before the call.
exec_state.global.operations.push(op);
}
result
}?;
update_memory_for_tags_of_geometry(&mut result, exec_state)?;
Ok(Some(result))
}
FunctionSource::User { ast, memory, .. } => {
// Track call operation.
#[cfg(feature = "artifact-graph")]
{
let op_labeled_args = args
.kw_args
.labeled
.iter()
.map(|(k, arg)| (k.clone(), OpArg::new(OpKclValue::from(&arg.value), arg.source_range)))
.collect();
exec_state.global.operations.push(Operation::GroupBegin {
group: Group::FunctionCall {
name: fn_name.clone(),
function_source_range: ast.as_source_range(),
unlabeled_arg: args
.kw_args
.unlabeled
.as_ref()
.map(|arg| OpArg::new(OpKclValue::from(&arg.1.value), arg.1.source_range)),
labeled_args: op_labeled_args,
},
source_range: callsite,
});
}
let result =
call_user_defined_function_kw(fn_name.as_deref(), args, *memory, ast, exec_state, ctx).await;
// Track return operation.
#[cfg(feature = "artifact-graph")]
exec_state.global.operations.push(Operation::GroupEnd);
result
}
FunctionSource::None => unreachable!(),
}
}
}
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use std::sync::Arc; use std::sync::Arc;
@ -2305,151 +1598,10 @@ mod test {
use super::*; use super::*;
use crate::{ use crate::{
exec::UnitType, exec::UnitType,
execution::{memory::Stack, parse_execute, ContextType}, execution::{parse_execute, ContextType},
parsing::ast::types::{DefaultParamVal, Identifier, Parameter},
ExecutorSettings, UnitLen, ExecutorSettings, UnitLen,
}; };
#[tokio::test(flavor = "multi_thread")]
async fn test_assign_args_to_params() {
// Set up a little framework for this test.
fn mem(number: usize) -> KclValue {
KclValue::Number {
value: number as f64,
ty: NumericType::count(),
meta: Default::default(),
}
}
fn ident(s: &'static str) -> Node<Identifier> {
Node::no_src(Identifier {
name: s.to_owned(),
digest: None,
})
}
fn opt_param(s: &'static str) -> Parameter {
Parameter {
identifier: ident(s),
type_: None,
default_value: Some(DefaultParamVal::none()),
labeled: true,
digest: None,
}
}
fn req_param(s: &'static str) -> Parameter {
Parameter {
identifier: ident(s),
type_: None,
default_value: None,
labeled: true,
digest: None,
}
}
fn additional_program_memory(items: &[(String, KclValue)]) -> Stack {
let mut program_memory = Stack::new_for_tests();
for (name, item) in items {
program_memory
.add(name.clone(), item.clone(), SourceRange::default())
.unwrap();
}
program_memory
}
// Declare the test cases.
for (test_name, params, args, expected) in [
("empty", Vec::new(), Vec::new(), Ok(additional_program_memory(&[]))),
(
"all params required, and all given, should be OK",
vec![req_param("x")],
vec![("x", mem(1))],
Ok(additional_program_memory(&[("x".to_owned(), mem(1))])),
),
(
"all params required, none given, should error",
vec![req_param("x")],
vec![],
Err(KclError::Semantic(KclErrorDetails {
source_ranges: vec![SourceRange::default()],
message: "This function requires a parameter x, but you haven't passed it one.".to_owned(),
})),
),
(
"all params optional, none given, should be OK",
vec![opt_param("x")],
vec![],
Ok(additional_program_memory(&[("x".to_owned(), KclValue::none())])),
),
(
"mixed params, too few given",
vec![req_param("x"), opt_param("y")],
vec![],
Err(KclError::Semantic(KclErrorDetails {
source_ranges: vec![SourceRange::default()],
message: "This function requires a parameter x, but you haven't passed it one.".to_owned(),
})),
),
(
"mixed params, minimum given, should be OK",
vec![req_param("x"), opt_param("y")],
vec![("x", mem(1))],
Ok(additional_program_memory(&[
("x".to_owned(), mem(1)),
("y".to_owned(), KclValue::none()),
])),
),
(
"mixed params, maximum given, should be OK",
vec![req_param("x"), opt_param("y")],
vec![("x", mem(1)), ("y", mem(2))],
Ok(additional_program_memory(&[
("x".to_owned(), mem(1)),
("y".to_owned(), mem(2)),
])),
),
] {
// Run each test.
let func_expr = &Node::no_src(FunctionExpression {
params,
body: Program::empty(),
return_type: None,
digest: None,
});
let labeled = args
.iter()
.map(|(name, value)| {
let arg = Arg::new(value.clone(), SourceRange::default());
((*name).to_owned(), arg)
})
.collect::<IndexMap<_, _>>();
let exec_ctxt = ExecutorContext {
engine: Arc::new(Box::new(
crate::engine::conn_mock::EngineConnection::new().await.unwrap(),
)),
fs: Arc::new(crate::fs::FileManager::new()),
stdlib: Arc::new(crate::std::StdLib::new()),
settings: Default::default(),
context_type: ContextType::Mock,
};
let mut exec_state = ExecState::new(&exec_ctxt);
exec_state.mod_local.stack = Stack::new_for_tests();
let args = Args::new_kw(
KwArgs {
unlabeled: None,
labeled,
errors: Vec::new(),
},
SourceRange::default(),
exec_ctxt,
None,
);
let actual =
assign_args_to_params_kw(None, func_expr, args, &mut exec_state).map(|_| exec_state.mod_local.stack);
assert_eq!(
actual, expected,
"failed test '{test_name}':\ngot {actual:?}\nbut expected\n{expected:?}"
);
}
}
#[tokio::test(flavor = "multi_thread")] #[tokio::test(flavor = "multi_thread")]
async fn ascription() { async fn ascription() {
let program = r#" let program = r#"

View File

@ -0,0 +1,979 @@
use async_recursion::async_recursion;
use indexmap::IndexMap;
use crate::execution::cad_op::{Group, OpArg, OpKclValue, Operation};
use crate::{
docs::StdLibFn,
errors::{KclError, KclErrorDetails},
execution::{
kcl_value::FunctionSource, memory, types::RuntimeType, BodyType, ExecState, ExecutorContext, KclValue,
Metadata, StatementKind, TagEngineInfo, TagIdentifier,
},
parsing::ast::types::{CallExpressionKw, DefaultParamVal, FunctionExpression, Node, Program, Type},
source_range::SourceRange,
std::StdFn,
CompilationError,
};
use super::types::ArrayLen;
use super::EnvironmentRef;
#[derive(Debug, Clone)]
pub struct Args {
/// Positional args.
pub args: Vec<Arg>,
/// Keyword arguments
pub kw_args: KwArgs,
pub source_range: SourceRange,
pub ctx: ExecutorContext,
/// If this call happens inside a pipe (|>) expression, this holds the LHS of that |>.
/// Otherwise it's None.
pub pipe_value: Option<Arg>,
}
impl Args {
pub fn new(args: Vec<Arg>, source_range: SourceRange, ctx: ExecutorContext, pipe_value: Option<Arg>) -> Self {
Self {
args,
kw_args: Default::default(),
source_range,
ctx,
pipe_value,
}
}
/// Collect the given keyword arguments.
pub fn new_kw(kw_args: KwArgs, source_range: SourceRange, ctx: ExecutorContext, pipe_value: Option<Arg>) -> Self {
Self {
args: Default::default(),
kw_args,
source_range,
ctx,
pipe_value,
}
}
/// Get the unlabeled keyword argument. If not set, returns None.
pub(crate) fn unlabeled_kw_arg_unconverted(&self) -> Option<&Arg> {
self.kw_args
.unlabeled
.as_ref()
.map(|(_, a)| a)
.or(self.args.first())
.or(self.pipe_value.as_ref())
}
}
#[derive(Debug, Clone)]
pub struct Arg {
/// The evaluated argument.
pub value: KclValue,
/// The source range of the unevaluated argument.
pub source_range: SourceRange,
}
impl Arg {
pub fn new(value: KclValue, source_range: SourceRange) -> Self {
Self { value, source_range }
}
pub fn synthetic(value: KclValue) -> Self {
Self {
value,
source_range: SourceRange::synthetic(),
}
}
pub fn source_ranges(&self) -> Vec<SourceRange> {
vec![self.source_range]
}
}
#[derive(Debug, Clone, Default)]
pub struct KwArgs {
/// Unlabeled keyword args. Currently only the first arg can be unlabeled.
/// If the argument was a local variable, then the first element of the tuple is its name
/// which may be used to treat this arg as a labelled arg.
pub unlabeled: Option<(Option<String>, Arg)>,
/// Labeled args.
pub labeled: IndexMap<String, Arg>,
pub errors: Vec<Arg>,
}
impl KwArgs {
/// How many arguments are there?
pub fn len(&self) -> usize {
self.labeled.len() + if self.unlabeled.is_some() { 1 } else { 0 }
}
/// Are there no arguments?
pub fn is_empty(&self) -> bool {
self.labeled.len() == 0 && self.unlabeled.is_none()
}
}
struct FunctionDefinition<'a> {
input_arg: Option<(String, Option<Type>)>,
named_args: IndexMap<String, (Option<DefaultParamVal>, Option<Type>)>,
return_type: Option<Node<Type>>,
deprecated: bool,
include_in_feature_tree: bool,
is_std: bool,
body: FunctionBody<'a>,
}
#[derive(Debug)]
enum FunctionBody<'a> {
Rust(StdFn),
Kcl(&'a Node<Program>, EnvironmentRef),
}
impl<'a> From<&'a FunctionSource> for FunctionDefinition<'a> {
fn from(value: &'a FunctionSource) -> Self {
#[allow(clippy::type_complexity)]
fn args_from_ast(
ast: &FunctionExpression,
) -> (
Option<(String, Option<Type>)>,
IndexMap<String, (Option<DefaultParamVal>, Option<Type>)>,
) {
let mut input_arg = None;
let mut named_args = IndexMap::new();
for p in &ast.params {
if !p.labeled {
input_arg = Some((p.identifier.name.clone(), p.type_.as_ref().map(|t| t.inner.clone())));
continue;
}
named_args.insert(
p.identifier.name.clone(),
(p.default_value.clone(), p.type_.as_ref().map(|t| t.inner.clone())),
);
}
(input_arg, named_args)
}
match value {
FunctionSource::Std { func, ast, props } => {
let (input_arg, named_args) = args_from_ast(ast);
FunctionDefinition {
input_arg,
named_args,
return_type: ast.return_type.clone(),
deprecated: props.deprecated,
include_in_feature_tree: props.include_in_feature_tree,
is_std: true,
body: FunctionBody::Rust(*func),
}
}
FunctionSource::User { ast, memory, .. } => {
let (input_arg, named_args) = args_from_ast(ast);
FunctionDefinition {
input_arg,
named_args,
return_type: ast.return_type.clone(),
deprecated: false,
include_in_feature_tree: true,
// TODO I think this might be wrong for pure Rust std functions
is_std: false,
body: FunctionBody::Kcl(&ast.body, *memory),
}
}
FunctionSource::None => unreachable!(),
}
}
}
impl From<&dyn StdLibFn> for FunctionDefinition<'static> {
fn from(value: &dyn StdLibFn) -> Self {
let mut input_arg = None;
let mut named_args = IndexMap::new();
for a in value.args(false) {
if !a.label_required {
input_arg = Some((a.name.clone(), None));
continue;
}
named_args.insert(
a.name.clone(),
(
if a.required {
None
} else {
Some(DefaultParamVal::none())
},
None,
),
);
}
FunctionDefinition {
input_arg,
named_args,
return_type: None,
deprecated: value.deprecated(),
include_in_feature_tree: value.feature_tree_operation(),
is_std: true,
body: FunctionBody::Rust(value.std_lib_fn()),
}
}
}
impl Node<CallExpressionKw> {
#[async_recursion]
pub async fn execute(&self, exec_state: &mut ExecState, ctx: &ExecutorContext) -> Result<KclValue, KclError> {
let fn_name = &self.callee;
let callsite: SourceRange = self.into();
// Build a hashmap from argument labels to the final evaluated values.
let mut fn_args = IndexMap::with_capacity(self.arguments.len());
let mut errors = Vec::new();
for arg_expr in &self.arguments {
let source_range = SourceRange::from(arg_expr.arg.clone());
let metadata = Metadata { source_range };
let value = ctx
.execute_expr(&arg_expr.arg, exec_state, &metadata, &[], StatementKind::Expression)
.await?;
let arg = Arg::new(value, source_range);
match &arg_expr.label {
Some(l) => {
fn_args.insert(l.name.clone(), arg);
}
None => {
if let Some(id) = arg_expr.arg.ident_name() {
fn_args.insert(id.to_owned(), arg);
} else {
errors.push(arg);
}
}
}
}
// Evaluate the unlabeled first param, if any exists.
let unlabeled = if let Some(ref arg_expr) = self.unlabeled {
let source_range = SourceRange::from(arg_expr.clone());
let metadata = Metadata { source_range };
let value = ctx
.execute_expr(arg_expr, exec_state, &metadata, &[], StatementKind::Expression)
.await?;
let label = arg_expr.ident_name().map(str::to_owned);
Some((label, Arg::new(value, source_range)))
} else {
None
};
let args = Args::new_kw(
KwArgs {
unlabeled,
labeled: fn_args,
errors,
},
self.into(),
ctx.clone(),
exec_state.pipe_value().map(|v| Arg::new(v.clone(), callsite)),
);
match ctx.stdlib.get_rust_function(fn_name) {
Some(func) => {
let def: FunctionDefinition = (&*func).into();
// All std lib functions return a value, so the unwrap is safe.
def.call_kw(Some(func.name()), exec_state, ctx, args, callsite)
.await
.map(Option::unwrap)
}
None => {
// Clone the function so that we can use a mutable reference to
// exec_state.
let func = fn_name.get_result(exec_state, ctx).await?.clone();
let Some(fn_src) = func.as_fn() else {
return Err(KclError::Semantic(KclErrorDetails {
message: "cannot call this because it isn't a function".to_string(),
source_ranges: vec![callsite],
}));
};
let return_value = fn_src
.call_kw(Some(fn_name.to_string()), exec_state, ctx, args, callsite)
.await
.map_err(|e| {
// Add the call expression to the source ranges.
e.add_source_ranges(vec![callsite])
})?;
let result = return_value.ok_or_else(move || {
let mut source_ranges: Vec<SourceRange> = vec![callsite];
// We want to send the source range of the original function.
if let KclValue::Function { meta, .. } = func {
source_ranges = meta.iter().map(|m| m.source_range).collect();
};
KclError::UndefinedValue(KclErrorDetails {
message: format!("Result of user-defined function {} is undefined", fn_name),
source_ranges,
})
})?;
Ok(result)
}
}
}
}
impl FunctionDefinition<'_> {
pub async fn call_kw(
&self,
fn_name: Option<String>,
exec_state: &mut ExecState,
ctx: &ExecutorContext,
mut args: Args,
callsite: SourceRange,
) -> Result<Option<KclValue>, KclError> {
if self.deprecated {
exec_state.warn(CompilationError::err(
callsite,
format!(
"{} is deprecated, see the docs for a recommended replacement",
match &fn_name {
Some(n) => format!("`{n}`"),
None => "This function".to_owned(),
}
),
));
}
type_check_params_kw(fn_name.as_deref(), self, &mut args.kw_args, exec_state)?;
// Don't early return until the stack frame is popped!
self.body.prep_mem(exec_state);
let op = if self.include_in_feature_tree {
let op_labeled_args = args
.kw_args
.labeled
.iter()
.map(|(k, arg)| (k.clone(), OpArg::new(OpKclValue::from(&arg.value), arg.source_range)))
.collect();
if self.is_std {
Some(Operation::StdLibCall {
name: fn_name.clone().unwrap_or_else(|| "unknown function".to_owned()),
unlabeled_arg: args
.unlabeled_kw_arg_unconverted()
.map(|arg| OpArg::new(OpKclValue::from(&arg.value), arg.source_range)),
labeled_args: op_labeled_args,
source_range: callsite,
is_error: false,
})
} else {
exec_state.push_op(Operation::GroupBegin {
group: Group::FunctionCall {
name: fn_name.clone(),
function_source_range: self.as_source_range().unwrap(),
unlabeled_arg: args
.kw_args
.unlabeled
.as_ref()
.map(|arg| OpArg::new(OpKclValue::from(&arg.1.value), arg.1.source_range)),
labeled_args: op_labeled_args,
},
source_range: callsite,
});
None
}
} else {
None
};
let mut result = match &self.body {
FunctionBody::Rust(f) => f(exec_state, args).await.map(Some),
FunctionBody::Kcl(f, _) => {
if let Err(e) = assign_args_to_params_kw(self, args, exec_state) {
exec_state.mut_stack().pop_env();
return Err(e);
}
ctx.exec_block(f, exec_state, BodyType::Block).await.map(|_| {
exec_state
.stack()
.get(memory::RETURN_NAME, f.as_source_range())
.ok()
.cloned()
})
}
};
exec_state.mut_stack().pop_env();
if let Some(mut op) = op {
op.set_std_lib_call_is_error(result.is_err());
// Track call operation. We do this after the call
// since things like patternTransform may call user code
// before running, and we will likely want to use the
// return value. The call takes ownership of the args,
// so we need to build the op before the call.
exec_state.push_op(op);
} else if !self.is_std {
exec_state.push_op(Operation::GroupEnd);
}
if self.is_std {
if let Ok(Some(result)) = &mut result {
update_memory_for_tags_of_geometry(result, exec_state)?;
}
}
coerce_result_type(result, self, exec_state)
}
// Postcondition: result.is_some() if function is not in the standard library.
fn as_source_range(&self) -> Option<SourceRange> {
match &self.body {
FunctionBody::Rust(_) => None,
FunctionBody::Kcl(p, _) => Some(p.as_source_range()),
}
}
}
impl FunctionBody<'_> {
fn prep_mem(&self, exec_state: &mut ExecState) {
match self {
FunctionBody::Rust(_) => exec_state.mut_stack().push_new_env_for_rust_call(),
FunctionBody::Kcl(_, memory) => exec_state.mut_stack().push_new_env_for_call(*memory),
}
}
}
impl FunctionSource {
pub async fn call_kw(
&self,
fn_name: Option<String>,
exec_state: &mut ExecState,
ctx: &ExecutorContext,
args: Args,
callsite: SourceRange,
) -> Result<Option<KclValue>, KclError> {
let def: FunctionDefinition = self.into();
def.call_kw(fn_name, exec_state, ctx, args, callsite).await
}
}
fn update_memory_for_tags_of_geometry(result: &mut KclValue, exec_state: &mut ExecState) -> Result<(), KclError> {
// If the return result is a sketch or solid, we want to update the
// memory for the tags of the group.
// TODO: This could probably be done in a better way, but as of now this was my only idea
// and it works.
match result {
KclValue::Sketch { value } => {
for (name, tag) in value.tags.iter() {
if exec_state.stack().cur_frame_contains(name) {
exec_state.mut_stack().update(name, |v, _| {
v.as_mut_tag().unwrap().merge_info(tag);
});
} else {
exec_state
.mut_stack()
.add(
name.to_owned(),
KclValue::TagIdentifier(Box::new(tag.clone())),
SourceRange::default(),
)
.unwrap();
}
}
}
KclValue::Solid { ref mut value } => {
for v in &value.value {
if let Some(tag) = v.get_tag() {
// Get the past tag and update it.
let tag_id = if let Some(t) = value.sketch.tags.get(&tag.name) {
let mut t = t.clone();
let Some(info) = t.get_cur_info() else {
return Err(KclError::Internal(KclErrorDetails {
message: format!("Tag {} does not have path info", tag.name),
source_ranges: vec![tag.into()],
}));
};
let mut info = info.clone();
info.surface = Some(v.clone());
info.sketch = value.id;
t.info.push((exec_state.stack().current_epoch(), info));
t
} else {
// It's probably a fillet or a chamfer.
// Initialize it.
TagIdentifier {
value: tag.name.clone(),
info: vec![(
exec_state.stack().current_epoch(),
TagEngineInfo {
id: v.get_id(),
surface: Some(v.clone()),
path: None,
sketch: value.id,
},
)],
meta: vec![Metadata {
source_range: tag.clone().into(),
}],
}
};
// update the sketch tags.
value.sketch.merge_tags(Some(&tag_id).into_iter());
if exec_state.stack().cur_frame_contains(&tag.name) {
exec_state.mut_stack().update(&tag.name, |v, _| {
v.as_mut_tag().unwrap().merge_info(&tag_id);
});
} else {
exec_state
.mut_stack()
.add(
tag.name.clone(),
KclValue::TagIdentifier(Box::new(tag_id)),
SourceRange::default(),
)
.unwrap();
}
}
}
// Find the stale sketch in memory and update it.
if !value.sketch.tags.is_empty() {
let sketches_to_update: Vec<_> = exec_state
.stack()
.find_keys_in_current_env(|v| match v {
KclValue::Sketch { value: sk } => sk.original_id == value.sketch.original_id,
_ => false,
})
.cloned()
.collect();
for k in sketches_to_update {
exec_state.mut_stack().update(&k, |v, _| {
let sketch = v.as_mut_sketch().unwrap();
sketch.merge_tags(value.sketch.tags.values());
});
}
}
}
KclValue::Tuple { value, .. } | KclValue::HomArray { value, .. } => {
for v in value {
update_memory_for_tags_of_geometry(v, exec_state)?;
}
}
_ => {}
}
Ok(())
}
fn type_check_params_kw(
fn_name: Option<&str>,
fn_def: &FunctionDefinition<'_>,
args: &mut KwArgs,
exec_state: &mut ExecState,
) -> Result<(), KclError> {
// If it's possible the input arg was meant to be labelled and we probably don't want to use
// it as the input arg, then treat it as labelled.
if let Some((Some(label), _)) = &args.unlabeled {
if (fn_def.input_arg.is_none() || exec_state.pipe_value().is_some())
&& fn_def.named_args.iter().any(|p| p.0 == label)
&& !args.labeled.contains_key(label)
{
let (label, arg) = args.unlabeled.take().unwrap();
args.labeled.insert(label.unwrap(), arg);
}
}
for (label, arg) in &mut args.labeled {
match fn_def.named_args.get(label) {
Some((_, ty)) => {
if let Some(ty) = ty {
arg.value = arg
.value
.coerce(
&RuntimeType::from_parsed(ty.clone(), exec_state, arg.source_range).map_err(|e| KclError::Semantic(e.into()))?,
exec_state,
)
.map_err(|e| {
let mut message = format!(
"{label} requires a value with type `{}`, but found {}",
ty,
arg.value.human_friendly_type(),
);
if let Some(ty) = e.explicit_coercion {
// TODO if we have access to the AST for the argument we could choose which example to suggest.
message = format!("{message}\n\nYou may need to add information about the type of the argument, for example:\n using a numeric suffix: `42{ty}`\n or using type ascription: `foo(): number({ty})`");
}
KclError::Semantic(KclErrorDetails {
message,
source_ranges: vec![arg.source_range],
})
})?;
}
}
None => {
exec_state.err(CompilationError::err(
arg.source_range,
format!(
"`{label}` is not an argument of {}",
fn_name
.map(|n| format!("`{}`", n))
.unwrap_or_else(|| "this function".to_owned()),
),
));
}
}
}
if !args.errors.is_empty() {
let actuals = args.labeled.keys();
let formals: Vec<_> = fn_def
.named_args
.keys()
.filter_map(|name| {
if actuals.clone().any(|a| a == name) {
return None;
}
Some(format!("`{name}`"))
})
.collect();
let suggestion = if formals.is_empty() {
String::new()
} else {
format!("; suggested labels: {}", formals.join(", "))
};
let mut errors = args.errors.iter().map(|e| {
CompilationError::err(
e.source_range,
format!("This argument needs a label, but it doesn't have one{suggestion}"),
)
});
let first = errors.next().unwrap();
errors.for_each(|e| exec_state.err(e));
return Err(KclError::Semantic(first.into()));
}
if let Some(arg) = &mut args.unlabeled {
if let Some((_, Some(ty))) = &fn_def.input_arg {
arg.1.value = arg
.1
.value
.coerce(
&RuntimeType::from_parsed(ty.clone(), exec_state, arg.1.source_range)
.map_err(|e| KclError::Semantic(e.into()))?,
exec_state,
)
.map_err(|_| {
KclError::Semantic(KclErrorDetails {
message: format!(
"The input argument of {} requires a value with type `{}`, but found {}",
fn_name
.map(|n| format!("`{}`", n))
.unwrap_or_else(|| "this function".to_owned()),
ty,
arg.1.value.human_friendly_type()
),
source_ranges: vec![arg.1.source_range],
})
})?;
}
} else if let Some((name, _)) = &fn_def.input_arg {
if let Some(arg) = args.labeled.get(name) {
exec_state.err(CompilationError::err(
arg.source_range,
format!(
"{} expects an unlabeled first parameter (`@{name}`), but it is labelled in the call",
fn_name
.map(|n| format!("The function `{}`", n))
.unwrap_or_else(|| "This function".to_owned()),
),
));
}
}
Ok(())
}
fn assign_args_to_params_kw(
fn_def: &FunctionDefinition<'_>,
args: Args,
exec_state: &mut ExecState,
) -> Result<(), KclError> {
// Add the arguments to the memory. A new call frame should have already
// been created.
let source_ranges = fn_def.as_source_range().into_iter().collect();
for (name, (default, _)) in fn_def.named_args.iter() {
let arg = args.kw_args.labeled.get(name);
match arg {
Some(arg) => {
exec_state.mut_stack().add(
name.clone(),
arg.value.clone(),
arg.source_ranges().pop().unwrap_or(SourceRange::synthetic()),
)?;
}
None => match default {
Some(ref default_val) => {
let value = KclValue::from_default_param(default_val.clone(), exec_state);
exec_state
.mut_stack()
.add(name.clone(), value, default_val.source_range())?;
}
None => {
return Err(KclError::Semantic(KclErrorDetails {
source_ranges,
message: format!(
"This function requires a parameter {}, but you haven't passed it one.",
name
),
}));
}
},
}
}
if let Some((param_name, _)) = &fn_def.input_arg {
let unlabelled = args.unlabeled_kw_arg_unconverted();
let Some(unlabeled) = unlabelled else {
return Err(if args.kw_args.labeled.contains_key(param_name) {
KclError::Semantic(KclErrorDetails {
source_ranges,
message: format!("The function does declare a parameter named '{param_name}', but this parameter doesn't use a label. Try removing the `{param_name}:`"),
})
} else {
KclError::Semantic(KclErrorDetails {
source_ranges,
message: "This function expects an unlabeled first parameter, but you haven't passed it one."
.to_owned(),
})
});
};
exec_state.mut_stack().add(
param_name.clone(),
unlabeled.value.clone(),
unlabeled.source_ranges().pop().unwrap_or(SourceRange::synthetic()),
)?;
}
Ok(())
}
fn coerce_result_type(
result: Result<Option<KclValue>, KclError>,
fn_def: &FunctionDefinition<'_>,
exec_state: &mut ExecState,
) -> Result<Option<KclValue>, KclError> {
if let Ok(Some(val)) = result {
if let Some(ret_ty) = &fn_def.return_type {
let mut ty = RuntimeType::from_parsed(ret_ty.inner.clone(), exec_state, ret_ty.as_source_range())
.map_err(|e| KclError::Semantic(e.into()))?;
// Treat `[T; 1+]` as `T | [T; 1+]` (which can't yet be expressed in our syntax of types).
// This is a very specific hack which exists because some std functions can produce arrays
// but usually only make a singleton and the frontend expects the singleton.
// If we can make the frontend work on arrays (or at least arrays of length 1), then this
// can be removed.
// I believe this is safe, since anywhere which requires an array should coerce the singleton
// to an array and we only do this hack for return values.
if let RuntimeType::Array(inner, ArrayLen::NonEmpty) = &ty {
ty = RuntimeType::Union(vec![(**inner).clone(), ty]);
}
let val = val.coerce(&ty, exec_state).map_err(|_| {
KclError::Semantic(KclErrorDetails {
message: format!(
"This function requires its result to be of type `{}`, but found {}",
ty.human_friendly_type(),
val.human_friendly_type(),
),
source_ranges: ret_ty.as_source_ranges(),
})
})?;
Ok(Some(val))
} else {
Ok(Some(val))
}
} else {
result
}
}
#[cfg(test)]
mod test {
use std::sync::Arc;
use super::*;
use crate::{
execution::{memory::Stack, parse_execute, types::NumericType, ContextType},
parsing::ast::types::{DefaultParamVal, Identifier, Parameter},
};
#[tokio::test(flavor = "multi_thread")]
async fn test_assign_args_to_params() {
// Set up a little framework for this test.
fn mem(number: usize) -> KclValue {
KclValue::Number {
value: number as f64,
ty: NumericType::count(),
meta: Default::default(),
}
}
fn ident(s: &'static str) -> Node<Identifier> {
Node::no_src(Identifier {
name: s.to_owned(),
digest: None,
})
}
fn opt_param(s: &'static str) -> Parameter {
Parameter {
identifier: ident(s),
type_: None,
default_value: Some(DefaultParamVal::none()),
labeled: true,
digest: None,
}
}
fn req_param(s: &'static str) -> Parameter {
Parameter {
identifier: ident(s),
type_: None,
default_value: None,
labeled: true,
digest: None,
}
}
fn additional_program_memory(items: &[(String, KclValue)]) -> Stack {
let mut program_memory = Stack::new_for_tests();
for (name, item) in items {
program_memory
.add(name.clone(), item.clone(), SourceRange::default())
.unwrap();
}
program_memory
}
// Declare the test cases.
for (test_name, params, args, expected) in [
("empty", Vec::new(), Vec::new(), Ok(additional_program_memory(&[]))),
(
"all params required, and all given, should be OK",
vec![req_param("x")],
vec![("x", mem(1))],
Ok(additional_program_memory(&[("x".to_owned(), mem(1))])),
),
(
"all params required, none given, should error",
vec![req_param("x")],
vec![],
Err(KclError::Semantic(KclErrorDetails {
source_ranges: vec![SourceRange::default()],
message: "This function requires a parameter x, but you haven't passed it one.".to_owned(),
})),
),
(
"all params optional, none given, should be OK",
vec![opt_param("x")],
vec![],
Ok(additional_program_memory(&[("x".to_owned(), KclValue::none())])),
),
(
"mixed params, too few given",
vec![req_param("x"), opt_param("y")],
vec![],
Err(KclError::Semantic(KclErrorDetails {
source_ranges: vec![SourceRange::default()],
message: "This function requires a parameter x, but you haven't passed it one.".to_owned(),
})),
),
(
"mixed params, minimum given, should be OK",
vec![req_param("x"), opt_param("y")],
vec![("x", mem(1))],
Ok(additional_program_memory(&[
("x".to_owned(), mem(1)),
("y".to_owned(), KclValue::none()),
])),
),
(
"mixed params, maximum given, should be OK",
vec![req_param("x"), opt_param("y")],
vec![("x", mem(1)), ("y", mem(2))],
Ok(additional_program_memory(&[
("x".to_owned(), mem(1)),
("y".to_owned(), mem(2)),
])),
),
] {
// Run each test.
let func_expr = Node::no_src(FunctionExpression {
params,
body: Program::empty(),
return_type: None,
digest: None,
});
let func_src = FunctionSource::User {
ast: Box::new(func_expr),
settings: Default::default(),
memory: EnvironmentRef::dummy(),
};
let labeled = args
.iter()
.map(|(name, value)| {
let arg = Arg::new(value.clone(), SourceRange::default());
((*name).to_owned(), arg)
})
.collect::<IndexMap<_, _>>();
let exec_ctxt = ExecutorContext {
engine: Arc::new(Box::new(
crate::engine::conn_mock::EngineConnection::new().await.unwrap(),
)),
fs: Arc::new(crate::fs::FileManager::new()),
stdlib: Arc::new(crate::std::StdLib::new()),
settings: Default::default(),
context_type: ContextType::Mock,
};
let mut exec_state = ExecState::new(&exec_ctxt);
exec_state.mod_local.stack = Stack::new_for_tests();
let args = Args::new_kw(
KwArgs {
unlabeled: None,
labeled,
errors: Vec::new(),
},
SourceRange::default(),
exec_ctxt,
None,
);
let actual = assign_args_to_params_kw(&(&func_src).into(), args, &mut exec_state)
.map(|_| exec_state.mod_local.stack);
assert_eq!(
actual, expected,
"failed test '{test_name}':\ngot {actual:?}\nbut expected\n{expected:?}"
);
}
}
#[tokio::test(flavor = "multi_thread")]
async fn type_check_user_args() {
let program = r#"fn makeMessage(prefix: string, suffix: string) {
return prefix + suffix
}
msg1 = makeMessage(prefix = "world", suffix = " hello")
msg2 = makeMessage(prefix = 1, suffix = 3)"#;
let err = parse_execute(program).await.unwrap_err();
assert_eq!(
err.message(),
"prefix requires a value with type `string`, but found number(default units)"
)
}
}

View File

@ -8,12 +8,12 @@ use parse_display::{Display, FromStr};
use schemars::JsonSchema; use schemars::JsonSchema;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[cfg(feature = "artifact-graph")]
use crate::execution::ArtifactId;
use crate::{ use crate::{
engine::{PlaneName, DEFAULT_PLANE_INFO}, engine::{PlaneName, DEFAULT_PLANE_INFO},
errors::{KclError, KclErrorDetails}, errors::{KclError, KclErrorDetails},
execution::{types::NumericType, ExecState, ExecutorContext, Metadata, TagEngineInfo, TagIdentifier, UnitLen}, execution::{
types::NumericType, ArtifactId, ExecState, ExecutorContext, Metadata, TagEngineInfo, TagIdentifier, UnitLen,
},
parsing::ast::types::{Node, NodeRef, TagDeclarator, TagNode}, parsing::ast::types::{Node, NodeRef, TagDeclarator, TagNode},
std::{args::TyF64, sketch::PlaneData}, std::{args::TyF64, sketch::PlaneData},
}; };
@ -256,7 +256,6 @@ pub struct Helix {
/// The id of the helix. /// The id of the helix.
pub value: uuid::Uuid, pub value: uuid::Uuid,
/// The artifact ID. /// The artifact ID.
#[cfg(feature = "artifact-graph")]
pub artifact_id: ArtifactId, pub artifact_id: ArtifactId,
/// Number of revolutions. /// Number of revolutions.
pub revolutions: f64, pub revolutions: f64,
@ -278,7 +277,6 @@ pub struct Plane {
/// The id of the plane. /// The id of the plane.
pub id: uuid::Uuid, pub id: uuid::Uuid,
/// The artifact ID. /// The artifact ID.
#[cfg(feature = "artifact-graph")]
pub artifact_id: ArtifactId, pub artifact_id: ArtifactId,
// The code for the plane either a string or custom. // The code for the plane either a string or custom.
pub value: PlaneType, pub value: PlaneType,
@ -508,7 +506,6 @@ impl Plane {
let id = exec_state.next_uuid(); let id = exec_state.next_uuid();
Ok(Plane { Ok(Plane {
id, id,
#[cfg(feature = "artifact-graph")]
artifact_id: id.into(), artifact_id: id.into(),
info: PlaneInfo::try_from(value.clone())?, info: PlaneInfo::try_from(value.clone())?,
value: value.into(), value: value.into(),
@ -530,7 +527,6 @@ pub struct Face {
/// The id of the face. /// The id of the face.
pub id: uuid::Uuid, pub id: uuid::Uuid,
/// The artifact ID. /// The artifact ID.
#[cfg(feature = "artifact-graph")]
pub artifact_id: ArtifactId, pub artifact_id: ArtifactId,
/// The tag of the face. /// The tag of the face.
pub value: String, pub value: String,
@ -584,7 +580,6 @@ pub struct Sketch {
pub tags: IndexMap<String, TagIdentifier>, pub tags: IndexMap<String, TagIdentifier>,
/// The original id of the sketch. This stays the same even if the sketch is /// The original id of the sketch. This stays the same even if the sketch is
/// is sketched on face etc. /// is sketched on face etc.
#[cfg(feature = "artifact-graph")]
pub artifact_id: ArtifactId, pub artifact_id: ArtifactId,
#[ts(skip)] #[ts(skip)]
pub original_id: uuid::Uuid, pub original_id: uuid::Uuid,
@ -748,7 +743,6 @@ pub struct Solid {
/// The id of the solid. /// The id of the solid.
pub id: uuid::Uuid, pub id: uuid::Uuid,
/// The artifact ID of the solid. Unlike `id`, this doesn't change. /// The artifact ID of the solid. Unlike `id`, this doesn't change.
#[cfg(feature = "artifact-graph")]
pub artifact_id: ArtifactId, pub artifact_id: ArtifactId,
/// The extrude surfaces. /// The extrude surfaces.
pub value: Vec<ExtrudeSurface>, pub value: Vec<ExtrudeSurface>,

View File

@ -352,8 +352,8 @@ impl KclValue {
pub(crate) fn from_default_param(param: DefaultParamVal, exec_state: &mut ExecState) -> Self { pub(crate) fn from_default_param(param: DefaultParamVal, exec_state: &mut ExecState) -> Self {
match param { match param {
DefaultParamVal::Literal(lit) => Self::from_literal(lit, exec_state), DefaultParamVal::Literal(lit) => Self::from_literal(lit, exec_state),
DefaultParamVal::KclNone(none) => KclValue::KclNone { DefaultParamVal::KclNone(value) => KclValue::KclNone {
value: none, value,
meta: Default::default(), meta: Default::default(),
}, },
} }

View File

@ -820,7 +820,7 @@ impl PartialEq for Stack {
pub struct EnvironmentRef(usize, usize); pub struct EnvironmentRef(usize, usize);
impl EnvironmentRef { impl EnvironmentRef {
fn dummy() -> Self { pub fn dummy() -> Self {
Self(usize::MAX, 0) Self(usize::MAX, 0)
} }

View File

@ -4,9 +4,7 @@ use std::sync::Arc;
use anyhow::Result; use anyhow::Result;
#[cfg(feature = "artifact-graph")] #[cfg(feature = "artifact-graph")]
pub use artifact::{ pub use artifact::{Artifact, ArtifactCommand, ArtifactGraph, CodeRef, StartSketchOnFace, StartSketchOnPlane};
Artifact, ArtifactCommand, ArtifactGraph, ArtifactId, CodeRef, StartSketchOnFace, StartSketchOnPlane,
};
use cache::OldAstState; use cache::OldAstState;
pub use cache::{bust_cache, clear_mem_cache}; pub use cache::{bust_cache, clear_mem_cache};
#[cfg(feature = "artifact-graph")] #[cfg(feature = "artifact-graph")]
@ -22,11 +20,12 @@ use kcmc::{
websocket::{ModelingSessionData, OkWebSocketResponseData}, websocket::{ModelingSessionData, OkWebSocketResponseData},
ImageFormat, ModelingCmd, ImageFormat, ModelingCmd,
}; };
use kittycad_modeling_cmds as kcmc; use kittycad_modeling_cmds::{self as kcmc, id::ModelingCmdId};
pub use memory::EnvironmentRef; pub use memory::EnvironmentRef;
use schemars::JsonSchema; use schemars::JsonSchema;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
pub use state::{ExecState, MetaSettings}; pub use state::{ExecState, MetaSettings};
use uuid::Uuid;
#[cfg(feature = "artifact-graph")] #[cfg(feature = "artifact-graph")]
use crate::execution::artifact::build_artifact_graph; use crate::execution::artifact::build_artifact_graph;
@ -51,9 +50,9 @@ pub(crate) mod annotations;
#[cfg(feature = "artifact-graph")] #[cfg(feature = "artifact-graph")]
mod artifact; mod artifact;
pub(crate) mod cache; pub(crate) mod cache;
#[cfg(feature = "artifact-graph")]
mod cad_op; mod cad_op;
mod exec_ast; mod exec_ast;
pub mod fn_call;
mod geometry; mod geometry;
mod id_generator; mod id_generator;
mod import; mod import;
@ -63,6 +62,11 @@ mod state;
pub mod typed_path; pub mod typed_path;
pub(crate) mod types; pub(crate) mod types;
enum StatementKind<'a> {
Declaration { name: &'a str },
Expression,
}
/// Outcome of executing a program. This is used in TS. /// Outcome of executing a program. This is used in TS.
#[derive(Debug, Clone, Serialize, ts_rs::TS, PartialEq)] #[derive(Debug, Clone, Serialize, ts_rs::TS, PartialEq)]
#[ts(export)] #[ts(export)]
@ -1324,6 +1328,51 @@ impl ExecutorContext {
} }
} }
#[derive(Debug, Clone, Copy, Serialize, PartialEq, Eq, Ord, PartialOrd, Hash, ts_rs::TS, JsonSchema)]
pub struct ArtifactId(Uuid);
impl ArtifactId {
pub fn new(uuid: Uuid) -> Self {
Self(uuid)
}
}
impl From<Uuid> for ArtifactId {
fn from(uuid: Uuid) -> Self {
Self::new(uuid)
}
}
impl From<&Uuid> for ArtifactId {
fn from(uuid: &Uuid) -> Self {
Self::new(*uuid)
}
}
impl From<ArtifactId> for Uuid {
fn from(id: ArtifactId) -> Self {
id.0
}
}
impl From<&ArtifactId> for Uuid {
fn from(id: &ArtifactId) -> Self {
id.0
}
}
impl From<ModelingCmdId> for ArtifactId {
fn from(id: ModelingCmdId) -> Self {
Self::new(*id.as_ref())
}
}
impl From<&ModelingCmdId> for ArtifactId {
fn from(id: &ModelingCmdId) -> Self {
Self::new(*id.as_ref())
}
}
#[cfg(test)] #[cfg(test)]
pub(crate) async fn parse_execute(code: &str) -> Result<ExecTestResults, KclError> { pub(crate) async fn parse_execute(code: &str) -> Result<ExecTestResults, KclError> {
parse_execute_with_project_dir(code, None).await parse_execute_with_project_dir(code, None).await

View File

@ -9,11 +9,12 @@ use serde::{Deserialize, Serialize};
use uuid::Uuid; use uuid::Uuid;
#[cfg(feature = "artifact-graph")] #[cfg(feature = "artifact-graph")]
use crate::execution::{Artifact, ArtifactCommand, ArtifactGraph, ArtifactId, Operation}; use crate::execution::{Artifact, ArtifactCommand, ArtifactGraph, ArtifactId};
use crate::{ use crate::{
errors::{KclError, KclErrorDetails, Severity}, errors::{KclError, KclErrorDetails, Severity},
execution::{ execution::{
annotations, annotations,
cad_op::Operation,
id_generator::IdGenerator, id_generator::IdGenerator,
memory::{ProgramMemory, Stack}, memory::{ProgramMemory, Stack},
types, types,
@ -201,6 +202,13 @@ impl ExecState {
self.global.artifacts.insert(id, artifact); self.global.artifacts.insert(id, artifact);
} }
pub(crate) fn push_op(&mut self, op: Operation) {
#[cfg(feature = "artifact-graph")]
self.global.operations.push(op);
#[cfg(not(feature = "artifact-graph"))]
drop(op);
}
pub(super) fn next_module_id(&self) -> ModuleId { pub(super) fn next_module_id(&self) -> ModuleId {
ModuleId::from_usize(self.global.path_to_source_id.len()) ModuleId::from_usize(self.global.path_to_source_id.len())
} }

View File

@ -1112,7 +1112,6 @@ impl KclValue {
let id = exec_state.mod_local.id_generator.next_uuid(); let id = exec_state.mod_local.id_generator.next_uuid();
let plane = Plane { let plane = Plane {
id, id,
#[cfg(feature = "artifact-graph")]
artifact_id: id.into(), artifact_id: id.into(),
info: PlaneInfo { info: PlaneInfo {
origin, origin,

View File

@ -3374,6 +3374,13 @@ impl DefaultParamVal {
pub(crate) fn none() -> Self { pub(crate) fn none() -> Self {
Self::KclNone(KclNone::default()) Self::KclNone(KclNone::default())
} }
pub(crate) fn source_range(&self) -> SourceRange {
match self {
DefaultParamVal::Literal(l) => l.as_source_range(),
DefaultParamVal::KclNone(_) => SourceRange::default(),
}
}
} }
/// Parameter of a KCL function. /// Parameter of a KCL function.

View File

@ -1,7 +1,6 @@
use std::num::NonZeroU32; use std::num::NonZeroU32;
use anyhow::Result; use anyhow::Result;
use indexmap::IndexMap;
use kcmc::{ use kcmc::{
websocket::{ModelingCmdReq, OkWebSocketResponseData}, websocket::{ModelingCmdReq, OkWebSocketResponseData},
ModelingCmd, ModelingCmd,
@ -15,8 +14,8 @@ use crate::{
execution::{ execution::{
kcl_value::FunctionSource, kcl_value::FunctionSource,
types::{NumericType, PrimitiveType, RuntimeType, UnitAngle, UnitLen, UnitType}, types::{NumericType, PrimitiveType, RuntimeType, UnitAngle, UnitLen, UnitType},
ExecState, ExecutorContext, ExtrudeSurface, Helix, KclObjectFields, KclValue, Metadata, PlaneInfo, Sketch, ExecState, ExtrudeSurface, Helix, KclObjectFields, KclValue, Metadata, PlaneInfo, Sketch, SketchSurface, Solid,
SketchSurface, Solid, TagIdentifier, TagIdentifier,
}, },
parsing::ast::types::TagNode, parsing::ast::types::TagNode,
source_range::SourceRange, source_range::SourceRange,
@ -28,56 +27,11 @@ use crate::{
ModuleId, ModuleId,
}; };
pub use crate::execution::fn_call::Args;
const ERROR_STRING_SKETCH_TO_SOLID_HELPER: &str = const ERROR_STRING_SKETCH_TO_SOLID_HELPER: &str =
"You can convert a sketch (2D) into a Solid (3D) by calling a function like `extrude` or `revolve`"; "You can convert a sketch (2D) into a Solid (3D) by calling a function like `extrude` or `revolve`";
#[derive(Debug, Clone)]
pub struct Arg {
/// The evaluated argument.
pub value: KclValue,
/// The source range of the unevaluated argument.
pub source_range: SourceRange,
}
impl Arg {
pub fn new(value: KclValue, source_range: SourceRange) -> Self {
Self { value, source_range }
}
pub fn synthetic(value: KclValue) -> Self {
Self {
value,
source_range: SourceRange::synthetic(),
}
}
pub fn source_ranges(&self) -> Vec<SourceRange> {
vec![self.source_range]
}
}
#[derive(Debug, Clone, Default)]
pub struct KwArgs {
/// Unlabeled keyword args. Currently only the first arg can be unlabeled.
/// If the argument was a local variable, then the first element of the tuple is its name
/// which may be used to treat this arg as a labelled arg.
pub unlabeled: Option<(Option<String>, Arg)>,
/// Labeled args.
pub labeled: IndexMap<String, Arg>,
pub errors: Vec<Arg>,
}
impl KwArgs {
/// How many arguments are there?
pub fn len(&self) -> usize {
self.labeled.len() + if self.unlabeled.is_some() { 1 } else { 0 }
}
/// Are there no arguments?
pub fn is_empty(&self) -> bool {
self.labeled.len() == 0 && self.unlabeled.is_none()
}
}
#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS)] #[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS)]
#[ts(export)] #[ts(export)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
@ -153,41 +107,7 @@ impl JsonSchema for TyF64 {
} }
} }
#[derive(Debug, Clone)]
pub struct Args {
/// Positional args.
pub args: Vec<Arg>,
/// Keyword arguments
pub kw_args: KwArgs,
pub source_range: SourceRange,
pub ctx: ExecutorContext,
/// If this call happens inside a pipe (|>) expression, this holds the LHS of that |>.
/// Otherwise it's None.
pub pipe_value: Option<Arg>,
}
impl Args { impl Args {
pub fn new(args: Vec<Arg>, source_range: SourceRange, ctx: ExecutorContext, pipe_value: Option<Arg>) -> Self {
Self {
args,
kw_args: Default::default(),
source_range,
ctx,
pipe_value,
}
}
/// Collect the given keyword arguments.
pub fn new_kw(kw_args: KwArgs, source_range: SourceRange, ctx: ExecutorContext, pipe_value: Option<Arg>) -> Self {
Self {
args: Default::default(),
kw_args,
source_range,
ctx,
pipe_value,
}
}
/// Get a keyword argument. If not set, returns None. /// Get a keyword argument. If not set, returns None.
pub(crate) fn get_kw_arg_opt<'a, T>(&'a self, label: &str) -> Result<Option<T>, KclError> pub(crate) fn get_kw_arg_opt<'a, T>(&'a self, label: &str) -> Result<Option<T>, KclError>
where where
@ -339,16 +259,6 @@ impl Args {
.collect::<Result<Vec<_>, _>>() .collect::<Result<Vec<_>, _>>()
} }
/// Get the unlabeled keyword argument. If not set, returns None.
pub(crate) fn unlabeled_kw_arg_unconverted(&self) -> Option<&Arg> {
self.kw_args
.unlabeled
.as_ref()
.map(|(_, a)| a)
.or(self.args.first())
.or(self.pipe_value.as_ref())
}
/// Get the unlabeled keyword argument. If not set, returns Err. If it /// Get the unlabeled keyword argument. If not set, returns Err. If it
/// can't be converted to the given type, returns Err. /// can't be converted to the given type, returns Err.
pub(crate) fn get_unlabeled_kw_arg<'a, T>(&'a self, label: &str) -> Result<T, KclError> pub(crate) fn get_unlabeled_kw_arg<'a, T>(&'a self, label: &str) -> Result<T, KclError>

View File

@ -1,12 +1,9 @@
use indexmap::IndexMap; use indexmap::IndexMap;
use super::{
args::{Arg, KwArgs},
Args,
};
use crate::{ use crate::{
errors::{KclError, KclErrorDetails}, errors::{KclError, KclErrorDetails},
execution::{ execution::{
fn_call::{Arg, Args, KwArgs},
kcl_value::{FunctionSource, KclValue}, kcl_value::{FunctionSource, KclValue},
types::RuntimeType, types::RuntimeType,
ExecState, ExecState,

View File

@ -59,10 +59,7 @@ async fn inner_clone(
let mut new_sketch = sketch.clone(); let mut new_sketch = sketch.clone();
new_sketch.id = new_id; new_sketch.id = new_id;
new_sketch.original_id = new_id; new_sketch.original_id = new_id;
#[cfg(feature = "artifact-graph")] new_sketch.artifact_id = new_id.into();
{
new_sketch.artifact_id = new_id.into();
}
GeometryWithImportedGeometry::Sketch(new_sketch) GeometryWithImportedGeometry::Sketch(new_sketch)
} }
GeometryWithImportedGeometry::Solid(solid) => { GeometryWithImportedGeometry::Solid(solid) => {
@ -72,10 +69,7 @@ async fn inner_clone(
let mut new_solid = solid.clone(); let mut new_solid = solid.clone();
new_solid.id = new_id; new_solid.id = new_id;
new_solid.sketch.original_id = new_id; new_solid.sketch.original_id = new_id;
#[cfg(feature = "artifact-graph")] new_solid.artifact_id = new_id.into();
{
new_solid.artifact_id = new_id.into();
}
GeometryWithImportedGeometry::Solid(new_solid) GeometryWithImportedGeometry::Solid(new_solid)
} }
}; };
@ -118,10 +112,7 @@ async fn fix_tags_and_references(
// Make the sketch id the new geometry id. // Make the sketch id the new geometry id.
solid.sketch.id = new_geometry_id; solid.sketch.id = new_geometry_id;
solid.sketch.original_id = new_geometry_id; solid.sketch.original_id = new_geometry_id;
#[cfg(feature = "artifact-graph")] solid.sketch.artifact_id = new_geometry_id.into();
{
solid.sketch.artifact_id = new_geometry_id.into();
}
fix_sketch_tags_and_references(&mut solid.sketch, &entity_id_map, exec_state).await?; fix_sketch_tags_and_references(&mut solid.sketch, &entity_id_map, exec_state).await?;
@ -148,7 +139,6 @@ async fn fix_tags_and_references(
// information. // information.
let new_solid = do_post_extrude( let new_solid = do_post_extrude(
&solid.sketch, &solid.sketch,
#[cfg(feature = "artifact-graph")]
new_geometry_id.into(), new_geometry_id.into(),
crate::std::args::TyF64::new( crate::std::args::TyF64::new(
solid.height, solid.height,
@ -332,10 +322,8 @@ clonedCube = clone(cube)
assert_ne!(cube.id, cloned_cube.id); assert_ne!(cube.id, cloned_cube.id);
assert_ne!(cube.original_id, cloned_cube.original_id); assert_ne!(cube.original_id, cloned_cube.original_id);
#[cfg(feature = "artifact-graph")]
assert_ne!(cube.artifact_id, cloned_cube.artifact_id); assert_ne!(cube.artifact_id, cloned_cube.artifact_id);
#[cfg(feature = "artifact-graph")]
assert_eq!(cloned_cube.artifact_id, cloned_cube.id.into()); assert_eq!(cloned_cube.artifact_id, cloned_cube.id.into());
assert_eq!(cloned_cube.original_id, cloned_cube.id); assert_eq!(cloned_cube.original_id, cloned_cube.id);
@ -384,12 +372,9 @@ clonedCube = clone(cube)
assert_ne!(cube.id, cloned_cube.id); assert_ne!(cube.id, cloned_cube.id);
assert_ne!(cube.sketch.id, cloned_cube.sketch.id); assert_ne!(cube.sketch.id, cloned_cube.sketch.id);
assert_ne!(cube.sketch.original_id, cloned_cube.sketch.original_id); assert_ne!(cube.sketch.original_id, cloned_cube.sketch.original_id);
#[cfg(feature = "artifact-graph")]
assert_ne!(cube.artifact_id, cloned_cube.artifact_id); assert_ne!(cube.artifact_id, cloned_cube.artifact_id);
#[cfg(feature = "artifact-graph")]
assert_ne!(cube.sketch.artifact_id, cloned_cube.sketch.artifact_id); assert_ne!(cube.sketch.artifact_id, cloned_cube.sketch.artifact_id);
#[cfg(feature = "artifact-graph")]
assert_eq!(cloned_cube.artifact_id, cloned_cube.id.into()); assert_eq!(cloned_cube.artifact_id, cloned_cube.id.into());
for (path, cloned_path) in cube.sketch.paths.iter().zip(cloned_cube.sketch.paths.iter()) { for (path, cloned_path) in cube.sketch.paths.iter().zip(cloned_cube.sketch.paths.iter()) {
@ -501,12 +486,9 @@ clonedCube = clone(cube)
assert_ne!(cube.id, cloned_cube.id); assert_ne!(cube.id, cloned_cube.id);
assert_ne!(cube.sketch.id, cloned_cube.sketch.id); assert_ne!(cube.sketch.id, cloned_cube.sketch.id);
assert_ne!(cube.sketch.original_id, cloned_cube.sketch.original_id); assert_ne!(cube.sketch.original_id, cloned_cube.sketch.original_id);
#[cfg(feature = "artifact-graph")]
assert_ne!(cube.artifact_id, cloned_cube.artifact_id); assert_ne!(cube.artifact_id, cloned_cube.artifact_id);
#[cfg(feature = "artifact-graph")]
assert_ne!(cube.sketch.artifact_id, cloned_cube.sketch.artifact_id); assert_ne!(cube.sketch.artifact_id, cloned_cube.sketch.artifact_id);
#[cfg(feature = "artifact-graph")]
assert_eq!(cloned_cube.artifact_id, cloned_cube.id.into()); assert_eq!(cloned_cube.artifact_id, cloned_cube.id.into());
for (path, cloned_path) in cube.sketch.paths.iter().zip(cloned_cube.sketch.paths.iter()) { for (path, cloned_path) in cube.sketch.paths.iter().zip(cloned_cube.sketch.paths.iter()) {
@ -576,12 +558,9 @@ clonedCube = clone(cube)
assert_ne!(cube.id, cloned_cube.id); assert_ne!(cube.id, cloned_cube.id);
assert_ne!(cube.sketch.id, cloned_cube.sketch.id); assert_ne!(cube.sketch.id, cloned_cube.sketch.id);
assert_ne!(cube.sketch.original_id, cloned_cube.sketch.original_id); assert_ne!(cube.sketch.original_id, cloned_cube.sketch.original_id);
#[cfg(feature = "artifact-graph")]
assert_ne!(cube.artifact_id, cloned_cube.artifact_id); assert_ne!(cube.artifact_id, cloned_cube.artifact_id);
#[cfg(feature = "artifact-graph")]
assert_ne!(cube.sketch.artifact_id, cloned_cube.sketch.artifact_id); assert_ne!(cube.sketch.artifact_id, cloned_cube.sketch.artifact_id);
#[cfg(feature = "artifact-graph")]
assert_eq!(cloned_cube.artifact_id, cloned_cube.id.into()); assert_eq!(cloned_cube.artifact_id, cloned_cube.id.into());
for (path, cloned_path) in cube.sketch.paths.iter().zip(cloned_cube.sketch.paths.iter()) { for (path, cloned_path) in cube.sketch.paths.iter().zip(cloned_cube.sketch.paths.iter()) {
@ -679,12 +658,9 @@ clonedCube = clone(cube)
assert_ne!(cube.id, cloned_cube.id); assert_ne!(cube.id, cloned_cube.id);
assert_ne!(cube.sketch.id, cloned_cube.sketch.id); assert_ne!(cube.sketch.id, cloned_cube.sketch.id);
assert_ne!(cube.sketch.original_id, cloned_cube.sketch.original_id); assert_ne!(cube.sketch.original_id, cloned_cube.sketch.original_id);
#[cfg(feature = "artifact-graph")]
assert_ne!(cube.artifact_id, cloned_cube.artifact_id); assert_ne!(cube.artifact_id, cloned_cube.artifact_id);
#[cfg(feature = "artifact-graph")]
assert_ne!(cube.sketch.artifact_id, cloned_cube.sketch.artifact_id); assert_ne!(cube.sketch.artifact_id, cloned_cube.sketch.artifact_id);
#[cfg(feature = "artifact-graph")]
assert_eq!(cloned_cube.artifact_id, cloned_cube.id.into()); assert_eq!(cloned_cube.artifact_id, cloned_cube.id.into());
for (value, cloned_value) in cube.value.iter().zip(cloned_cube.value.iter()) { for (value, cloned_value) in cube.value.iter().zip(cloned_cube.value.iter()) {

View File

@ -17,11 +17,12 @@ use kittycad_modeling_cmds::{self as kcmc};
use uuid::Uuid; use uuid::Uuid;
use super::args::TyF64; use super::args::TyF64;
#[cfg(feature = "artifact-graph")]
use crate::execution::ArtifactId;
use crate::{ use crate::{
errors::{KclError, KclErrorDetails}, errors::{KclError, KclErrorDetails},
execution::{types::RuntimeType, ExecState, ExtrudeSurface, GeoMeta, KclValue, Path, Sketch, SketchSurface, Solid}, execution::{
types::RuntimeType, ArtifactId, ExecState, ExtrudeSurface, GeoMeta, KclValue, Path, Sketch, SketchSurface,
Solid,
},
parsing::ast::types::TagNode, parsing::ast::types::TagNode,
std::Args, std::Args,
}; };
@ -210,7 +211,6 @@ async fn inner_extrude(
solids.push( solids.push(
do_post_extrude( do_post_extrude(
sketch, sketch,
#[cfg(feature = "artifact-graph")]
id.into(), id.into(),
length.clone(), length.clone(),
false, false,
@ -238,7 +238,7 @@ pub(crate) struct NamedCapTags<'a> {
#[allow(clippy::too_many_arguments)] #[allow(clippy::too_many_arguments)]
pub(crate) async fn do_post_extrude<'a>( pub(crate) async fn do_post_extrude<'a>(
sketch: &Sketch, sketch: &Sketch,
#[cfg(feature = "artifact-graph")] solid_id: ArtifactId, solid_id: ArtifactId,
length: TyF64, length: TyF64,
sectional: bool, sectional: bool,
named_cap_tags: &'a NamedCapTags<'a>, named_cap_tags: &'a NamedCapTags<'a>,
@ -431,7 +431,6 @@ pub(crate) async fn do_post_extrude<'a>(
// that we passed in to the function, but it's actually the id of the // that we passed in to the function, but it's actually the id of the
// sketch. // sketch.
id: sketch.id, id: sketch.id,
#[cfg(feature = "artifact-graph")]
artifact_id: solid_id, artifact_id: solid_id,
value: new_value, value: new_value,
meta: sketch.meta.clone(), meta: sketch.meta.clone(),

View File

@ -110,7 +110,6 @@ async fn inner_helix(
let helix_result = Box::new(HelixValue { let helix_result = Box::new(HelixValue {
value: id, value: id,
#[cfg(feature = "artifact-graph")]
artifact_id: id.into(), artifact_id: id.into(),
revolutions, revolutions,
angle_start, angle_start,

View File

@ -177,7 +177,6 @@ async fn inner_loft(
Ok(Box::new( Ok(Box::new(
do_post_extrude( do_post_extrude(
&sketch, &sketch,
#[cfg(feature = "artifact-graph")]
id.into(), id.into(),
TyF64::new(0.0, NumericType::mm()), TyF64::new(0.0, NumericType::mm()),
false, false,

View File

@ -328,14 +328,14 @@ impl StdLib {
self.fns.get(name).cloned() self.fns.get(name).cloned()
} }
pub fn get_either(&self, name: &Name) -> FunctionKind { pub fn get_rust_function(&self, name: &Name) -> Option<Box<dyn StdLibFn>> {
if let Some(name) = name.local_ident() { if let Some(name) = name.local_ident() {
if let Some(f) = self.get(name.inner) { if let Some(f) = self.get(name.inner) {
return FunctionKind::Core(f); return Some(f);
} }
} }
FunctionKind::UserDefined None
} }
pub fn contains_key(&self, key: &str) -> bool { pub fn contains_key(&self, key: &str) -> bool {
@ -349,11 +349,5 @@ impl Default for StdLib {
} }
} }
#[derive(Debug)]
pub enum FunctionKind {
Core(Box<dyn StdLibFn>),
UserDefined,
}
/// The default tolerance for modeling commands in [`kittycad_modeling_cmds::length_unit::LengthUnit`]. /// The default tolerance for modeling commands in [`kittycad_modeling_cmds::length_unit::LengthUnit`].
const DEFAULT_TOLERANCE: f64 = 0.0000001; const DEFAULT_TOLERANCE: f64 = 0.0000001;

View File

@ -18,15 +18,15 @@ use uuid::Uuid;
use crate::{ use crate::{
errors::{KclError, KclErrorDetails}, errors::{KclError, KclErrorDetails},
execution::{ execution::{
fn_call::{Arg, Args, KwArgs},
kcl_value::FunctionSource, kcl_value::FunctionSource,
types::{NumericType, PrimitiveType, RuntimeType}, types::{NumericType, PrimitiveType, RuntimeType},
ExecState, Geometries, Geometry, KclObjectFields, KclValue, Sketch, Solid, ExecState, Geometries, Geometry, KclObjectFields, KclValue, Sketch, Solid,
}, },
std::{ std::{
args::{Arg, KwArgs, TyF64}, args::TyF64,
axis_or_reference::Axis2dOrPoint2d, axis_or_reference::Axis2dOrPoint2d,
utils::{point_3d_to_mm, point_to_mm}, utils::{point_3d_to_mm, point_to_mm},
Args,
}, },
ExecutorContext, SourceRange, ExecutorContext, SourceRange,
}; };

View File

@ -196,7 +196,6 @@ async fn inner_revolve(
solids.push( solids.push(
do_post_extrude( do_post_extrude(
sketch, sketch,
#[cfg(feature = "artifact-graph")]
id.into(), id.into(),
TyF64::new(0.0, NumericType::mm()), TyF64::new(0.0, NumericType::mm()),
false, false,

View File

@ -1233,7 +1233,6 @@ async fn start_sketch_on_face(
Ok(Box::new(Face { Ok(Box::new(Face {
id: extrude_plane_id, id: extrude_plane_id,
#[cfg(feature = "artifact-graph")]
artifact_id: extrude_plane_id.into(), artifact_id: extrude_plane_id.into(),
value: tag.to_string(), value: tag.to_string(),
// TODO: get this from the extrude plane data. // TODO: get this from the extrude plane data.
@ -1414,7 +1413,6 @@ pub(crate) async fn inner_start_profile(
let sketch = Sketch { let sketch = Sketch {
id: path_id, id: path_id,
original_id: path_id, original_id: path_id,
#[cfg(feature = "artifact-graph")]
artifact_id: path_id.into(), artifact_id: path_id.into(),
on: sketch_surface.clone(), on: sketch_surface.clone(),
paths: vec![], paths: vec![],

View File

@ -218,7 +218,6 @@ async fn inner_sweep(
solids.push( solids.push(
do_post_extrude( do_post_extrude(
sketch, sketch,
#[cfg(feature = "artifact-graph")]
id.into(), id.into(),
TyF64::new(0.0, NumericType::mm()), TyF64::new(0.0, NumericType::mm()),
sectional.unwrap_or(false), sectional.unwrap_or(false),

View File

@ -133,7 +133,7 @@ export fn reduce(
initial: any, initial: any,
/// Run once per item in the input `array`. This function takes an item from the array, and the previous output from `f` (or `initial` on the very first run). The final time `f` is run, its output is returned as the final output from `reduce`. /// Run once per item in the input `array`. This function takes an item from the array, and the previous output from `f` (or `initial` on the very first run). The final time `f` is run, its output is returned as the final output from `reduce`.
f: fn(any, accum: any): any, f: fn(any, accum: any): any,
): [any] {} ): any {}
/// Append an element to the end of an array. /// Append an element to the end of an array.
/// ///

View File

@ -448,7 +448,7 @@ export fn legLen(
hypotenuse: number(Length), hypotenuse: number(Length),
/// The length of one of the triangle's legs (i.e. non-hypotenuse side). /// The length of one of the triangle's legs (i.e. non-hypotenuse side).
leg: number(Length), leg: number(Length),
): number(deg) {} ): number(Length) {}
/// Compute the angle of the given leg for x. /// Compute the angle of the given leg for x.
/// ///

View File

@ -277,4 +277,4 @@ export fn revolve(
tagStart?: tag, tagStart?: tag,
/// A named tag for the face at the end of the revolve. /// A named tag for the face at the end of the revolve.
tagEnd?: tag, tagEnd?: tag,
): Solid {} ): [Solid; 1+] {}

View File

@ -4,19 +4,30 @@ description: Operations executed angled_line.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,17 +46,6 @@ description: Operations executed angled_line.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

View File

@ -4,8 +4,8 @@ description: Error from executing array_elem_pop_empty_fail.kcl
--- ---
KCL Semantic error KCL Semantic error
× semantic: The input argument of `std::array::pop` requires a value with × semantic: The input argument of `pop` requires a value with type `[any;
type `[any; 1+]`, but found [any; 0] │ 1+]`, but found [any; 0]
╭─[2:8] ╭─[2:8]
1 │ arr = [] 1 │ arr = []
2 │ fail = pop(arr) 2 │ fail = pop(arr)
@ -15,8 +15,8 @@ KCL Semantic error
╰──── ╰────
╰─▶ KCL Semantic error ╰─▶ KCL Semantic error
× semantic: The input argument of `std::array::pop` requires a value × semantic: The input argument of `pop` requires a value with type
with type `[any; 1+]`, but found [any; 0] │ `[any; 1+]`, but found [any; 0]
╭─[2:12] ╭─[2:12]
1 │ arr = [] 1 │ arr = []
2 │ fail = pop(arr) 2 │ fail = pop(arr)

View File

@ -4,19 +4,30 @@ description: Operations executed artifact_graph_example_code1.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,21 +46,10 @@ description: Operations executed artifact_graph_example_code1.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -94,6 +94,17 @@ description: Operations executed artifact_graph_example_code1.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -104,20 +115,20 @@ description: Operations executed artifact_graph_example_code1.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -136,17 +147,6 @@ description: Operations executed artifact_graph_example_code1.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

View File

@ -4,29 +4,29 @@ description: Operations executed artifact_graph_example_code_no_3d.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
} }
] ]

View File

@ -4,7 +4,7 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl
--- ---
[ [
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -34,7 +34,7 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -64,7 +64,7 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -94,16 +94,16 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
} }
] ]

View File

@ -4,19 +4,30 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,20 +46,20 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -59,20 +70,20 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -91,20 +102,20 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -114,20 +125,20 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -146,20 +157,20 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -170,20 +181,20 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -202,17 +213,6 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

View File

@ -4,19 +4,30 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,21 +46,10 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,19 +4,30 @@ description: Operations executed basic_fillet_cube_end.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,21 +46,10 @@ description: Operations executed basic_fillet_cube_end.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,19 +4,30 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,21 +46,10 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,19 +4,30 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,21 +46,10 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,19 +4,30 @@ description: Operations executed basic_fillet_cube_start.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,21 +46,10 @@ description: Operations executed basic_fillet_cube_start.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,20 +4,20 @@ description: Operations executed basic_revolve_circle.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,19 +4,30 @@ description: Operations executed circle_three_point.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,17 +46,6 @@ description: Operations executed circle_three_point.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

View File

@ -4,19 +4,30 @@ description: Operations executed circular_pattern3d_a_pattern.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,20 +46,20 @@ description: Operations executed circular_pattern3d_a_pattern.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -130,20 +141,61 @@ description: Operations executed circular_pattern3d_a_pattern.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -279,58 +331,6 @@ description: Operations executed circular_pattern3d_a_pattern.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
} }
] ]

View File

@ -1,122 +0,0 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Operations executed clone_w_fillets.kcl
---
[
{
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
},
{
"labeledArgs": {
"length": {
"value": {
"type": "Number",
"value": 1.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"name": "extrude",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"type": "KclStdLibCall",
"name": "fillet",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {
"radius": {
"value": {
"type": "Number",
"value": 2.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
},
"tags": {
"value": {
"type": "Array",
"value": [
{
"type": "Uuid",
"value": "[uuid]"
},
{
"type": "Uuid",
"value": "[uuid]"
},
{
"type": "Uuid",
"value": "[uuid]"
},
{
"type": "Uuid",
"value": "[uuid]"
}
]
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "KclStdLibCall",
"name": "clone",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {},
"sourceRange": []
}
]

View File

@ -1,115 +0,0 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Operations executed clone_w_shell.kcl
---
[
{
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
},
{
"labeledArgs": {
"length": {
"value": {
"type": "Number",
"value": 6.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"name": "extrude",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"type": "KclStdLibCall",
"name": "shell",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": {
"faces": {
"value": {
"type": "Array",
"value": [
{
"type": "String",
"value": "end"
}
]
},
"sourceRange": []
},
"thickness": {
"value": {
"type": "Number",
"value": 0.25,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "KclStdLibCall",
"name": "clone",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {},
"sourceRange": []
}
]

View File

@ -4,19 +4,30 @@ description: Operations executed crazy_multi_profile.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,20 +46,20 @@ description: Operations executed crazy_multi_profile.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -59,21 +70,10 @@ description: Operations executed crazy_multi_profile.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -117,6 +117,17 @@ description: Operations executed crazy_multi_profile.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -135,9 +146,24 @@ description: Operations executed crazy_multi_profile.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
},
"labeledArgs": {},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -146,22 +172,7 @@ description: Operations executed crazy_multi_profile.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -180,21 +191,10 @@ description: Operations executed crazy_multi_profile.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,19 +4,30 @@ description: Operations executed cube.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,18 +46,7 @@ description: Operations executed cube.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -4,19 +4,30 @@ description: Operations executed cube_with_error.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,18 +46,7 @@ description: Operations executed cube_with_error.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -4,18 +4,18 @@ description: Operations executed error_inside_fn_also_has_source_range_of_call_s
--- ---
[ [
{ {
"isError": true,
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "String", "type": "String",
"value": "INVALID" "value": "INVALID"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": [],
"isError": true
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -4,19 +4,30 @@ description: Operations executed error_revolve_on_edge_get_edge.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,20 +46,20 @@ description: Operations executed error_revolve_on_edge_get_edge.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -59,21 +70,10 @@ description: Operations executed error_revolve_on_edge_get_edge.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,20 +4,30 @@ description: Operations executed execute_engine_error_return.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"isError": true, "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -36,17 +46,7 @@ description: Operations executed execute_engine_error_return.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude",
"sourceRange": [], "sourceRange": [],
"type": "StdLibCall", "isError": true
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

View File

@ -4,32 +4,43 @@ description: Operations executed fillet-and-shell.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -48,21 +59,10 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -118,58 +118,69 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -181,9 +192,11 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -192,9 +205,7 @@ description: Operations executed fillet-and-shell.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -206,9 +217,11 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -217,9 +230,7 @@ description: Operations executed fillet-and-shell.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -231,9 +242,11 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -242,9 +255,7 @@ description: Operations executed fillet-and-shell.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -256,9 +267,11 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -267,9 +280,7 @@ description: Operations executed fillet-and-shell.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -288,9 +299,11 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -299,9 +312,7 @@ description: Operations executed fillet-and-shell.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -320,9 +331,11 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -331,9 +344,7 @@ description: Operations executed fillet-and-shell.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -352,9 +363,11 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -363,9 +376,7 @@ description: Operations executed fillet-and-shell.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -384,18 +395,7 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -638,7 +638,7 @@ description: Operations executed fillet-and-shell.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "shell", "name": "shell",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,19 +4,30 @@ description: Operations executed fillet_duplicate_tags.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,21 +46,10 @@ description: Operations executed fillet_duplicate_tags.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,19 +4,30 @@ description: Operations executed flush_batch_on_end.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -28,9 +39,11 @@ description: Operations executed flush_batch_on_end.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -39,9 +52,7 @@ description: Operations executed flush_batch_on_end.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -60,17 +71,6 @@ description: Operations executed flush_batch_on_end.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

View File

@ -4,19 +4,30 @@ description: Operations executed function_sketch.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,18 +46,7 @@ description: Operations executed function_sketch.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -4,19 +4,30 @@ description: Operations executed function_sketch_with_position.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,18 +46,7 @@ description: Operations executed function_sketch_with_position.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -4,19 +4,30 @@ description: Operations executed helix_ccw.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,21 +46,10 @@ description: Operations executed helix_ccw.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "helix", "name": "helix",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,20 +4,20 @@ description: Operations executed helix_simple.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "helix", "name": "helix",
"unlabeledArg": null, "unlabeledArg": null,
"labeledArgs": { "labeledArgs": {

View File

@ -4,32 +4,43 @@ description: Operations executed i_shape.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -41,9 +52,11 @@ description: Operations executed i_shape.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -52,9 +65,7 @@ description: Operations executed i_shape.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -73,17 +84,6 @@ description: Operations executed i_shape.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

View File

@ -13,59 +13,59 @@ description: Operations executed import_async.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -95,7 +95,7 @@ description: Operations executed import_async.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -125,7 +125,7 @@ description: Operations executed import_async.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -515,6 +515,17 @@ description: Operations executed import_async.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -526,20 +537,20 @@ description: Operations executed import_async.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -551,20 +562,20 @@ description: Operations executed import_async.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -576,18 +587,7 @@ description: Operations executed import_async.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -674,10 +674,8 @@ description: Operations executed import_async.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "loft",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "loft",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -703,7 +701,9 @@ description: Operations executed import_async.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -13,7 +13,7 @@ description: Operations executed import_mesh_clone.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "clone", "name": "clone",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -26,7 +26,7 @@ description: Operations executed import_mesh_clone.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "clone", "name": "clone",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -39,7 +39,7 @@ description: Operations executed import_mesh_clone.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "clone", "name": "clone",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,32 +4,43 @@ description: Operations executed intersect_cubes.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -48,9 +59,11 @@ description: Operations executed intersect_cubes.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -59,9 +72,7 @@ description: Operations executed intersect_cubes.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -80,18 +91,7 @@ description: Operations executed intersect_cubes.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -218,10 +218,8 @@ description: Operations executed intersect_cubes.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -241,7 +239,9 @@ description: Operations executed intersect_cubes.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupEnd" "type": "GroupEnd"

View File

@ -4,17 +4,17 @@ description: Operations executed involute_circular_units.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -27,15 +27,11 @@ description: Operations executed involute_circular_units.kcl
"angle": { "angle": {
"value": { "value": {
"type": "Number", "type": "Number",
"value": 17.1429, "value": 0.2992,
"ty": { "ty": {
"type": "Default", "type": "Known",
"len": { "type": "Angle",
"type": "Cm" "type": "Radians"
},
"angle": {
"type": "Degrees"
}
} }
}, },
"sourceRange": [] "sourceRange": []
@ -61,6 +57,17 @@ description: Operations executed involute_circular_units.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -72,9 +79,11 @@ description: Operations executed involute_circular_units.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -83,9 +92,7 @@ description: Operations executed involute_circular_units.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -104,18 +111,7 @@ description: Operations executed involute_circular_units.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupEnd" "type": "GroupEnd"

View File

@ -4,19 +4,30 @@ description: Operations executed 80-20-rail.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -28,9 +39,11 @@ description: Operations executed 80-20-rail.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -39,9 +52,7 @@ description: Operations executed 80-20-rail.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -60,21 +71,10 @@ description: Operations executed 80-20-rail.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -178,7 +178,7 @@ description: Operations executed 80-20-rail.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -661,19 +661,19 @@ flowchart LR
84 --- 144 84 --- 144
84 --- 237 84 --- 237
86 --- 168 86 --- 168
86 x--> 189 86 x--> 188
86 --- 212 86 --- 212
86 --- 256 86 --- 256
88 --- 169 88 --- 169
88 x--> 189 88 x--> 188
88 --- 213 88 --- 213
88 --- 257 88 --- 257
90 --- 167 90 --- 167
90 x--> 189 90 x--> 188
90 --- 214 90 --- 214
90 --- 258 90 --- 258
92 --- 170 92 --- 170
92 x--> 189 92 x--> 188
92 --- 215 92 --- 215
92 --- 259 92 --- 259
119 --- 133 119 --- 133
@ -955,10 +955,10 @@ flowchart LR
218 <--x 186 218 <--x 186
219 <--x 186 219 <--x 186
194 <--x 187 194 <--x 187
212 <--x 188 212 <--x 189
213 <--x 188 213 <--x 189
214 <--x 188 214 <--x 189
215 <--x 188 215 <--x 189
220 <--x 275 220 <--x 275
223 <--x 270 223 <--x 270
224 <--x 274 224 <--x 274

View File

@ -4,20 +4,20 @@ description: Operations executed ball-bearing.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -47,6 +47,17 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -58,9 +69,11 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -69,9 +82,7 @@ description: Operations executed ball-bearing.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -90,34 +101,23 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -208,6 +208,17 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -343,34 +354,23 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -461,6 +461,17 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -596,34 +607,23 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -730,6 +730,17 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -865,34 +876,23 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -922,6 +922,17 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -933,9 +944,11 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -944,9 +957,7 @@ description: Operations executed ball-bearing.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -965,17 +976,6 @@ description: Operations executed ball-bearing.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

File diff suppressed because it is too large Load Diff

View File

@ -4,20 +4,20 @@ description: Operations executed bone-plate.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -126,19 +126,30 @@ description: Operations executed bone-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -157,9 +168,11 @@ description: Operations executed bone-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -168,9 +181,7 @@ description: Operations executed bone-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -189,9 +200,11 @@ description: Operations executed bone-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -200,9 +213,7 @@ description: Operations executed bone-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -221,9 +232,11 @@ description: Operations executed bone-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -232,9 +245,7 @@ description: Operations executed bone-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -253,9 +264,11 @@ description: Operations executed bone-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -264,9 +277,7 @@ description: Operations executed bone-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -285,9 +296,11 @@ description: Operations executed bone-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -296,9 +309,7 @@ description: Operations executed bone-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -317,9 +328,11 @@ description: Operations executed bone-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -328,9 +341,7 @@ description: Operations executed bone-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -349,9 +360,11 @@ description: Operations executed bone-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -360,9 +373,7 @@ description: Operations executed bone-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -381,34 +392,11 @@ description: Operations executed bone-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": { "type": "StdLibCall",
"tools": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
"name": "subtract", "name": "subtract",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -422,13 +410,23 @@ description: Operations executed bone-plate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {
"tools": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "union",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "union",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -448,23 +446,13 @@ description: Operations executed bone-plate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {
"tools": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
"name": "subtract",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -478,13 +466,23 @@ description: Operations executed bone-plate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {
"tools": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "union",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "union",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -504,23 +502,13 @@ description: Operations executed bone-plate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {
"tools": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
"name": "subtract",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -534,13 +522,23 @@ description: Operations executed bone-plate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {
"tools": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "union",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "union",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -560,23 +558,13 @@ description: Operations executed bone-plate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {
"tools": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
"name": "subtract",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -590,13 +578,23 @@ description: Operations executed bone-plate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {
"tools": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "union",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "union",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -616,6 +614,8 @@ description: Operations executed bone-plate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
} }
] ]

View File

@ -4,19 +4,30 @@ description: Operations executed bottle.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,20 +46,20 @@ description: Operations executed bottle.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -58,20 +69,20 @@ description: Operations executed bottle.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -90,21 +101,10 @@ description: Operations executed bottle.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "shell", "name": "shell",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,19 +4,30 @@ description: Operations executed bracket.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,20 +46,20 @@ description: Operations executed bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -59,20 +70,43 @@ description: Operations executed bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -91,25 +125,39 @@ description: Operations executed bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {
"face": {
"value": {
"type": "TagIdentifier",
"value": "seg04",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Sketch", "type": "Sketch",
"value": { "value": {
@ -125,33 +173,7 @@ description: Operations executed bracket.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
}
},
{
"labeledArgs": {
"face": {
"value": {
"type": "TagIdentifier",
"value": "seg04",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
}, },
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -170,32 +192,10 @@ description: Operations executed bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -239,7 +239,7 @@ description: Operations executed bracket.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -283,7 +283,7 @@ description: Operations executed bracket.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -49,6 +49,17 @@ description: Operations executed car-wheel-assembly.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -184,18 +195,7 @@ description: Operations executed car-wheel-assembly.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -172,7 +172,7 @@ flowchart LR
11 --- 42 11 --- 42
11 ---- 47 11 ---- 47
34 --- 48 34 --- 48
34 x--> 55 34 x--> 54
34 --- 57 34 --- 57
34 --- 62 34 --- 62
36 --- 49 36 --- 49
@ -224,7 +224,7 @@ flowchart LR
52 --- 58 52 --- 58
52 --- 63 52 --- 63
64 <--x 52 64 <--x 52
57 <--x 54 57 <--x 55
58 <--x 56 58 <--x 56
59 <--x 56 59 <--x 56
60 <--x 56 60 <--x 56

View File

@ -4,19 +4,30 @@ description: Operations executed cold-plate.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -42,34 +53,23 @@ description: Operations executed cold-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -99,20 +99,20 @@ description: Operations executed cold-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -142,6 +142,17 @@ description: Operations executed cold-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -153,9 +164,11 @@ description: Operations executed cold-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "sweep",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -164,9 +177,7 @@ description: Operations executed cold-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"path": { "path": {
"value": { "value": {
@ -178,9 +189,24 @@ description: Operations executed cold-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "sweep", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
},
"labeledArgs": {},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -189,22 +215,7 @@ description: Operations executed cold-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -230,20 +241,20 @@ description: Operations executed cold-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -325,17 +336,6 @@ description: Operations executed cold-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

View File

@ -4,7 +4,7 @@ description: Operations executed color-cube.kcl
--- ---
[ [
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -34,7 +34,7 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -64,7 +64,7 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -94,7 +94,7 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -124,7 +124,7 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -154,7 +154,7 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -184,6 +184,17 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -202,20 +213,20 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -234,20 +245,20 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -266,20 +277,20 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -298,20 +309,20 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -330,20 +341,20 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -362,18 +373,7 @@ description: Operations executed color-cube.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -4,19 +4,30 @@ description: Operations executed counterdrilled-weldment.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -28,9 +39,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -39,9 +52,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -60,21 +71,10 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "chamfer", "name": "chamfer",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -130,6 +130,17 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -139,9 +150,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Solid",
@ -150,9 +163,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -162,9 +173,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Solid",
@ -173,9 +186,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -185,9 +196,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Solid",
@ -196,9 +209,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -208,20 +219,20 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -240,9 +251,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -251,9 +264,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -272,9 +283,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -283,9 +296,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -304,9 +315,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -315,9 +328,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -336,9 +347,103 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "start"
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "start"
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "start"
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "start"
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -347,101 +452,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
}
},
{
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "start"
},
"sourceRange": []
}
}, },
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "start"
},
"sourceRange": []
}
},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "start"
},
"sourceRange": []
}
},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "start"
},
"sourceRange": []
}
},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -460,9 +471,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -471,9 +484,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -492,9 +503,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -503,9 +516,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -524,9 +535,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -535,9 +548,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -556,21 +567,10 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "chamfer", "name": "chamfer",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -615,7 +615,7 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "chamfer", "name": "chamfer",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -660,7 +660,7 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "chamfer", "name": "chamfer",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -705,7 +705,7 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "chamfer", "name": "chamfer",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -926,19 +926,30 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -957,34 +968,23 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1014,6 +1014,17 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1025,9 +1036,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1036,9 +1049,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1057,20 +1068,20 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tools": { "tools": {
"value": { "value": {
@ -1087,24 +1098,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -1244,13 +1242,13 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -1390,9 +1388,22 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1418,9 +1429,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1429,9 +1442,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1457,20 +1468,20 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -1606,9 +1617,11 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Solid",
@ -1617,9 +1630,7 @@ description: Operations executed counterdrilled-weldment.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -1755,18 +1766,7 @@ description: Operations executed counterdrilled-weldment.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -4,17 +4,17 @@ description: Operations executed countersunk-plate.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -57,6 +57,17 @@ description: Operations executed countersunk-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -68,9 +79,11 @@ description: Operations executed countersunk-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -79,9 +92,7 @@ description: Operations executed countersunk-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -100,9 +111,57 @@ description: Operations executed countersunk-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "end"
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "end"
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -111,55 +170,7 @@ description: Operations executed countersunk-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
}
},
{
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "end"
},
"sourceRange": []
}
}, },
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "end"
},
"sourceRange": []
}
},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -178,9 +189,11 @@ description: Operations executed countersunk-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -189,9 +202,7 @@ description: Operations executed countersunk-plate.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -210,21 +221,10 @@ description: Operations executed countersunk-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "chamfer", "name": "chamfer",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -269,7 +269,7 @@ description: Operations executed countersunk-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "chamfer", "name": "chamfer",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -67,90 +67,8 @@ description: Operations executed cpu-cooler.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {
"axis": {
"value": {
"type": "Array",
"value": [
{
"type": "Number",
"value": -1.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
{
"type": "Number",
"value": 0.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
{
"type": "Number",
"value": 0.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
}
]
},
"sourceRange": []
},
"distance": {
"value": {
"type": "Number",
"value": 80.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
},
"instances": {
"value": {
"type": "Number",
"value": 2.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"name": "patternLinear3d",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Solid",
@ -159,9 +77,7 @@ description: Operations executed cpu-cooler.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -243,9 +159,11 @@ description: Operations executed cpu-cooler.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -265,9 +183,7 @@ description: Operations executed cpu-cooler.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -349,9 +265,11 @@ description: Operations executed cpu-cooler.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -419,7 +337,89 @@ description: Operations executed cpu-cooler.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {
"axis": {
"value": {
"type": "Array",
"value": [
{
"type": "Number",
"value": -1.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
{
"type": "Number",
"value": 0.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
{
"type": "Number",
"value": 0.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
}
]
},
"sourceRange": []
},
"distance": {
"value": {
"type": "Number",
"value": 80.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
},
"instances": {
"value": {
"type": "Number",
"value": 2.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -555,6 +555,40 @@ description: Operations executed cpu-cooler.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -690,13 +724,39 @@ description: Operations executed cpu-cooler.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Solid", "type": "Solid",
"value": { "value": {
@ -724,9 +784,7 @@ description: Operations executed cpu-cooler.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -862,65 +920,7 @@ description: Operations executed cpu-cooler.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"type": "GroupEnd" "type": "GroupEnd"

View File

@ -4,20 +4,20 @@ description: Operations executed curtain-wall-anchor-plate.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -47,6 +47,17 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -65,21 +76,10 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -123,7 +123,7 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -167,17 +167,17 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -215,6 +215,17 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -233,20 +244,20 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -256,20 +267,20 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -288,34 +299,23 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -345,6 +345,17 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -363,20 +374,20 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -386,18 +397,7 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -435,6 +435,17 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -453,18 +464,7 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -511,10 +511,8 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "union",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "union",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -534,7 +532,9 @@ description: Operations executed curtain-wall-anchor-plate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -613,19 +613,30 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -644,21 +655,10 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "clone", "name": "clone",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -673,6 +673,22 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tools": { "tools": {
"value": { "value": {
@ -689,25 +705,25 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tools": { "tools": {
"value": { "value": {
@ -724,23 +740,7 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -803,6 +803,17 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -884,18 +895,7 @@ description: Operations executed curtain-wall-anchor-plate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupEnd" "type": "GroupEnd"

View File

@ -4,46 +4,46 @@ description: Operations executed cycloidal-gear.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -73,7 +73,7 @@ description: Operations executed cycloidal-gear.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -103,7 +103,7 @@ description: Operations executed cycloidal-gear.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -133,6 +133,17 @@ description: Operations executed cycloidal-gear.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -144,9 +155,11 @@ description: Operations executed cycloidal-gear.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -155,9 +168,7 @@ description: Operations executed cycloidal-gear.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -169,9 +180,11 @@ description: Operations executed cycloidal-gear.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -180,9 +193,7 @@ description: Operations executed cycloidal-gear.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -194,24 +205,11 @@ description: Operations executed cycloidal-gear.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {}, "type": "StdLibCall",
"name": "loft", "name": "loft",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -237,7 +235,9 @@ description: Operations executed cycloidal-gear.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -362,13 +362,9 @@ description: Operations executed cycloidal-gear.kcl
"type": "Number", "type": "Number",
"value": -80.0, "value": -80.0,
"ty": { "ty": {
"type": "Default", "type": "Known",
"len": { "type": "Angle",
"type": "Inches" "type": "Degrees"
},
"angle": {
"type": "Degrees"
}
} }
}, },
"sourceRange": [] "sourceRange": []

View File

@ -4,162 +4,173 @@ description: Operations executed dodecahedron.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -178,9 +189,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -189,9 +202,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -210,9 +221,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -221,9 +234,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -242,9 +253,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -253,9 +266,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -274,9 +285,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -285,9 +298,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -306,9 +317,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -317,9 +330,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -338,9 +349,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -349,9 +362,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -370,9 +381,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -381,9 +394,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -402,9 +413,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -413,9 +426,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -434,9 +445,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -445,9 +458,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -466,9 +477,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -477,9 +490,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -498,9 +509,11 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -509,9 +522,7 @@ description: Operations executed dodecahedron.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -530,18 +541,7 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -2128,10 +2128,8 @@ description: Operations executed dodecahedron.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2151,13 +2149,13 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2177,13 +2175,13 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2203,13 +2201,13 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2229,13 +2227,13 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2255,13 +2253,13 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2281,13 +2279,13 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2307,13 +2305,13 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2333,13 +2331,13 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2359,13 +2357,13 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2385,13 +2383,13 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "intersect",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "intersect",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2411,7 +2409,9 @@ description: Operations executed dodecahedron.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -4,19 +4,30 @@ description: Operations executed enclosure.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,21 +46,10 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -105,7 +105,7 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "shell", "name": "shell",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -149,10 +149,8 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -336,13 +334,13 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -526,13 +524,13 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -716,13 +714,13 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -906,9 +904,22 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -920,9 +931,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -931,9 +944,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -945,9 +956,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -956,9 +969,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -970,9 +981,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -981,9 +994,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -995,9 +1006,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1006,9 +1019,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1027,9 +1038,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1038,9 +1051,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1059,9 +1070,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1070,9 +1083,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1091,9 +1102,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1102,9 +1115,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1123,18 +1134,7 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -1313,19 +1313,30 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1337,9 +1348,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1348,9 +1361,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1362,9 +1373,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1373,9 +1386,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1387,9 +1398,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1398,9 +1411,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1412,9 +1423,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1423,9 +1436,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1444,21 +1455,10 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1514,6 +1514,17 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -1523,20 +1534,20 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1548,9 +1559,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1559,9 +1572,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1573,9 +1584,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1584,9 +1597,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1598,9 +1609,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1609,9 +1622,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1623,9 +1634,11 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1634,9 +1647,7 @@ description: Operations executed enclosure.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1655,21 +1666,10 @@ description: Operations executed enclosure.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,343 +4,348 @@ description: Variables in memory after executing enclosure.kcl
--- ---
{ {
"extrude001": { "extrude001": {
"type": "Solid", "type": "HomArray",
"value": { "value": [
"type": "Solid", {
"id": "[uuid]", "type": "Solid",
"artifactId": "[uuid]", "value": {
"value": [ "type": "Solid",
{
"faceId": "[uuid]",
"id": "[uuid]", "id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 380,
"end": 401,
"start": 380,
"type": "TagDeclarator",
"value": "rectangleSegmentA001"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 476,
"end": 497,
"start": 476,
"type": "TagDeclarator",
"value": "rectangleSegmentB001"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 599,
"end": 620,
"start": 599,
"type": "TagDeclarator",
"value": "rectangleSegmentC001"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 690,
"end": 711,
"start": 690,
"type": "TagDeclarator",
"value": "rectangleSegmentD001"
},
"type": "extrudePlane"
}
],
"sketch": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
0.0
],
"tag": {
"commentStart": 380,
"end": 401,
"start": 380,
"type": "TagDeclarator",
"value": "rectangleSegmentA001"
},
"to": [
125.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
125.0,
0.0
],
"tag": {
"commentStart": 476,
"end": 497,
"start": 476,
"type": "TagDeclarator",
"value": "rectangleSegmentB001"
},
"to": [
125.0,
175.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
125.0,
175.0
],
"tag": {
"commentStart": 599,
"end": 620,
"start": 599,
"type": "TagDeclarator",
"value": "rectangleSegmentC001"
},
"to": [
0.0,
175.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
175.0
],
"tag": {
"commentStart": 690,
"end": 711,
"start": 690,
"type": "TagDeclarator",
"value": "rectangleSegmentD001"
},
"to": [
0.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
0.0
],
"tag": null,
"to": [
0.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
}
],
"on": {
"artifactId": "[uuid]", "artifactId": "[uuid]",
"id": "[uuid]", "value": [
"origin": { {
"x": 0.0, "faceId": "[uuid]",
"y": 0.0, "id": "[uuid]",
"z": 0.0, "sourceRange": [],
"tag": {
"commentStart": 380,
"end": 401,
"start": 380,
"type": "TagDeclarator",
"value": "rectangleSegmentA001"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 476,
"end": 497,
"start": 476,
"type": "TagDeclarator",
"value": "rectangleSegmentB001"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 599,
"end": 620,
"start": 599,
"type": "TagDeclarator",
"value": "rectangleSegmentC001"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 690,
"end": 711,
"start": 690,
"type": "TagDeclarator",
"value": "rectangleSegmentD001"
},
"type": "extrudePlane"
}
],
"sketch": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
0.0
],
"tag": {
"commentStart": 380,
"end": 401,
"start": 380,
"type": "TagDeclarator",
"value": "rectangleSegmentA001"
},
"to": [
125.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
125.0,
0.0
],
"tag": {
"commentStart": 476,
"end": 497,
"start": 476,
"type": "TagDeclarator",
"value": "rectangleSegmentB001"
},
"to": [
125.0,
175.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
125.0,
175.0
],
"tag": {
"commentStart": 599,
"end": 620,
"start": 599,
"type": "TagDeclarator",
"value": "rectangleSegmentC001"
},
"to": [
0.0,
175.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
175.0
],
"tag": {
"commentStart": 690,
"end": 711,
"start": 690,
"type": "TagDeclarator",
"value": "rectangleSegmentD001"
},
"to": [
0.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
0.0
],
"tag": null,
"to": [
0.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
}
],
"on": {
"artifactId": "[uuid]",
"id": "[uuid]",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"type": "plane",
"value": "XY",
"xAxis": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
},
"start": {
"from": [
0.0,
0.0
],
"to": [
0.0,
0.0
],
"units": {
"type": "Mm"
},
"tag": null,
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
}
},
"tags": {
"rectangleSegmentA001": {
"type": "TagIdentifier",
"value": "rectangleSegmentA001"
},
"rectangleSegmentB001": {
"type": "TagIdentifier",
"value": "rectangleSegmentB001"
},
"rectangleSegmentC001": {
"type": "TagIdentifier",
"value": "rectangleSegmentC001"
},
"rectangleSegmentD001": {
"type": "TagIdentifier",
"value": "rectangleSegmentD001"
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": { "units": {
"type": "Mm" "type": "Mm"
} }
}, },
"type": "plane", "height": 70.0,
"value": "XY", "startCapId": "[uuid]",
"xAxis": { "endCapId": "[uuid]",
"x": 1.0, "edgeCuts": [
"y": 0.0, {
"z": 0.0, "type": "fillet",
"units": { "id": "[uuid]",
"type": "Unknown" "radius": {
"n": 12.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 12.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 12.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 12.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
} }
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
},
"start": {
"from": [
0.0,
0.0
],
"to": [
0.0,
0.0
], ],
"units": { "units": {
"type": "Mm" "type": "Mm"
}, },
"tag": null, "sectional": false
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
}
},
"tags": {
"rectangleSegmentA001": {
"type": "TagIdentifier",
"value": "rectangleSegmentA001"
},
"rectangleSegmentB001": {
"type": "TagIdentifier",
"value": "rectangleSegmentB001"
},
"rectangleSegmentC001": {
"type": "TagIdentifier",
"value": "rectangleSegmentC001"
},
"rectangleSegmentD001": {
"type": "TagIdentifier",
"value": "rectangleSegmentD001"
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
} }
}, }
"height": 70.0, ]
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"edgeCuts": [
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 12.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 12.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 12.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 12.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
}
],
"units": {
"type": "Mm"
},
"sectional": false
}
}, },
"extrude003": { "extrude003": {
"type": "Solid", "type": "Solid",

View File

@ -4,20 +4,20 @@ description: Operations executed engine-valve.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -124,20 +124,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -167,6 +167,17 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -185,20 +196,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -208,20 +219,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -240,20 +251,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -263,20 +274,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -295,20 +306,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -318,20 +329,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -350,20 +361,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -373,20 +384,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -405,20 +416,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -428,20 +439,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -460,20 +471,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -483,20 +494,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -515,20 +526,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -538,20 +549,20 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -577,21 +588,10 @@ description: Operations executed engine-valve.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "chamfer", "name": "chamfer",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,10 +4,8 @@ description: Operations executed exhaust-manifold.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -181,13 +179,13 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -361,13 +359,13 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -541,13 +539,13 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -721,61 +719,74 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -787,9 +798,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -798,9 +811,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -812,9 +823,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -823,9 +836,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -837,9 +848,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -848,9 +861,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -862,9 +873,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "sweep",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -873,9 +886,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"path": { "path": {
"value": { "value": {
@ -887,9 +898,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "sweep", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "sweep",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -898,9 +911,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"path": { "path": {
"value": { "value": {
@ -912,9 +923,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "sweep", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "sweep",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -923,9 +936,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"path": { "path": {
"value": { "value": {
@ -937,9 +948,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "sweep", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "sweep",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -948,9 +961,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"path": { "path": {
"value": { "value": {
@ -962,18 +973,7 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "sweep", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -1344,19 +1344,30 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1368,9 +1379,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1379,9 +1392,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1393,9 +1404,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1404,9 +1417,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1418,9 +1429,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1429,9 +1442,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1443,9 +1454,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1454,9 +1467,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1468,9 +1479,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1479,9 +1492,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1493,9 +1504,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1504,9 +1517,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1518,9 +1529,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1529,9 +1542,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1543,9 +1554,11 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1554,9 +1567,7 @@ description: Operations executed exhaust-manifold.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1575,21 +1586,10 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1637,7 +1637,7 @@ description: Operations executed exhaust-manifold.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,32 +4,43 @@ description: Operations executed flange.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -64,9 +75,11 @@ description: Operations executed flange.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -75,9 +88,7 @@ description: Operations executed flange.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -96,20 +107,20 @@ description: Operations executed flange.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -119,20 +130,20 @@ description: Operations executed flange.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -151,20 +162,20 @@ description: Operations executed flange.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -174,20 +185,20 @@ description: Operations executed flange.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -206,20 +217,20 @@ description: Operations executed flange.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -229,20 +240,20 @@ description: Operations executed flange.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Sketch",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -261,17 +272,6 @@ description: Operations executed flange.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

View File

@ -4,10 +4,8 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -191,7 +189,9 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -254,6 +254,17 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -272,21 +283,10 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -342,10 +342,8 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -529,9 +527,22 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -543,9 +554,11 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -554,9 +567,7 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -575,21 +586,10 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -637,6 +637,17 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -718,24 +729,11 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -919,9 +917,22 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -933,9 +944,11 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -944,9 +957,7 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -965,21 +976,10 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1027,6 +1027,17 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -1108,24 +1119,11 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -1309,9 +1307,22 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1330,24 +1341,11 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -1531,9 +1529,22 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1552,18 +1563,7 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupEnd" "type": "GroupEnd"

View File

@ -70,17 +70,17 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -392,6 +392,17 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -403,9 +414,11 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -414,9 +427,7 @@ description: Operations executed food-service-spatula.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -428,9 +439,11 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -439,9 +452,7 @@ description: Operations executed food-service-spatula.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -453,9 +464,11 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -464,9 +477,7 @@ description: Operations executed food-service-spatula.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -485,21 +496,10 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -547,20 +547,20 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -590,6 +590,17 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -608,21 +619,10 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -670,10 +670,8 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -857,9 +855,22 @@ description: Operations executed food-service-spatula.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -878,20 +889,20 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -902,18 +913,7 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -1019,6 +1019,17 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1037,18 +1048,7 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupEnd" "type": "GroupEnd"

View File

@ -4,20 +4,20 @@ description: Operations executed french-press.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -119,10 +119,8 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Object", "type": "Object",
@ -306,9 +304,22 @@ description: Operations executed french-press.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -327,20 +338,20 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -476,34 +487,23 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -533,6 +533,17 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -551,20 +562,20 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -574,41 +585,11 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {
"length": {
"value": {
"type": "Number",
"value": -0.05,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"name": "extrude",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -634,23 +615,42 @@ description: Operations executed french-press.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {
"length": {
"value": {
"type": "Number",
"value": -0.05,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -736,20 +736,20 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -835,20 +835,20 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -878,6 +878,17 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -889,9 +900,11 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -900,9 +913,7 @@ description: Operations executed french-press.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -921,9 +932,204 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "end"
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": {
"length": {
"value": {
"type": "Number",
"value": -0.05,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "end"
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": {
"length": {
"value": {
"type": "Number",
"value": -0.05,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
},
"labeledArgs": {},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -932,202 +1138,7 @@ description: Operations executed french-press.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
}
},
{
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "end"
},
"sourceRange": []
}
}, },
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"labeledArgs": {
"length": {
"value": {
"type": "Number",
"value": -0.05,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"name": "extrude",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
},
{
"labeledArgs": {
"face": {
"value": {
"type": "String",
"value": "end"
},
"sourceRange": []
}
},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"labeledArgs": {
"length": {
"value": {
"type": "Number",
"value": -0.05,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"name": "extrude",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
},
{
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1146,21 +1157,10 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "shell", "name": "shell",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1204,20 +1204,20 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1303,20 +1303,20 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1346,6 +1346,17 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1364,17 +1375,6 @@ description: Operations executed french-press.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
} }
] ]

View File

@ -3629,112 +3629,117 @@ description: Variables in memory after executing french-press.kcl
] ]
}, },
"extrude006": { "extrude006": {
"type": "Solid", "type": "HomArray",
"value": { "value": [
"type": "Solid", {
"id": "[uuid]", "type": "Solid",
"artifactId": "[uuid]", "value": {
"value": [ "type": "Solid",
{
"faceId": "[uuid]",
"id": "[uuid]", "id": "[uuid]",
"sourceRange": [], "artifactId": "[uuid]",
"tag": null, "value": [
"type": "extrudeArc" {
} "faceId": "[uuid]",
],
"sketch": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]", "id": "[uuid]",
"sourceRange": [] "sourceRange": [],
"tag": null,
"type": "extrudeArc"
}
],
"sketch": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"ccw": true,
"center": [
0.0,
0.0
],
"from": [
2.205,
0.0
],
"radius": 2.205,
"tag": null,
"to": [
2.205,
0.0
],
"type": "Circle",
"units": {
"type": "Inches"
}
}
],
"on": {
"artifactId": "[uuid]",
"id": "[uuid]",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"type": "plane",
"value": "XY",
"xAxis": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
}, },
"ccw": true, "start": {
"center": [ "from": [
0.0, 2.205,
0.0 0.0
], ],
"from": [ "to": [
2.205, 2.205,
0.0 0.0
], ],
"radius": 2.205, "units": {
"tag": null, "type": "Inches"
"to": [ },
2.205, "tag": null,
0.0 "__geoMeta": {
], "id": "[uuid]",
"type": "Circle", "sourceRange": []
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": { "units": {
"type": "Inches" "type": "Inches"
} }
}
],
"on": {
"artifactId": "[uuid]",
"id": "[uuid]",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Mm"
}
}, },
"type": "plane", "height": 7.32,
"value": "XY", "startCapId": "[uuid]",
"xAxis": { "endCapId": "[uuid]",
"x": 1.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
},
"start": {
"from": [
2.205,
0.0
],
"to": [
2.205,
0.0
],
"units": { "units": {
"type": "Inches" "type": "Inches"
}, },
"tag": null, "sectional": false
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Inches"
} }
}, }
"height": 7.32, ]
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"units": {
"type": "Inches"
},
"sectional": false
}
}, },
"extrude007": { "extrude007": {
"type": "Solid", "type": "Solid",

View File

@ -4,19 +4,30 @@ description: Operations executed gear-rack.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -35,9 +46,24 @@ description: Operations executed gear-rack.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
},
"labeledArgs": {},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -46,22 +72,7 @@ description: Operations executed gear-rack.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -80,18 +91,7 @@ description: Operations executed gear-rack.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -105,6 +105,17 @@ description: Operations executed gear-rack.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -186,33 +197,33 @@ description: Operations executed gear-rack.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -231,9 +242,24 @@ description: Operations executed gear-rack.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
},
"labeledArgs": {},
"sourceRange": []
},
{
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -242,22 +268,7 @@ description: Operations executed gear-rack.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -276,18 +287,7 @@ description: Operations executed gear-rack.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupEnd" "type": "GroupEnd"

View File

@ -4,32 +4,43 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -48,18 +59,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -79,7 +79,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -109,6 +109,17 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -244,21 +255,10 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -382,7 +382,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -412,6 +412,17 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -547,20 +558,43 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -642,13 +676,39 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Solid", "type": "Solid",
"value": { "value": {
@ -676,9 +736,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -760,37 +818,15 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Solid", "type": "Solid",
"value": { "value": {
@ -818,9 +854,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -902,13 +936,39 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Solid", "type": "Solid",
"value": { "value": {
@ -936,9 +996,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -1020,119 +1078,72 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1144,9 +1155,11 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1155,9 +1168,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1169,18 +1180,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -1217,17 +1217,17 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -1247,6 +1247,17 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1281,9 +1292,11 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -1292,9 +1305,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1313,21 +1324,10 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1400,7 +1400,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1430,6 +1430,17 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1448,21 +1459,10 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1518,6 +1518,17 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -1599,20 +1610,31 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -1694,31 +1716,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -1800,20 +1811,31 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -1895,29 +1917,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"type": "GroupEnd" "type": "GroupEnd"

View File

@ -4,32 +4,43 @@ description: Operations executed gridfinity-baseplate.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -48,18 +59,7 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -79,7 +79,7 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -109,6 +109,17 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -244,21 +255,10 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -382,7 +382,7 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -412,6 +412,17 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -547,20 +558,43 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -642,13 +676,39 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Solid", "type": "Solid",
"value": { "value": {
@ -676,9 +736,7 @@ description: Operations executed gridfinity-baseplate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -760,37 +818,15 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Solid", "type": "Solid",
"value": { "value": {
@ -818,9 +854,7 @@ description: Operations executed gridfinity-baseplate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -902,13 +936,39 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Solid", "type": "Solid",
"value": { "value": {
@ -936,9 +996,7 @@ description: Operations executed gridfinity-baseplate.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -1020,65 +1078,7 @@ description: Operations executed gridfinity-baseplate.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"type": "GroupEnd" "type": "GroupEnd"

View File

@ -12943,324 +12943,329 @@ description: Variables in memory after executing gridfinity-bins-stacking-lip.kc
} }
}, },
"binTop": { "binTop": {
"type": "Solid", "type": "HomArray",
"value": { "value": [
"type": "Solid", {
"id": "[uuid]", "type": "Solid",
"artifactId": "[uuid]", "value": {
"value": [ "type": "Solid",
{
"faceId": "[uuid]",
"id": "[uuid]", "id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4704,
"end": 4712,
"start": 4704,
"type": "TagDeclarator",
"value": "line010"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4783,
"end": 4791,
"start": 4783,
"type": "TagDeclarator",
"value": "line011"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4842,
"end": 4850,
"start": 4842,
"type": "TagDeclarator",
"value": "line012"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4869,
"end": 4877,
"start": 4869,
"type": "TagDeclarator",
"value": "line013"
},
"type": "extrudePlane"
}
],
"sketch": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
0.0
],
"tag": {
"commentStart": 4704,
"end": 4712,
"start": 4704,
"type": "TagDeclarator",
"value": "line010"
},
"to": [
84.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
84.0,
0.0
],
"tag": {
"commentStart": 4783,
"end": 4791,
"start": 4783,
"type": "TagDeclarator",
"value": "line011"
},
"to": [
84.0,
126.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
84.0,
126.0
],
"tag": {
"commentStart": 4842,
"end": 4850,
"start": 4842,
"type": "TagDeclarator",
"value": "line012"
},
"to": [
0.0,
126.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
126.0
],
"tag": {
"commentStart": 4869,
"end": 4877,
"start": 4869,
"type": "TagDeclarator",
"value": "line013"
},
"to": [
0.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
}
],
"on": {
"artifactId": "[uuid]", "artifactId": "[uuid]",
"id": "[uuid]", "value": [
"origin": { {
"x": 0.0, "faceId": "[uuid]",
"y": 0.0, "id": "[uuid]",
"z": 4.75, "sourceRange": [],
"tag": {
"commentStart": 4704,
"end": 4712,
"start": 4704,
"type": "TagDeclarator",
"value": "line010"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4783,
"end": 4791,
"start": 4783,
"type": "TagDeclarator",
"value": "line011"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4842,
"end": 4850,
"start": 4842,
"type": "TagDeclarator",
"value": "line012"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4869,
"end": 4877,
"start": 4869,
"type": "TagDeclarator",
"value": "line013"
},
"type": "extrudePlane"
}
],
"sketch": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
0.0
],
"tag": {
"commentStart": 4704,
"end": 4712,
"start": 4704,
"type": "TagDeclarator",
"value": "line010"
},
"to": [
84.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
84.0,
0.0
],
"tag": {
"commentStart": 4783,
"end": 4791,
"start": 4783,
"type": "TagDeclarator",
"value": "line011"
},
"to": [
84.0,
126.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
84.0,
126.0
],
"tag": {
"commentStart": 4842,
"end": 4850,
"start": 4842,
"type": "TagDeclarator",
"value": "line012"
},
"to": [
0.0,
126.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
126.0
],
"tag": {
"commentStart": 4869,
"end": 4877,
"start": 4869,
"type": "TagDeclarator",
"value": "line013"
},
"to": [
0.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
}
],
"on": {
"artifactId": "[uuid]",
"id": "[uuid]",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 4.75,
"units": {
"type": "Mm"
}
},
"type": "plane",
"value": "Custom",
"xAxis": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
},
"start": {
"from": [
0.0,
0.0
],
"to": [
0.0,
0.0
],
"units": {
"type": "Mm"
},
"tag": null,
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
}
},
"tags": {
"line010": {
"type": "TagIdentifier",
"value": "line010"
},
"line011": {
"type": "TagIdentifier",
"value": "line011"
},
"line012": {
"type": "TagIdentifier",
"value": "line012"
},
"line013": {
"type": "TagIdentifier",
"value": "line013"
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": { "units": {
"type": "Mm" "type": "Mm"
} }
}, },
"type": "plane", "height": 7.0,
"value": "Custom", "startCapId": "[uuid]",
"xAxis": { "endCapId": "[uuid]",
"x": 1.0, "edgeCuts": [
"y": 0.0, {
"z": 0.0, "type": "fillet",
"units": { "id": "[uuid]",
"type": "Unknown" "radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
} }
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
},
"start": {
"from": [
0.0,
0.0
],
"to": [
0.0,
0.0
], ],
"units": { "units": {
"type": "Mm" "type": "Mm"
}, },
"tag": null, "sectional": false
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
}
},
"tags": {
"line010": {
"type": "TagIdentifier",
"value": "line010"
},
"line011": {
"type": "TagIdentifier",
"value": "line011"
},
"line012": {
"type": "TagIdentifier",
"value": "line012"
},
"line013": {
"type": "TagIdentifier",
"value": "line013"
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
} }
}, }
"height": 7.0, ]
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"edgeCuts": [
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
}
],
"units": {
"type": "Mm"
},
"sectional": false
}
}, },
"cornerRadius": { "cornerRadius": {
"type": "Number", "type": "Number",

View File

@ -4,32 +4,43 @@ description: Operations executed gridfinity-bins.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -48,18 +59,7 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -79,7 +79,7 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -109,6 +109,17 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -244,21 +255,10 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -382,7 +382,7 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -412,6 +412,17 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -547,33 +558,33 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -592,21 +603,10 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -662,6 +662,17 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"face": { "face": {
"value": { "value": {
@ -671,20 +682,43 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "startSketchOn", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -703,33 +737,35 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{ {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
{ {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
{ {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
}, },
{ {
"type": "Sketch", "type": "Solid",
"value": { "value": {
"artifactId": "[uuid]" "artifactId": "[uuid]"
} }
@ -737,9 +773,7 @@ description: Operations executed gridfinity-bins.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -821,13 +855,39 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Solid", "type": "Solid",
"value": { "value": {
@ -855,9 +915,7 @@ description: Operations executed gridfinity-bins.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -939,37 +997,15 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Solid", "type": "Solid",
"value": { "value": {
@ -997,9 +1033,7 @@ description: Operations executed gridfinity-bins.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -1081,13 +1115,39 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
"value": [ "value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{ {
"type": "Solid", "type": "Solid",
"value": { "value": {
@ -1115,9 +1175,7 @@ description: Operations executed gridfinity-bins.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -1199,151 +1257,11 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {
"axis": {
"value": {
"type": "Array",
"value": [
{
"type": "Number",
"value": 1.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
{
"type": "Number",
"value": 0.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
{
"type": "Number",
"value": 0.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
}
]
},
"sourceRange": []
},
"distance": {
"value": {
"type": "Number",
"value": 42.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
},
"instances": {
"value": {
"type": "Number",
"value": 2.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"name": "patternLinear3d",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Solid", "type": "Solid",
@ -1352,9 +1270,113 @@ description: Operations executed gridfinity-bins.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {
"axis": {
"value": {
"type": "Array",
"value": [
{
"type": "Number",
"value": 1.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
{
"type": "Number",
"value": 0.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
{
"type": "Number",
"value": 0.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
}
]
},
"sourceRange": []
},
"distance": {
"value": {
"type": "Number",
"value": 42.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
},
"instances": {
"value": {
"type": "Number",
"value": 2.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
}
},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternLinear3d",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"axis": { "axis": {
"value": { "value": {
@ -1436,45 +1458,23 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternLinear3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1504,6 +1504,17 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -1522,21 +1533,10 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1592,7 +1592,7 @@ description: Operations executed gridfinity-bins.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "shell", "name": "shell",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -12871,324 +12871,329 @@ description: Variables in memory after executing gridfinity-bins.kcl
} }
}, },
"binTop": { "binTop": {
"type": "Solid", "type": "HomArray",
"value": { "value": [
"type": "Solid", {
"id": "[uuid]", "type": "Solid",
"artifactId": "[uuid]", "value": {
"value": [ "type": "Solid",
{
"faceId": "[uuid]",
"id": "[uuid]", "id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4474,
"end": 4482,
"start": 4474,
"type": "TagDeclarator",
"value": "line010"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4553,
"end": 4561,
"start": 4553,
"type": "TagDeclarator",
"value": "line011"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4612,
"end": 4620,
"start": 4612,
"type": "TagDeclarator",
"value": "line012"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4639,
"end": 4647,
"start": 4639,
"type": "TagDeclarator",
"value": "line013"
},
"type": "extrudePlane"
}
],
"sketch": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
0.0
],
"tag": {
"commentStart": 4474,
"end": 4482,
"start": 4474,
"type": "TagDeclarator",
"value": "line010"
},
"to": [
84.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
84.0,
0.0
],
"tag": {
"commentStart": 4553,
"end": 4561,
"start": 4553,
"type": "TagDeclarator",
"value": "line011"
},
"to": [
84.0,
126.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
84.0,
126.0
],
"tag": {
"commentStart": 4612,
"end": 4620,
"start": 4612,
"type": "TagDeclarator",
"value": "line012"
},
"to": [
0.0,
126.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
126.0
],
"tag": {
"commentStart": 4639,
"end": 4647,
"start": 4639,
"type": "TagDeclarator",
"value": "line013"
},
"to": [
0.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
}
],
"on": {
"artifactId": "[uuid]", "artifactId": "[uuid]",
"id": "[uuid]", "value": [
"origin": { {
"x": 0.0, "faceId": "[uuid]",
"y": 0.0, "id": "[uuid]",
"z": 4.75, "sourceRange": [],
"tag": {
"commentStart": 4474,
"end": 4482,
"start": 4474,
"type": "TagDeclarator",
"value": "line010"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4553,
"end": 4561,
"start": 4553,
"type": "TagDeclarator",
"value": "line011"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4612,
"end": 4620,
"start": 4612,
"type": "TagDeclarator",
"value": "line012"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4639,
"end": 4647,
"start": 4639,
"type": "TagDeclarator",
"value": "line013"
},
"type": "extrudePlane"
}
],
"sketch": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
0.0
],
"tag": {
"commentStart": 4474,
"end": 4482,
"start": 4474,
"type": "TagDeclarator",
"value": "line010"
},
"to": [
84.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
84.0,
0.0
],
"tag": {
"commentStart": 4553,
"end": 4561,
"start": 4553,
"type": "TagDeclarator",
"value": "line011"
},
"to": [
84.0,
126.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
84.0,
126.0
],
"tag": {
"commentStart": 4612,
"end": 4620,
"start": 4612,
"type": "TagDeclarator",
"value": "line012"
},
"to": [
0.0,
126.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
0.0,
126.0
],
"tag": {
"commentStart": 4639,
"end": 4647,
"start": 4639,
"type": "TagDeclarator",
"value": "line013"
},
"to": [
0.0,
0.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
}
],
"on": {
"artifactId": "[uuid]",
"id": "[uuid]",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 4.75,
"units": {
"type": "Mm"
}
},
"type": "plane",
"value": "Custom",
"xAxis": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
},
"start": {
"from": [
0.0,
0.0
],
"to": [
0.0,
0.0
],
"units": {
"type": "Mm"
},
"tag": null,
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
}
},
"tags": {
"line010": {
"type": "TagIdentifier",
"value": "line010"
},
"line011": {
"type": "TagIdentifier",
"value": "line011"
},
"line012": {
"type": "TagIdentifier",
"value": "line012"
},
"line013": {
"type": "TagIdentifier",
"value": "line013"
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": { "units": {
"type": "Mm" "type": "Mm"
} }
}, },
"type": "plane", "height": 14.0,
"value": "Custom", "startCapId": "[uuid]",
"xAxis": { "endCapId": "[uuid]",
"x": 1.0, "edgeCuts": [
"y": 0.0, {
"z": 0.0, "type": "fillet",
"units": { "id": "[uuid]",
"type": "Unknown" "radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
} }
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
},
"start": {
"from": [
0.0,
0.0
],
"to": [
0.0,
0.0
], ],
"units": { "units": {
"type": "Mm" "type": "Mm"
}, },
"tag": null, "sectional": false
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
}
},
"tags": {
"line010": {
"type": "TagIdentifier",
"value": "line010"
},
"line011": {
"type": "TagIdentifier",
"value": "line011"
},
"line012": {
"type": "TagIdentifier",
"value": "line012"
},
"line013": {
"type": "TagIdentifier",
"value": "line013"
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
} }
}, }
"height": 14.0, ]
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"edgeCuts": [
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 3.75,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
}
],
"units": {
"type": "Mm"
},
"sectional": false
}
}, },
"cornerRadius": { "cornerRadius": {
"type": "Number", "type": "Number",

View File

@ -4,19 +4,30 @@ description: Operations executed hammer.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -42,34 +53,23 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -99,6 +99,17 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -117,9 +128,11 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -128,9 +141,7 @@ description: Operations executed hammer.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -149,9 +160,11 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [], },
{
"type": "StdLibCall", "type": "StdLibCall",
"name": "extrude",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Sketch", "type": "Sketch",
@ -160,9 +173,7 @@ description: Operations executed hammer.kcl
} }
}, },
"sourceRange": [] "sourceRange": []
} },
},
{
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -181,20 +192,25 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tools": { "tools": {
"value": { "value": {
@ -211,29 +227,11 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Array",
"value": [
{
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
}
]
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "union",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "union",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -253,13 +251,13 @@ description: Operations executed hammer.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "union",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "union",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -279,22 +277,35 @@ description: Operations executed hammer.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {}, "type": "StdLibCall",
"name": "startSketchOn", "name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -313,34 +324,23 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -370,6 +370,17 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "extrude",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"length": { "length": {
"value": { "value": {
@ -395,21 +406,10 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "extrude", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "fillet", "name": "fillet",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -453,10 +453,8 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "union",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "union",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -476,9 +474,22 @@ description: Operations executed hammer.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tools": { "tools": {
"value": { "value": {
@ -495,34 +506,23 @@ description: Operations executed hammer.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "revolve", "name": "revolve",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {

View File

@ -4,59 +4,59 @@ description: Operations executed helical-gear.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -86,7 +86,7 @@ description: Operations executed helical-gear.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -116,7 +116,7 @@ description: Operations executed helical-gear.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -506,6 +506,17 @@ description: Operations executed helical-gear.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -517,20 +528,20 @@ description: Operations executed helical-gear.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -542,20 +553,20 @@ description: Operations executed helical-gear.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -567,18 +578,7 @@ description: Operations executed helical-gear.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -665,10 +665,8 @@ description: Operations executed helical-gear.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "loft",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "loft",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -694,7 +692,9 @@ description: Operations executed helical-gear.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",

View File

@ -4,111 +4,111 @@ description: Operations executed helical-planetary-gearset.kcl
--- ---
[ [
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -138,7 +138,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -168,7 +168,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -198,7 +198,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -228,7 +228,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -258,7 +258,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1008,6 +1008,17 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1019,20 +1030,20 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1044,20 +1055,20 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1069,20 +1080,20 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1094,20 +1105,20 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1119,20 +1130,20 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -1144,18 +1155,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -1326,10 +1326,8 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "loft",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "loft",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -1355,13 +1353,13 @@ description: Operations executed helical-planetary-gearset.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "loft",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "loft",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -1387,49 +1385,51 @@ description: Operations executed helical-planetary-gearset.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1459,7 +1459,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1489,7 +1489,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1879,46 +1879,46 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "startSketchOn",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Plane", "type": "Plane",
"artifact_id": "[uuid]" "artifact_id": "[uuid]"
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1948,7 +1948,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -1978,7 +1978,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "KclStdLibCall", "type": "StdLibCall",
"name": "offsetPlane", "name": "offsetPlane",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
@ -2008,6 +2008,17 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -2019,20 +2030,20 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -2044,20 +2055,20 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "StdLibCall",
"name": "subtract2d",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"tool": { "tool": {
"value": { "value": {
@ -2069,18 +2080,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "subtract2d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -2167,10 +2167,8 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"labeledArgs": {},
"name": "loft",
"sourceRange": [],
"type": "StdLibCall", "type": "StdLibCall",
"name": "loft",
"unlabeledArg": { "unlabeledArg": {
"value": { "value": {
"type": "Array", "type": "Array",
@ -2196,7 +2194,9 @@ description: Operations executed helical-planetary-gearset.kcl
] ]
}, },
"sourceRange": [] "sourceRange": []
} },
"labeledArgs": {},
"sourceRange": []
}, },
{ {
"type": "GroupBegin", "type": "GroupBegin",
@ -2475,6 +2475,17 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
}, },
{ {
"type": "StdLibCall",
"name": "patternCircular3d",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"labeledArgs": { "labeledArgs": {
"arcDegrees": { "arcDegrees": {
"value": { "value": {
@ -2610,18 +2621,7 @@ description: Operations executed helical-planetary-gearset.kcl
"sourceRange": [] "sourceRange": []
} }
}, },
"name": "patternCircular3d", "sourceRange": []
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Solid",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
}, },
{ {
"type": "GroupEnd" "type": "GroupEnd"

Some files were not shown because too many files have changed in this diff Show More