cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

J-Link Family Table Instance Verification Problem

pstephens
6-Contributor

J-Link Family Table Instance Verification Problem

Hello J-Link gurus,

I am having trouble with verifying certain family table instance models in J-Link and was hoping that someone may be able to shed some light on to how to remedy it.

What is happening is wierd (or maybe I am).

I have a class to verify family table instances which normally works well.

I also have a generic part model with 42 instances which will verify ok in one async class but will not in another async class.

I have been trying to debug via Eclipse to see if I could find the fault, but have found no solution.

When it fails, the app breaks out of the for loop after the first row of the family table and it seems to ignore "famrow.CreateInstance()"

When it works it loops through all 42 instances and creates each instance to verify it.

Note this is the same cad model.

The class that it works in only calls up the generic model, does a couple of minor changes, verifies the instances and saves.

The class that does not work, calls up the generic model from a list of assembly components does the same changes but the verify fails.

But another generic model from that same assembly component list verifies ok ???????

I have no idea why.

Any suggestions would be greatly appreciated.

The "for loop" in the verification class is :

for(int j = 0; j <= getInstList.getarraysize();j++)
{//begin of for loop
FamilyTableRow famrow = getInstList.get(j);
String instName = famrow.GetInstanceName();
famrow.CreateInstance();
System.out.println("instName: "+instName);
Model m = famrow.CreateInstance();
m.Erase();
}//end of for loop

Wildfire 2, M190
Intalink 3.3, M021
Eclipse 3.3.0

Paul Stephens
CAD Systems Supervisor
Kenworth Trucks Australia


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Top Tags