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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

How to correctly use AddRow() for Family Tables?

frage12358
6-Contributor

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

0 REPLIES 0
Top Tags