How to create baseline in Windchill

How to create baseline in Windchill

Alex Trainee Asked on May 16, 2015 in Windchill PDMLink.
Add Comment
1 Answer(s)

WTHashSet wtHashSet = new WTHashSet();

wtHashSet.addElement(epmDocument);

ManagedBaseline managedBaseline = ManagedBaseline.newManagedBaseline();

managedBaseline.setName("BASELINE_NAME");

managedBaseline.setNumber("BASELINE_NUMBER");

managedBaseline.setDescription("BASELINE_DESCRIPTION");

managedBaseline.setContainer(epmDocument.getContainer());

managedBaseline.setFolderingInfo(epmDocument.getFolderingInfo());

managedBaseline.setTopObject(epmDocument);

managedBaseline = (ManagedBaseline)PersistenceHelper.manager.save(managedBaseline);

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.