How to get primary content link in Windchill

Answered

How to get primary content link in Windchill

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 />

Add Comment

Your Answer

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