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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Assign a Value to Table Cell using Jlink

ddhini
14-Alexandrite

Assign a Value to Table Cell using Jlink

I have a drawing file Were it contains multipe tables .i wish to affect the cell value in a particular table .I coded something below.

 

//get the table
Table t1=draw.GetTable(5);
//table cell
TableCell tc = pfcTable.TableCell_Create (3, 3);
String update=  (JOptionPane.showInputDialog("Please update Cell Value: "));
double scale=4.5956;
 DetailNoteInstructions dni1 = note1.GetInstructions(false);
 DetailTextLines dtln1 = dni1.GetTextLines();
  for (int i = 0; i < dtln1.getarraysize(); i++) {
   DetailTexts  dts1 = dtln1.get(i).GetTexts();
   for (int j = 0; j < dts1.getarraysize(); j++) {
     if(j==0){
     DetailText   dt1 = dts1.get(j);
     dt1.SetText(update);
     dt1.SetTextHeight(scale);
     }
  }
}

The code sucessfully updates the value to the table.Incase i set the Value as Parameter 

For Ex : There is already a parameter in the table cell (&IMW) ,When i push a value it will clear the old value and saves as new text .I wish to update the Parameter by not open model .please help me to solve my problem.

 

Thanks regards,

Dinesh

0 REPLIES 0
Top Tags