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 PTC Community Badges. Engage with PTC and see how many you can earn! X

Attaching documents

BrianKrieger
7-Bedrock

Attaching documents

OK, I know (or I'm sure) I'm missing the easy helper class or some such
here, but I'd like to programmatically attach a document (WTDocument) to
a Part (WTPart). Any pointers?



Sorry for what may be such a simple question.



Brian Krieger

Peterbilt Motors

3 REPLIES 3

OK, just needed a new morning's perspective (I meant to send this
yesterday). I was calling .store against a non-working copy. Oops.



Sorry for the lack of patience.

Brian


InfoEngine task will do this. You can create the task, place it in your Windchill directory structure and call it from a workflow directly. Otherwise you can register the task officially and use it externally for this via a SOAP call or some other method.

[cid:image001.gif@01CDCC8A.7BA2C370]

Steve Vinyard
Application Engineer
rwelch
6-Contributor
(To:BrianKrieger)

Brian,

From Java you can just create a persistent link object of
the appropriate type. For example:

WTPartDescribeLink aLink = WTPartDescribeLink.newWTPartDescribeLink(aPart, aDoc);
PersistenceServerHelper.manager.store(aLink);

Hope this helps,

Ron
Top Tags