Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Get Drawing ElementID from PartID

I am trying to get the elementID of a drawing from a partID. What ive been trying is to first fetch all drawing elements in the document, and then to try to resolve all of that elements references using
/appelements/d/{did}/{wvm}/{wvmid}/e/{eid}/resolvereferences
The issue is that it resolved the reference but says the partID and versionID are null. I have verified that the drawing in question has a valid view from a part in the same document. When I try to resolve viewIds given to me by the drawing view route, I face a similar issue, where the partID and versionIDs resolve to null. Does anyone know how to solve this or what might be going on? Or maybe there is a better way to do what I am trying to do?
Thanks!