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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Attaching documents

BrianKrieger
10-Marble

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

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
Announcements


Top Tags