2

I have looked at the model derivative API and it looks like the translation to obj format is only supported for 3D views

I tried the following call but, I get a 406 in Postman. Using the SDK I just get an error saying "Error calling translate" when I try to translate a 2D view to OBJ format.

curl --location --request POST 'https://developer.api.autodesk.com/modelderivative/v2/designdata/job' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--header 'Cookie: PF=nwPYHj1XgpJV2XlRsRiOCi' \
--data-raw '{
    "input": {
        "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6dTE3cGo5NDF2YWp2b2J4eGg2a3pqYW12ZGczdmphYXYtYnVja2V0ZnJvbWFkYXB0ZXJzMS9naC1zbW0ucnZ0"
    },
    "output": {
        "destination": {
            "region": "us"
        },
        "formats": [
        {
            "type": "obj",
            "advanced": {
           "modelGuid":"9ed324d6-2da9-9d68-5a02-b420bf73b327",
           "objectIds":[16749]
        }
        }]
    }
}'

How do I get X/Y/Z coordinates of a 2D floor plan using the Model derivative API?

InsaneKarma
  • 75
  • 1
  • 8
  • 2
    The API help document indicates `ModelGuid Required for geometry extractions. The model view ID (guid). Currently only valid for 3d views. ` https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/job-POST/ . I am checking with engineer team if there is plan to support 2d. If no, you may check if it could help with dumping geometries in Forge Viewer https://forge.autodesk.com/blog/dump-geometries-2d-curve – Xiaodong Liang Apr 13 '20 at 02:06

0 Answers0