Important note
Applies to a design table sheet. Returns the configuration which contains the largest values
less or equal to the values of the given arguments. When several configurations meet this condition,
the method sorts out the possible configurations with respect to the column order as it is specified
in the argument list.
Syntax
sheet.CloserInfConfig(columnName: String, maxValue: Literal,
...):Integer
The CloserInfConfig method takes the following arguments:
Arguments |
Description |
columnName |
Should be put in quotes. At least, one couple columnName/maxValue
is required |
maxValue |
Required. You should specify the units. |
Example
Given the design table below:
|
SketchRadius(mm) |
PadLim1(mm) |
PadLim2(mm) |
1 |
120 |
60 |
10 |
2 |
130 |
50 |
30 |
3 |
120 |
60 |
20 |
4 |
140 |
50 |
40 |
The statement below
Relations\DesignTable1\sheet_name.CloserInfConfig("PadLim1",
60mm, "SketchRadius", 130mm, "PadLim2", 40mm)
returns 3.
Explanations
The values of lines 1 , 2 and 3 are all less or equal to the values specified in the method
arguments.
|
As the first parameter specified in the argument list is "PadLim1", the method scans
the lines 1, 2 and 3 and searches for the largest "PadLim1" value which is
less or equal to 60 mm. Two configurations meet the condition: configuration 1 and
configuration 3. |
|
As the second parameter specified is "SketchRadius", the method scans the
configurations 1 and 3 and searches for the largest "SketchRadius" value less
or equal to 130 mm. Again, the function finds two configurations meeting the criteria. |
|
Then it rescans lines 1 and 3 and searches for the largest "PadLim2" value less or
equal to 40mm. The result is line 3. |
|