Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
how to extract parent and child relationship table.
for example : An assembly abc.asm has 3 members. a.prt, b.prt and c.prt (the reference could be anything like suppressed member, a regular member, substitute relationship) etc
query is going to used for datamigrationfrom ProIntralink 8.0 to windchill 9.1.
could be helpful,if anyone share your suggestion\code\ideas.
Regards
Gangadharan.N
If I caught the question right:
ConfigSpec configSpec = new LatestConfigSpec();
QueryResult qrMY = EPMStructureHelper.service.navigateUsesToIteration(epmDoc, null, false, configSpec);
do
{
if(!qrMY.hasMoreElements())
break;
Persistable apersistable[] = (Persistable[])(Persistable[])qrMY.nextElement();
Persistable persistable = apersistable[0];
Persistable persistable1 = apersistable[1];
if((persistable instanceof EPMDependencyLink) && (persistable1 instanceof EPMDocument))
{
EPMDependencyLink epmdependencylink = (EPMDependencyLink)persistable;
epmTop = (EPMDocument)persistable1;
System.out.println( "\tEPMDoc Number: "+ epmTop.getNumber() + "| EPMDoc Name: " + epmTop.getName());
System.out.println( "\tEPMDoc CADName: "+ epmTop.getCADName() + "| EPMDoc DocType: " + epmTop.getDocType());
System.out.println( "\tEPMDoc Version: " + epmTop.getVersionIdentifier().getValue() + "."+epmTop.getIterationIdentifier().getValue()+"\n");
}
} while(true);
L Jett