0 votes
in PDMLink by (user.hidden) (690 points)
How one can create a baselines in Windchill PLM, any sample code will help.

1 Answer

0 votes
by (user.hidden) (690 points)
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);

 

Welcome to Windchill Guru, where you can ask questions and receive answers from other members of the community. I recommend everyone to Register

Categories

...