How to get primary content link in Windchill

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;
}

你可能感兴趣的:(How to get primary content link in Windchill)