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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Translate the entire conversation x

Change Request Attachments

JIMVANDRAGT
1-Visitor

Change Request Attachments


Hi All,

Does anyone have example code on how to programmatically determine an ECR's attachments, and if possible download?


Thanks

Jim Van Dragt
PLM Architect
Information Technology

hermanmiller.com
616 654 5285 OFFICE
616 836 8394 MOBILE

HermanMiller

1 REPLY 1

On 04/18/12 12:46, Jim VanDragt wrote:
> Hi All,
>
> Does anyone have example code on how to programmatically determine an ECR's attachments, and if possible download?

Not exactly what you are looking for but maybe this will help. This code (from
an expression robot in my Change Notice Workflow) determines the primary
business objects associated with an ECN:

wt.fc.QueryResult resultantObjects =
wt.change2.ChangeHelper2.service.getChangeablesAfter((wt.change2.ChangeOrderIfc)primaryBusinessObject);
while(resultantObjects.hasMoreElements())
{
     wt.fc.WTObject object = (wt.fc.WTObject) resultantObjects.nextElement();
     if(object instanceof wt.epm.EPMDocument)
     {
         wt.epm.EPMDocument epmDoc = (wt.epm.EPMDocument)object;
         //do something with this
     }
}

>
>
> Thanks
>
> Jim Van Dragt
> PLM Architect
> Information Technology
>
> hermanmiller.com
> 616 654 5285 OFFICE
> 616 836 8394 MOBILE
>
> HermanMiller
>
>      
> ----------     


--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
   Fax: 785-667-2695
------------------------------------------------------------------------
Announcements

Top Tags