Replace a feature with the Instance Instance found in the family table based on the matches of one or more parameters by name.
If the set of parameters is not found in the family table, create the new family table row with the passed parameters and switch to this newly created Instance.
There is a second method also called "Replace" with different parameters. See the other versions for more details
Parameters
model (string) - the model/container name (no extension) to look inside
feature (string) - the feature to look for to do the replace on
ParameterMatches (array of string) - 2 or more parameters that are in the format "Name", Value, "Name2", Value2, etc... The list MUST be at least 2 items (one pair) and be an even number of values (2, 4, 6, etc...)
Return Value
String - the replaced instance name
Remarks
This version of Replace switches to different family table version of a generic component based on matching a set of criteria exactly. It is different from the other replace version because it can be used to create new rows (instances) on demand.
Examples
CAD.Comp.Replace("Model","28", "Length", V("Length"), "Height", V("Height") )
' on model "Model", Feature 28, find the family table row with the length and height parameters
' which match the values entered in the controls with matching names.
' If the row is not present a new one is created.