curl --request POST \
--url https://api.eddy.engineer/v1/cad.sheet \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"recipe": {},
"auto_dims": false,
"intent": {},
"name": "<string>",
"scale": "<string>",
"sections": [
{
"axis": "<string>",
"pos": 123
}
],
"segments": 32,
"session": true,
"sheet": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/cad.sheet"
payload = {
"recipe": {},
"auto_dims": False,
"intent": {},
"name": "<string>",
"scale": "<string>",
"sections": [
{
"axis": "<string>",
"pos": 123
}
],
"segments": 32,
"session": True,
"sheet": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
recipe: {},
auto_dims: false,
intent: {},
name: '<string>',
scale: '<string>',
sections: [{axis: '<string>', pos: 123}],
segments: 32,
session: true,
sheet: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/cad.sheet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/cad.sheet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'recipe' => [
],
'auto_dims' => false,
'intent' => [
],
'name' => '<string>',
'scale' => '<string>',
'sections' => [
[
'axis' => '<string>',
'pos' => 123
]
],
'segments' => 32,
'session' => true,
'sheet' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/cad.sheet"
payload := strings.NewReader("{\n \"recipe\": {},\n \"auto_dims\": false,\n \"intent\": {},\n \"name\": \"<string>\",\n \"scale\": \"<string>\",\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"session\": true,\n \"sheet\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/cad.sheet")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"recipe\": {},\n \"auto_dims\": false,\n \"intent\": {},\n \"name\": \"<string>\",\n \"scale\": \"<string>\",\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"session\": true,\n \"sheet\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/cad.sheet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"recipe\": {},\n \"auto_dims\": false,\n \"intent\": {},\n \"name\": \"<string>\",\n \"scale\": \"<string>\",\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"session\": true,\n \"sheet\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"annotations": 123,
"circles": 123,
"coincident": 123,
"degenerate": 123,
"drawing": "<string>",
"drawing_blob": "<string>",
"engine": "<string>",
"entities": 123,
"errors": 123,
"head": "<string>",
"hidden": 123,
"legacy_reason": "<string>",
"open_uri": "<string>",
"plot_uri": "<string>",
"project": "<string>",
"recipe": "<string>",
"records": 123,
"scale": "<string>",
"sections": [
{}
],
"sheet": "<string>",
"skips": 123,
"views": [
"<string>"
],
"warnings": 123
}Drawing sheet: recipe to saved cad2d sheet project (C9)
One call from a recipe to a saved cad2d SHEET document: the deterministic three-view HLR projection imports engine-side through the pinned D3 dialect (visible/hidden runs on view layers, dimension renders counted and skipped by contract), sampled circle runs are replaced by TRUE circle entities from the B-rep’s own curve records (the exact-analytic close - a bore is a circle on the sheet, not a 48-gon; coincident rims collapse, visible layer wins), optional section views (cut loops on section, hatching on hatch, beyond-plane overlay) place beside the views, and the whole composes onto a standard sheet at a NAMED scale (nice-scale ladder or an explicit “a:b” - refused typed if it does not fit) with a title block. The result is a normal cad2d project: plottable by address (GET /v1/review.plot/), reviewable (U track), dimensionable in /cad2d, DXF/PDF-exportable through the D-track writers. Registered as a c9_sheet artifact. Idempotent: the project id is the content address of (recipe hash, segments, sections, sheet, scale, name). DR.b9: by default the sheet is ss-drawing’s GD&T drawing (the document POST /v1/drawing.make makes, engine: drawing); the C9 path above answers with engine: legacy or when a legacy-only field is set, and the reply names the engine.
curl --request POST \
--url https://api.eddy.engineer/v1/cad.sheet \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"recipe": {},
"auto_dims": false,
"intent": {},
"name": "<string>",
"scale": "<string>",
"sections": [
{
"axis": "<string>",
"pos": 123
}
],
"segments": 32,
"session": true,
"sheet": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/cad.sheet"
payload = {
"recipe": {},
"auto_dims": False,
"intent": {},
"name": "<string>",
"scale": "<string>",
"sections": [
{
"axis": "<string>",
"pos": 123
}
],
"segments": 32,
"session": True,
"sheet": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
recipe: {},
auto_dims: false,
intent: {},
name: '<string>',
scale: '<string>',
sections: [{axis: '<string>', pos: 123}],
segments: 32,
session: true,
sheet: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/cad.sheet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/cad.sheet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'recipe' => [
],
'auto_dims' => false,
'intent' => [
],
'name' => '<string>',
'scale' => '<string>',
'sections' => [
[
'axis' => '<string>',
'pos' => 123
]
],
'segments' => 32,
'session' => true,
'sheet' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/cad.sheet"
payload := strings.NewReader("{\n \"recipe\": {},\n \"auto_dims\": false,\n \"intent\": {},\n \"name\": \"<string>\",\n \"scale\": \"<string>\",\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"session\": true,\n \"sheet\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/cad.sheet")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"recipe\": {},\n \"auto_dims\": false,\n \"intent\": {},\n \"name\": \"<string>\",\n \"scale\": \"<string>\",\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"session\": true,\n \"sheet\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/cad.sheet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"recipe\": {},\n \"auto_dims\": false,\n \"intent\": {},\n \"name\": \"<string>\",\n \"scale\": \"<string>\",\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"session\": true,\n \"sheet\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"annotations": 123,
"circles": 123,
"coincident": 123,
"degenerate": 123,
"drawing": "<string>",
"drawing_blob": "<string>",
"engine": "<string>",
"entities": 123,
"errors": 123,
"head": "<string>",
"hidden": 123,
"legacy_reason": "<string>",
"open_uri": "<string>",
"plot_uri": "<string>",
"project": "<string>",
"recipe": "<string>",
"records": 123,
"scale": "<string>",
"sections": [
{}
],
"sheet": "<string>",
"skips": 123,
"views": [
"<string>"
],
"warnings": 123
}Body
DR.b9: which engine draws the sheet. drawing (the default) = ss-drawing: the GD&T drawing POST /v1/drawing.make makes (DR2 features, DR3 datums and controls, DR6 check, DR4 views chosen by need), saved under this route's content address with this route's title block and reply keys. legacy = the C9 sheet path (three-view HLR import, exact circles in model units, explicit view surgery). Without engine, a legacy-only field (sections, aux, detail, crop, broken, a sheet outside A0-A4) selects the legacy path and the reply's legacy_reason names it; engine: drawing with such a field refuses typed SHEET_ENGINE.
drawing, legacy Response
The saved sheet