Queries
drawingVersion
Retrieves an object representing a version of a drawing.
Drawings contain 2D projected views of designs.
Template for Query:
query GetDrawingVersion($drawingVersionId: String!) {
drawingVersion(drawingVersionId: $drawingVersionId) {
# DrawingVersion Fields
}
}
Template for Query Variables:
{
"drawingVersionId" : "<SOME-STRING-TYPE-SCALAR-VALUE>"
}
Arguments
drawingVersionId* String! non-null | The ID of the drawing version to fetch. |
* Required
Possible Returns
Value Type | Description |
---|---|
DrawingVersion | Represents a version of a 2D drawing that contains projected views of a version of a component. |
Examples
Example 1
This example retrieves a specific version of a drawing.
Query:
query GetDrawingVersion($drawingVersionId: String!) {
drawingVersion(drawingVersionId: $drawingVersionId) {
name
componentVersion {
id
name
}
fileVersion {
name
versionNumber
}
drawing {
id
}
}
}
Show More
Query Variables:
{
"drawingVersionId": "ZHJhd35jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRflphMGgycVlIMk9ZbWd2Y0ZLdDlqeEhfYWdhfmVUMGdYbGNkc3d3RkFxbjlJWkRabFE"
}
Response:
{
"data": {
"drawingVersion": {
"name": "Pump Assembly Iso Drawing",
"componentVersion": {
"id": "Y29tcH5jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRfkRGa21Za1MxaVlIZm9xVkl3VFVybjhfYWdhflFnN2h3UGh6OUdhaWZOdzdpNURpQmE",
"name": "Pump Assembly"
},
"fileVersion": {
"name": "6d9093ed-2970-429c-a694-d4fb706cec12.f2d",
"versionNumber": 1
},
"drawing": {
"id": "ZHJhd35jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRflphMGgycVlIMk9ZbWd2Y0ZLdDlqeEhfYWdhfn4"
}
}
}
}
Show More
Example 2
- Manage Extension Data for a Drawing Version.
Note: Fields namely owner, approvers, and approvedBy are no longer supported and should not be used.
Query:
query drawingVersion ($drawingVersionId: String!) {
drawingVersion (drawingVersionId: $drawingVersionId) {
itemNumber
lifeCycle
isLocked
isNextReleaseMilestone
revision
changeOrder
changeOrderURN
changeOrderURL
owner {
id
}
approvers {
id
}
releasedOn
approvedBy {
id
}
drawing {
lifeCycle
revision
itemNumber
itemURN
itemURL
}
}
}
Show More
Query Variables:
{
"drawingVersionId": "ZHJhd35jby5Kd254Q0p3YVNQeWcwbGRGdUZpNkxRfldRc0xNR3VvSVFjMHdnUVBhZEU1R1dfYWdhfjZiUHRXVHB2NHE2eTNvcDY5dk13WXk"
}
Response:
{
"data": {
"drawingVersion": {
"itemNumber": "DWG-000002",
"lifeCycle": "Pre-Production",
"isLocked": false,
"isNextReleaseMilestone": true,
"revision": null,
"changeOrder": "CO-000013 - CO # 2 - internal demo",
"changeOrderURN": "urn:adsk.plm:tenant.workspace.item:AUTODESK2006.9.15187",
"changeOrderURL": "https://AUTODESK2006.autodeskplm.com/plm/extAccess?itemUrn=urn%3Aadsk.plm%3Atenant.workspace.item%3AAUTODESK2006.9.15187&tab=details",
"owner": null,
"approvers": null,
"releasedOn": null,
"approvedBy": null,
"drawing": {
"lifeCycle": "Pre-Production",
"revision": "w",
"itemNumber": "DWG-000002",
"itemURN": "urn:adsk.plm:tenant.workspace.item:AUTODESK2006.76.15186",
"itemURL": "https://AUTODESK2006.autodeskplm.com/plm/extAccess?itemUrn=urn%3Aadsk.plm%3Atenant.workspace.item%3AAUTODESK2006.76.15186&tab=details"
}
}
}
}
Show More