You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* YOYO NEW API SPEC!
* I have generated the latest library!
---------
Co-authored-by: zoo-github-actions-auth[bot] <zoo-github-actions-auth[bot]@users.noreply.github.com>
"example": "/// Converts a proprietary CAD format to KCL.\n/// \n/// This endpoint is used to convert a proprietary CAD format to KCL. The file passed MUST have feature tree data.\n/// \n/// A STEP file does not have feature tree data, so it will not work. A sldprt file does have feature tree data, so it will work.\n/// \n/// Input filepaths will be normalized and re-canonicalized to be under the current working directory -- so returned paths may differ from provided paths, and care must be taken when handling user provided paths.\n/// \n/// **Parameters:**\n/// \n/// - `code_option: Option<crate::types::CodeOption>`: The options to run on the code. By default this is set to `execute`.\nasync fn example_ml_create_proprietary_to_kcl() -> anyhow::Result<()> {\n let client = kittycad::Client::new_from_env();\n let result: kittycad::types::KclModel = client\n .ml()\n .create_proprietary_to_kcl(\n vec![kittycad::types::multipart::Attachment {\n name: \"thing\".to_string(),\n filepath: Some(\"myfile.json\".into()),\n content_type: Some(\"application/json\".to_string()),\n data: std::fs::read(\"myfile.json\").unwrap(),\n }],\n Some(kittycad::types::CodeOption::Cleanup),\n )\n .await?;\n println!(\"{:?}\", result);\n Ok(())\n}\n",
278
+
"example": "/// Converts a proprietary CAD format to KCL.\n/// \n/// This endpoint is used to convert a proprietary CAD format to KCL. The file passed MUST have feature tree data.\n/// \n/// A STEP file does not have feature tree data, so it will not work. A sldprt file does have feature tree data, so it will work.\n/// \n/// This endpoint is designed to work with any native proprietary CAD format, for example: - SolidWorks (.sldprt) - Creo (.prt) - Catia (.catpart) - NX (.prt) - Fusion 360 (.f3d)\n/// \n/// This endpoint is deterministic, it preserves the original design intent by using the feature tree data. This endpoint does not use any machine learning or AI.\n/// \n/// This endpoint is currently in beta, and is only available to users with access to the feature. Please contact support if you are interested in getting access.\n/// \n/// This endpoint might have limitations and bugs, please report any issues you encounter. It will be improved over time.\n/// \n/// Input filepaths will be normalized and re-canonicalized to be under the current working directory -- so returned paths may differ from provided paths, and care must be taken when handling user provided paths.\n/// \n/// **Parameters:**\n/// \n/// - `code_option: Option<crate::types::CodeOption>`: The options to run on the code. By default this is set to `execute`.\nasync fn example_ml_create_proprietary_to_kcl() -> anyhow::Result<()> {\n let client = kittycad::Client::new_from_env();\n let result: kittycad::types::KclModel = client\n .ml()\n .create_proprietary_to_kcl(\n vec![kittycad::types::multipart::Attachment {\n name: \"thing\".to_string(),\n filepath: Some(\"myfile.json\".into()),\n content_type: Some(\"application/json\".to_string()),\n data: std::fs::read(\"myfile.json\").unwrap(),\n }],\n Some(kittycad::types::CodeOption::Cleanup),\n )\n .await?;\n println!(\"{:?}\", result);\n Ok(())\n}\n",
Copy file name to clipboardExpand all lines: spec.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4897,7 +4897,7 @@
4897
4897
"hidden"
4898
4898
],
4899
4899
"summary": "Converts a proprietary CAD format to KCL.",
4900
-
"description": "This endpoint is used to convert a proprietary CAD format to KCL. The file passed MUST have feature tree data.\n\nA STEP file does not have feature tree data, so it will not work. A sldprt file does have feature tree data, so it will work.\n\nInput filepaths will be normalized and re-canonicalized to be under the current working directory -- so returned paths may differ from provided paths, and care must be taken when handling user provided paths.",
4900
+
"description": "This endpoint is used to convert a proprietary CAD format to KCL. The file passed MUST have feature tree data.\n\nA STEP file does not have feature tree data, so it will not work. A sldprt file does have feature tree data, so it will work.\n\nThis endpoint is designed to work with any native proprietary CAD format, for example: - SolidWorks (.sldprt) - Creo (.prt) - Catia (.catpart) - NX (.prt) - Fusion 360 (.f3d)\n\nThis endpoint is deterministic, it preserves the original design intent by using the feature tree data. This endpoint does not use any machine learning or AI.\n\nThis endpoint is currently in beta, and is only available to users with access to the feature. Please contact support if you are interested in getting access.\n\nThis endpoint might have limitations and bugs, please report any issues you encounter. It will be improved over time.\n\nInput filepaths will be normalized and re-canonicalized to be under the current working directory -- so returned paths may differ from provided paths, and care must be taken when handling user provided paths.",
0 commit comments