How to get primary content link in Windchill

Answered

How to get primary content link in Windchill

Alex Trainee Asked on May 15, 2015 in Windchill PDMLink.
Add Comment
1 Answer(s)
Best answer

<br />public static URL getPrimaryContentURL(FormatContentHolder formatcontentholder) throws Exception {<br /> formatcontentholder = (FormatContentHolder)ContentHelper.service.getContents(formatcontentholder);<br /> ContentItem contentitem = ContentHelper.getPrimary(formatcontentholder);<br /> URL url = ContentHelper.getDownloadURL(formatcontentholder, (ApplicationData)contentitem, false);<br /> return url;<br />}<br />

guru@windchillguru.com Guru Answered on May 15, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.