Skip to main content
3-Newcomer
May 28, 2025
Solved

How to find more information on CADDocument Memberlinks via Windchill REST Services API

  • May 28, 2025
  • 1 reply
  • 822 views

I´m currently using CADDocuments('id')/Uses to fetch the different components used by Assemblies etc. but the information returned doesn´t include important details like which version of a component is used.

Is there a way to use either the MemberLink ID that´s being returned to find out which version of the component is used or to change the /Uses GET request (by using parameters or a Request Body) so that this information is returned in the JSON response?

 

The system I´m working on:
WRS version: 13.0.2.4
Windchill version: 13.02.

 

This is an example of the JSON responses I get when using /Uses

{
"@odata.context": "domain/Windchill/servlet/odata/v4/CADDocumentMgmt/$metadata#CADDocuments('OR:wt.epm.EPMDocument:---')/Uses",
"value": [
{
"CreatedOn": "---",
"ID": "OR:wt.epm.structure.EPMMemberLink:---",
"LastModified": "---",
"ComponentName": null,
"DepType": {
"Value": 2,
"Display": "---"
},
"FeatureID": 14,
"FeatureNumber": 5,
"HasFixedConstraint": false,
"LayerID": 7,
"Location": {
"PointX": 0,
"PointY": -0.015,
"PointZ": 0.028050891497608,
"PointUnit": "m",
"AngleX": 0,
"AngleY": 1.5707963267949,
"AngleZ": 1.5707963267949,
"AngleUnit": "r"
},
"ObjectType": "CAD Document Uses Link",
"Placed": true,
"Quantity": 1,
"Required": true,
"Suppressed": false,
"Unit": {
"Value": "ea",
"Display": "each"
},
"UseInfo": {
"FileName": "---.prt",
"Category": {
"Value": "CADCOMPONENT",
"Display": "---"
},
"SubCategory": null,
"AuthoringApplication": {
"Value": "---",
"Display": "---"
}
}
}
]
}

Best answer by Fadel

Hi , the uses relationship is Parent EPM to child EPMMaster components .

The component are resolved to iterations only in a structure applying a filter .

for more info in response you can try : 

Note that expand=Components($levels=max) may slow performance if the BOM is too big 

 

 

1 reply

Fadel
Fadel23-Emerald IAnswer
23-Emerald I
May 28, 2025

Hi , the uses relationship is Parent EPM to child EPMMaster components .

The component are resolved to iterations only in a structure applying a filter .

for more info in response you can try : 

Note that expand=Components($levels=max) may slow performance if the BOM is too big 

 

 

Buiꓘa
TW_riess3-NewcomerAuthor
3-Newcomer
June 2, 2025

Thank you very much, that works. Do you happen to know if it´s possible to expand the child with the version field (Revision.Iteration)? Since I now get the ID I could use a second basic call to get it but it would be nice if I could use a single call to save resources. I´ve tried putting it into the $expand= & $select= section of "Components" but Windchill tells me that "[Revision/Version/Iteration] is not defined for the type CADStructure"