Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
use the below api to achieve the same result,
wt.vc.VersionControlHelper.service.allIterationsOf(Mastered master)
It return the QueryResult and finds all of the iterations of the given master. The result is an ordered list of iterations from the most recent one to the first one created for that version, e.g. (B.2, B.1, A.3, A.2, A.1).
Regards,
Avinash
Hi Avinash,
please can we provide some more info on how to use above mentioned API.
It will be grate if you provide some example on this API.
Thanks,
Vivek
Vivek,
Check if the following example helps:
EPMDocument target=null; // get your cad document handle
QueryResult qr = VersionControlHelper.service.allIterationsOf((EPMDocumentMaster)target);
while (qr.hasMoreElements()) {
EPMDocument iteration = (EPMDocument) qr.nextElement();
}
Regards,
Bhushan