How to get objects from Info*Engine Group in Windchill

How to get objects from Info*Engine Group in Windchill

Alex Trainee Asked on May 16, 2015 in Windchill PDMLink.
Add Comment
1 Answer(s)
public static ObjectVector getObjectsFromGroup(Group group) throws Exception {
 ObjectVector vector = new ObjectVector();
 if(group != null){
 Element[] elements = group.getElementArray();
 if(elements != null){
 for(int i=0; i < elements.length; i++){
 Element element = elements[i];
 String persistenceIdentifier = element.getPersistenceIdentifier();
 vector.addElement(new ReferenceFactory().getReference(persistenceIdentifier).getObject());
 }
 }
 }
 return vector;
 }
guru@windchillguru.com Guru Answered on May 16, 2015.
Add Comment

Your Answer

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