cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Set State on Affected Objects in a Change Notice

janderson
3-Newcomer

Set State on Affected Objects in a Change Notice

Is there a way to set state on affected objects in a change notice?


I have been asked to have Windchill Obsolete out all previous revisions when a revision is made.

1 REPLY 1

Try adding the following into an ECN Expression robot:



wt.fc.QueryResult qr1 =
wt.change2.ChangeHelper2.service.getChangeablesBefore(
(wt.change2.ChangeOrderIfc) primaryBusinessObject);
while(qr1.hasMoreElements())
{
wt.lifecycle.LifeCycleHelper.service.setLifeCycleState(((wt.lifecycle.Li
feCycleManaged)qr1.nextElement()),wt.lifecycle.State.toState("OBSOLETE")
,true);
}



Hope this helps,

Dax Williams
Engineering E-Tools Administrator
GE Healthcare OEC

Surgery


Announcements


Top Tags