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

How to correctly use AddRow() for Family Tables?

Highlighted
Regular Member

How to correctly use AddRow() for Family Tables?

Hello,

 

I am using the Web.Link API and have the following problem:

 

I am currently trying to build upon the pfcFamilyMemberExample. I have modified the code to select all features instead of dimensions and now I want to add a row where all features are disabled by default.

This is the code I have so far:

 

var session = pfcGetProESession();

var solid = session.CurrentModel;

...

var value = pfcCreate("MpfcModelItem").CreateBoolParamValue(false);

var values = pfcCreate("pfcParamValues").Append(value);

solid.AddRow("NewChild", values);

 

However this does not end with the correct result, as the new row is created but the value is set to default and not false.

 

All ideas how to solve this are greatly appreciated!!

Announcements