Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
How to Revise a part using Api? want a sample program
Using the same code you can Revide WTPart also.
The above code is written in WorkFlow so you may have to change it a bit in order to suit your requirement
Regards,
Kaushik