Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: Change revision by code

$
0
0

Following code works on 9.1 M40

 

Versioned reviseObj(final Versioned versioned){

    Versioned newVersioned = null;

    try {

        newVersioned = wt.vc.VersionControlHelper.service.newVersion(versioned);

        wt.fc.PersistenceHelper.manager.store(newVersioned);

    } catch (WTPropertyVetoException e) {

        e.printStackTrace();

    } catch (WTException e) {

        e.printStackTrace();

    }

   

    return newVersioned;

}


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>