Hi,
The requirement is just to iterate an EPM Document.I am using the below piece of code for iterating an EPMDocument.
// Checkout
wt.vc.wip.WorkInProgressHelper.service.checkout(epmdoc, wt.vc.wip.WorkInProgressHelper.service.getCheckoutFolder(),"Iterated by Administrator");
// Check-in
if(wt.vc.wip.WorkInProgressHelper.isCheckedOut(epmdoc)) {
epmdoc = (wt.epm.EPMDocument) wt.vc.wip.WorkInProgressHelper.service.checkin(epmdoc,");
}
This works fine for all CAD Documents except for the Family Tables (EPMDocument instances).
In case of Family Tables EPM Document,I get the following error:
C:\ptc\Windchill_9.1\Windchill>windchill ext.Test
Introspection Runtime Mode = true
*************This is the test Class************
at wt.vc.wip.WorkInProgressServiceFwd.checkout(WorkInProgressServiceFwd.java:417)
What am missing out/ doing wrong here?
Thanks
Selvam
Hi,
Did you finally found a solution for this ? Indeed I am facing the same issue.
Sincerely,
Thibault Magné
Hello Swamy Senthil,
I am facing issue while updating content of EPMDocument grammatically.
i am able to create EPMDoc through API, at first time i was able to assign a primary conet file to this EPMDoc.
later when i checked out this epm throgh API and try to modify the content but in this case i got below error.
java.lang.reflect.InvocationTargetException
at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:800)
at wt.clients.util.RMIMultiPartPost.performOperation(RMIMultiPartPost.java:257)
at wt.clients.util.http.HTTPUploadDownload.performUploadOperation(HTTPUploadDownload.java:1357)
at wt.clients.util.http.HTTPUploadDownload.access$100(HTTPUploadDownload.java:54)
at wt.clients.util.http.HTTPUploadDownload$HTTPUploadDownloadThread.run(HTTPUploadDownload.java:2728)
Finished uploadFile of [wt.epm.EPMDocument:194491]Caused by: (wt.content.contentResource/66) wt.content.ContentException: Can not add more than one primary content to the object.
*********************************
please help me out, how i can modify the content file of EPMDoc and check in to Windchill from A.1 to A.2.
Regards,
Vivek