Advertisement
u6bkep

trouble with api not exporting GLTF model

Jun 27th, 2024
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.87 KB | Software | 0 0
  1. /partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/gltf
  2. url: https://cad.onshape.com/documents/6844173a888ae9c148ad6b67/v/57d8fe202591e452ce7fdae4/e/332466e1b8aefa108b60a691
  3. configuration: add_dividing_walls=true;add_living_hinge=false;add_tape_slot=false;add_window=false;box_depth=0.81;box_height=5;box_width=8;divider_count=2
  4.  
  5. curl:
  6.  
  7. curl -X 'GET' \
  8.   'https://cad.onshape.com/api/v6/partstudios/d/6844173a888ae9c148ad6b67/v/57d8fe202591e452ce7fdae4/e/332466e1b8aefa108b60a691/gltf?configuration=add_dividing_walls%3Dtrue%3Badd_living_hinge%3Dfalse%3Badd_tape_slot%3Dfalse%3Badd_window%3Dfalse%3Bbox_depth%3D0.81%3Bbox_height%3D5%3Bbox_width%3D8%3Bdivider_count%3D2&rollbackBarIndex=-1&outputSeparateFaceNodes=false&outputFaceAppearances=false' \
  9.   -H 'accept: model/gltf+json;charset=UTF-8;qs=0.08' \
  10.   -H 'X-XSRF-TOKEN: redacted'
  11.  
  12. Response: 200
  13.  
  14. {
  15.   "extensions": {
  16.     "PTC_onshape_metadata": {
  17.       "documentId": "6844173a888ae9c148ad6b67",
  18.       "elementId": "332466e1b8aefa108b60a691"
  19.     }
  20.   },
  21.   "extensionsUsed": [
  22.     "PTC_onshape_metadata"
  23.   ],
  24.   "asset": {
  25.     "version": "2.0"
  26.   },
  27.   "scene": 0,
  28.   "scenes": [
  29.     {}
  30.   ]
  31. }
  32.  
  33. Response headers:
  34.  
  35. content-length: 212  
  36. content-security-policy-report-only: object-src 'self' https://embedwistia-a.akamaihd.net; report-uri /api/csp  
  37. content-type: model/gltf+json;charset=UTF-8  
  38. date: Thu,27 Jun 2024 14:01:22 GMT  
  39. on-version: 1.182.38209.e117c9cf122b  
  40. server-timing: traceparent;desc="00-0000000000000000a9a02cd8b97dc70d-0000000000000000-00"  
  41. strict-transport-security: max-age=31536000; includeSubDomains  
  42. traceparent: 00-0000000000000000a9a02cd8b97dc70d-a9a02cd8b97dc70d-00  
  43. x-api-version: v6  
  44. x-content-type-options: nosniff  
  45. x-firefox-spdy: h2  
  46. x-frame-options: SAMEORIGIN  
  47. x-rate-limit-remaining: 2999  
  48. x-request-id: a72b55307a8b432142dbd30f33d805f6  
  49. x-xss-protection: 1; mode=block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement