setEntry()
Use the setEntry method to set property values at specified entries using a key instead of an index to locate the row to change.
Syntax
Use this method to assign property values of different types at specified entries:
setEntry(name, key, value);
where all input arguments are strings:
name, representing the property name.
key, representing the index key.
value, representing the property value.
The value can also be a double, an integer, or (with limited applicability; primarily for part links) a boolean.
For example, if pi1 is a part instance feature with input parameters a and b in a geometry, the following lines
GeomFeature f = model.component("comp1").geom("geom1").feature("pi1");
f.setEntry("inputexpr", "a", "2");
f.setEntry("inputexpr", "b", "3");
set the value of the input expression for parameter a to the string 2 and for parameter b to the string 3. You can also set the values of the input expressions to numerical values (doubles):
f.setEntry("inputexpr", "a", 4);
f.setEntry("inputexpr", "b", 5.0);
setEntry lets you use a key to access rows in the table, defined by the content in one of the columns (in this case, the column that contains parameter names.