All Frameworks Object Hierarchy This Framework Previous Next Indexes
IntParam (Object)
IUnknown
|
+---IDispatch
|
+---CATBaseUnknown
|
+---CATBaseDispatch
|
+---AnyObject
|
+---Parameter
|
+---IntParam
Represents the integer parameter.
The following example shows how to create it:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Dccument
Set part1 = CATDocs.Add("CATPart")
Dim year As IntParam
Set year = part1.Part.Parameters.CreateInteger("year", 1998)
Property Index
-
RangeMax
- Returns or sets the value of the upper bound that
the parameter object value can take.
-
RangeMaxValidity
- Returns or sets the type of the upper bound of
the parameter.
-
RangeMin
- Returns or sets the value of the lower bound that
the parameter object value can take.
-
RangeMinValidity
- Returns or sets the type of the lower bound of
the parameter.
-
Value
- Returns or sets the value of the integer parameter.
Method Index
-
GetEnumerateValues
- Returns an array containing the different values that the int param can take
in the case of multiple values.
-
GetEnumerateValuesSize
- Returns the number of enumerate values.
-
SetEnumerateValues
- Sets an array containing the different values that the real param can take
in the case of multiple values.
-
SuppressEnumerateValues
- Resets the status of the object to a single value object.
Properties
o Property RangeMax( | ) As long |
-
Returns or sets the value of the upper bound that
the parameter object value can take.
- Example:
-
This example sets the RangeMax value to 0
if its value is smaller than 0:
If (Length.RangeMax < 0.0 and Length.RangeMaxValidity <> 0) Then
Length.RangeMax = 0.0
End If
o Property RangeMaxValidity( | ) As long |
-
Returns or sets the type of the upper bound of
the parameter.
- 0
- the upper bound is meaningless
- 1
- the upper bound can be reached
- 2
- the upper bound cannot be reached
o Property RangeMin( | ) As long |
-
Returns or sets the value of the lower bound that
the parameter object value can take.
- Example:
-
This example sets the RangeMin value to 0
if its value is bigger than 0:
If (Length.RangeMin > 0.0 and Length.RangeMinValidity <> 0) Then
Length.RangeMin = 0.0
End If
o Property RangeMinValidity( | ) As long |
-
Returns or sets the type of the lower bound of
the parameter.
- 0
- the lower bound is meaningless
- 1
- the lower bound can be reached
- 2
- the lower bound cannot be reached
o Property Value( | ) As long |
-
Returns or sets the value of the integer parameter.
Units are expressed in the IS unit system.
- Example:
-
This example sets the year value to 0
if its value is equal to 2000:
If (year.Value = 2000) Then
year.Value = 0
End If
Methods
-
Returns an array containing the different values that the int param can take
in the case of multiple values.
- Example:
-
Dim enumValues () as Variant
ReDim enumValues (anIntegerParameter.GetEnumerateValuesSize() - 1)
anIntegerParameter.GetEnumerateValues(enumValues)
For i = LBound(enumValues) to UBound(enumValues)
...
Next
o Func GetEnumerateValuesSize( | ) As long |
-
Returns the number of enumerate values.
-
Sets an array containing the different values that the real param can take
in the case of multiple values.
o Sub SuppressEnumerateValues( | ) |
-
Resets the status of the object to a single value object.