diff --git a/spec.json b/spec.json index 048b8a50a..b1588e081 100644 --- a/spec.json +++ b/spec.json @@ -10334,6 +10334,26 @@ "entity_id" ] }, + "EntityGetDistance": { + "description": "The response from the `EntitiesGetDistance` command.", + "type": "object", + "properties": { + "max_distance": { + "description": "The maximum distance between the input entities.", + "type": "number", + "format": "double" + }, + "min_distance": { + "description": "The minimum distance between the input entities.", + "type": "number", + "format": "double" + } + }, + "required": [ + "max_distance", + "min_distance" + ] + }, "EntityGetNumChildren": { "description": "The response from the `EntityGetNumChildren` command.", "type": "object", @@ -11613,7 +11633,7 @@ ] }, "ImportFile": { - "description": "File to import into the current model", + "description": "File to import into the current model If you are sending binary data for a file, be sure to send the WebSocketRequest as binary/bson, not text/json.", "type": "object", "properties": { "data": { @@ -12843,7 +12863,7 @@ ] }, "source_unit": { - "description": "Select the unit interpretation of exported objects.\n\nThis is not the same as the export units. Setting export units is part of the format options.", + "description": "Select the unit interpretation of exported objects.", "allOf": [ { "$ref": "#/components/schemas/UnitLength" @@ -14492,6 +14512,37 @@ "object_id", "type" ] + }, + { + "description": "Sketch on some entity (e.g. a plane, a face)", + "type": "object", + "properties": { + "animated": { + "description": "Should we animate or snap for the camera transition?", + "type": "boolean" + }, + "entity_id": { + "description": "Which entity to sketch on.", + "type": "string", + "format": "uuid" + }, + "ortho": { + "description": "Should the camera use orthographic projection? In other words, should an object's size in the rendered image stay constant regardless of its distance from the camera.", + "type": "boolean" + }, + "type": { + "type": "string", + "enum": [ + "enable_sketch_mode" + ] + } + }, + "required": [ + "animated", + "entity_id", + "ortho", + "type" + ] } ] }, @@ -14818,6 +14869,25 @@ "type" ] }, + { + "description": "The response from the `EntityGetDistance` command.", + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/EntityGetDistance" + }, + "type": { + "type": "string", + "enum": [ + "entity_get_distance" + ] + } + }, + "required": [ + "data", + "type" + ] + }, { "description": "The response from the `Solid3dGetAllEdgeFaces` command.", "type": "object", @@ -15463,7 +15533,7 @@ ] }, { - "description": "glTF 2.0. We refer to this as glTF since that is how our customers refer to it, although by default it will be in binary format and thus technically (glb). If you prefer ascii output, you can set that option for the export.", + "description": "glTF 2.0. We refer to this as glTF since that is how our customers refer to it, although by default it will be in binary format and thus technically (glb). If you prefer ASCII output, you can set that option for the export.", "type": "object", "properties": { "presentation": { @@ -16172,7 +16242,7 @@ ] }, "RawFile": { - "description": "A raw file with unencoded contents to be passed over binary websockets.", + "description": "A raw file with unencoded contents to be passed over binary websockets. When raw files come back for exports it is sent as binary/bson, not text/json.", "type": "object", "properties": { "contents": {