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 {<br /> ObjectVector vector = new ObjectVector();<br /> if(group != null){<br /> Element[] elements = group.getElementArray();<br /> if(elements != null){<br /> for(int i=0; i &lt; elements.length; i++){<br /> Element element = elements[i];<br /> String persistenceIdentifier = element.getPersistenceIdentifier();<br /> vector.addElement(new ReferenceFactory().getReference(persistenceIdentifier).getObject());<br /> }<br /> }<br /> }<br /> return vector;<br /> }

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.