Request

Response

    Queries

    drawingVersions

    query

    Retrieves all versions of drawings of a specified version of a component.

    Drawings contain 2D projected views of designs.

    Template for Query:

    query GetDrawingVersions($componentVersionId: String!, $pagination: PaginationInput) {
      drawingVersions(componentVersionId: $componentVersionId, pagination: $pagination) {
        # DrawingVersions Fields
      }
    }
    

    Template for Query Variables:

    {
      "componentVersionId" : "<SOME-STRING-TYPE-SCALAR-VALUE>",
      "pagination" : "<SOME-PAGINATION-INPUT-TYPE-VALUE>"
    }
    
    Was this section useful?


    Arguments

    componentVersionId*
    String! non-null
    The ID of the version of the component you want to retrieve drawings of.
    paginationSpecifies how to split the response into multiple pages.
    * Required

    Possible Returns

    Value TypeDescription
    DrawingVersions! non-null Contains a list of object representing versions of drawings, typically returned in response to a query.
    Was this section useful?


    Example

    Example 1

    This example retrieves all versions of a drawing created for the component specified by the componentVersionId argument.

    Query:

    query GetDrawingVersions($componentVersionId: String!) {
         drawingVersions(componentVersionId: $componentVersionId) {
           results {
             id
             name
             componentVersion {
               id
               name
             }
             drawing {
               id
             }
             fileVersion {
               name
               versionNumber
             }
           }
         }
       }
    
    Show More

    Query Variables:

    {
      "componentVersionId": "Y29tcH5jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRfkRGa21Za1MxaVlIZm9xVkl3VFVybjhfYWdhflFnN2h3UGh6OUdhaWZOdzdpNURpQmE"
    }
    

    Response:

    {
         "data": {
              "drawingVersions": {
                   "results": [
                        {
                             "id": "ZHJhd35jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRflphMGgycVlIMk9ZbWd2Y0ZLdDlqeEhfYWdhfmVUMGdYbGNkc3d3RkFxbjlJWkRabFE",
                             "name": "Pump Assembly Iso Drawing",
                             "componentVersion": {
                                  "id": "Y29tcH5jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRfkRGa21Za1MxaVlIZm9xVkl3VFVybjhfYWdhflFnN2h3UGh6OUdhaWZOdzdpNURpQmE",
                                  "name": "Pump Assembly"
                             },
                             "drawing": {
                                  "id": "ZHJhd35jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRflphMGgycVlIMk9ZbWd2Y0ZLdDlqeEhfYWdhfn4"
                             },
                             "fileVersion": {
                                  "name": "6d9093ed-2970-429c-a694-d4fb706cec12.f2d",
                                  "versionNumber": 1
                             }
                        },
                        {
                             "id": "ZHJhd35jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRfnNhajZ4RUY0Tmt5SzduVENvM29BaDNfYWdhfnhISmY5NTZsMmY2ZE5WQ3M2eXdUeVU",
                             "name": "Pump Assembly Top Drawing",
                             "componentVersion": {
                                  "id": "Y29tcH5jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRfkRGa21Za1MxaVlIZm9xVkl3VFVybjhfYWdhflFnN2h3UGh6OUdhaWZOdzdpNURpQmE",
                                  "name": "Pump Assembly"
                             },
                             "drawing": {
                                  "id": "ZHJhd35jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRfnNhajZ4RUY0Tmt5SzduVENvM29BaDNfYWdhfn4"
                             },
                             "fileVersion": {
                                  "name": "a1a8b454-a299-4751-86d8-ffae1412d602.f2d",
                                  "versionNumber": 1
                             }
                        },
                        {
                             "id": "ZHJhd35jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRfkFPQkUyaE9tYlhJU0hBSlYwclB3YzdfYWdhfkpaRHpYNDlzcTF5b2JRWklOWndPcVk",
                             "name": "Pump Assembly Front Drawing",
                             "componentVersion": {
                                  "id": "Y29tcH5jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRfkRGa21Za1MxaVlIZm9xVkl3VFVybjhfYWdhflFnN2h3UGh6OUdhaWZOdzdpNURpQmE",
                                  "name": "Pump Assembly"
                             },
                             "drawing": {
                                  "id": "ZHJhd35jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRfkFPQkUyaE9tYlhJU0hBSlYwclB3YzdfYWdhfn4"
                             },
                             "fileVersion": {
                                  "name": "38b075e0-fbeb-4606-95a4-8f4f3c502249.f2d",
                                  "versionNumber": 1
                             }
                        }
                   ]
              }
         }
    }
    
    Show More
    Was this section useful?