How to get part occurrences from usage link in ...

public static Vector getOccurrenceNames(WTPartUsageLink pulink) throws Exception {
    Vector vector = new Vector();
    QueryResult occurrences = OccurrenceHelper.service.getUsesOccurrences(pulink);
    int i = 0;
    for(i = 0; i < occurrences.size(); i++) {
        PartUsesOccurrence uses = (PartUsesOccurrence)occurrences.nextElement();
        if(uses.getName() != null){
            vector.addElement(uses.getName());
        } else {
            vector.addElement("UnNamed");
        }
    }
    return vector;
}

你可能感兴趣的:(How to get part occurrences from usage link in ...)