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
public static URL getPrimaryContentURL(FormatContentHolder formatcontentholder) throws Exception {
 formatcontentholder = (FormatContentHolder)ContentHelper.service.getContents(formatcontentholder);
 ContentItem contentitem = ContentHelper.getPrimary(formatcontentholder);
 URL url = ContentHelper.getDownloadURL(formatcontentholder, (ApplicationData)contentitem, false);
 return url;
}
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.