cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

DescribedBy link across different contexts

rleir
17-Peridot

DescribedBy link across different contexts

team:
I want to add DescribedBy documents (not CAD documents) to a part. It needs to automated, preferably by a python script accessing the OData API.

It is possible to add DescribedBy links using
POST Windchill/servlet/odata/v5/ProdMgmt/Parts(id)/DescribedBy

but it requires some WRS configuration as described in this article:
"Follow the steps to implement WTPartDescribeLink creation hooks."

https://www.ptc.com/en/support/article/CS285572

 

Testing this, I got an error:
"Unable to create entity - Illegal link. \"OEM Part - 4199999-00, Toy Brick, CAG66, B.4 (Design)\" cannot be linked to \"Brick Install Instructions, CAG99, 1.1\" because both objects are not in a PDM context."

 

After correcting the context, the link could be created fine by WRS/OData. But that's not what we want. We want to keep our contexts as they are, and link across different contexts.

 

This brings up a question, I am curious. The link can be created manually across different contexts but not when using OData and the REST API. Is this difference in semantics surprising? The page linked below says that this behaviour will not be changed:
https://www.ptc.com/en/support/article/CS175948

 

 

ACCEPTED SOLUTION

Accepted Solutions
rleir
17-Peridot
(To:rleir)

Team

Please disregard the question, it turns out that I had bugs in my code.  Linking is working fine for me.

 

View solution in original post

1 REPLY 1
rleir
17-Peridot
(To:rleir)

Team

Please disregard the question, it turns out that I had bugs in my code.  Linking is working fine for me.

 

Announcements

Top Tags