Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Register Log in

Export instances of a family table with jlink

ilson

New member
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);
}
...
 

Sponsor

Sponsor

X
Top