curl --request POST \
--url https://api.eddy.engineer/v1/drawing.review \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"dxf": "<string>",
"dxf_blob": "<string>",
"intent": {},
"pdf_blob": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/drawing.review"
payload = {
"dxf": "<string>",
"dxf_blob": "<string>",
"intent": {},
"pdf_blob": "<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({dxf: '<string>', dxf_blob: '<string>', intent: {}, pdf_blob: '<string>'})
};
fetch('https://api.eddy.engineer/v1/drawing.review', 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/drawing.review",
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([
'dxf' => '<string>',
'dxf_blob' => '<string>',
'intent' => [
],
'pdf_blob' => '<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/drawing.review"
payload := strings.NewReader("{\n \"dxf\": \"<string>\",\n \"dxf_blob\": \"<string>\",\n \"intent\": {},\n \"pdf_blob\": \"<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/drawing.review")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dxf\": \"<string>\",\n \"dxf_blob\": \"<string>\",\n \"intent\": {},\n \"pdf_blob\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/drawing.review")
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 \"dxf\": \"<string>\",\n \"dxf_blob\": \"<string>\",\n \"intent\": {},\n \"pdf_blob\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"errors": 123,
"exact": true,
"findings": [
{}
],
"notes": [
"<string>"
],
"raster": true,
"records": {},
"source": "<string>",
"texts": 123,
"unparsed": [
[
"<string>"
]
]
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Foreign drawing review (DR8.d): a supplier's DXF or PDF read into PMI records and linted
A DXF (any version: DIMENSION text or measurement, TOLERANCE in the gdt font, TEXT / MTEXT) or a PDF (its text objects; a raster drawing is said to be one) parsed by the annotation grammar — hole callouts, sizes with +/-, limits, ISO classes, basic and reference, radii, angles, textures, feature control frames with datums and modifiers, datum letters — into DR1 records anchored unbound, then DR1’s rules and the process-capability rows. exact is true for vector input; unparsed lists every string the grammar did not take with why; notes says when the content is a raster image (the vision reader’s job, labelled as read, never as fact). TL3c: dxf_blob (a blob id) instead of dxf: the DXF is read from the blob as the caller and reviewed exactly as if sent inline; giving both is 400 FILE_GIVEN_TWICE, a blob that is not UTF-8 text 400 BLOB_NOT_TEXT.
curl --request POST \
--url https://api.eddy.engineer/v1/drawing.review \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"dxf": "<string>",
"dxf_blob": "<string>",
"intent": {},
"pdf_blob": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/drawing.review"
payload = {
"dxf": "<string>",
"dxf_blob": "<string>",
"intent": {},
"pdf_blob": "<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({dxf: '<string>', dxf_blob: '<string>', intent: {}, pdf_blob: '<string>'})
};
fetch('https://api.eddy.engineer/v1/drawing.review', 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/drawing.review",
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([
'dxf' => '<string>',
'dxf_blob' => '<string>',
'intent' => [
],
'pdf_blob' => '<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/drawing.review"
payload := strings.NewReader("{\n \"dxf\": \"<string>\",\n \"dxf_blob\": \"<string>\",\n \"intent\": {},\n \"pdf_blob\": \"<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/drawing.review")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dxf\": \"<string>\",\n \"dxf_blob\": \"<string>\",\n \"intent\": {},\n \"pdf_blob\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/drawing.review")
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 \"dxf\": \"<string>\",\n \"dxf_blob\": \"<string>\",\n \"intent\": {},\n \"pdf_blob\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"errors": 123,
"exact": true,
"findings": [
{}
],
"notes": [
"<string>"
],
"raster": true,
"records": {},
"source": "<string>",
"texts": 123,
"unparsed": [
[
"<string>"
]
]
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
TL3c: a blob id (b3:<64 hex>: an upload's blob_id, an attachment's blob) holding the file, instead of dxf: read as the caller under the read gate (a blob the caller may not read answers 404 BLOB_NOT_FOUND, as an absent one) and imported exactly as if its contents were sent inline. Give one of the two (both: 400 FILE_GIVEN_TWICE).