Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export instances of a family table with jlink

  • Thread starter Thread starter ilson
  • Start date Start date
I

ilson

Guest
Hello.

I'm trying to export in .PRT all instances of a family table with jlink
Algem can help me implement this code
I am using the code:
Originally obtained in:https://community.ptc.com/t5/Custom...-family-table/m-p/483291/highlight/false#M548


...
proeModelDescriptor = pfcModel.ModelDescriptor_Create(ModelType.MDL_PART, null, modellName);
...
FamilyMember familyMember = (Solid) proeModel;
FamilyTableRows familyTableRows = familyMember.ListRows();
for (int ii = 0; ii < familyTableRows.getarraysize(); ii++) {
FamilyTableRow familyTableRow = familyTableRows.get(ii);
String instanceName = familyTableRow.GetInstanceName();
System.out.println("instanceName = " + instanceName);
}
...
 

Part and Inventory Search

Sponsor

Back
Top