Skip to main content
1-Visitor
November 19, 2019
Question

How to correctly use AddRow() for Family Tables?

  • November 19, 2019
  • 0 replies
  • 720 views

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!!