pycatia.knowledge_interfaces.real_param¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.knowledge_interfaces.real_param.RealParam(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectKnowledgeInterfaces.ParameterRealParamRepresents the real parameter.The following example shows how to create it:Dim CATDocs As DocumentsSet CATDocs = CATIA.DocumentsDim part1 As DocumentSet part1 = CATDocs.Add(“CATPart”)Dim density As RealParamSet density = part1.Part.Parameters.CreateReal(“density”, 2.5)The real parameter is the base object for dimensions.See also:Dimension- get_enumerate_values(o_safe_array: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetEnumerateValues(CATSafeArrayVariant oSafeArray)Returns an array containing the different values that the real param cantake in the case of multiple values.Example:Dim enumValues () as VariantReDim enumValues (aRealParameter.GetEnumerateValuesSize() -1)aRealParameter.GetEnumerateValues(enumValues)For i = LBound(enumValues) to UBound(enumValues)…Next
- Parameters:
o_safe_array (tuple) –
- Return type:
None
- get_enumerate_values_size() int ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetEnumerateValuesSize() As longReturns the number of enumerate values.
- Return type:
int
- is_equal_to(i_value_to_compare: float) bool ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func IsEqualTo(double iValueToCompare) As booleanTests the equality of the parameter value with a givenvalue.Parameters:iValueToCompareThe value to compare the parameter value withReturns:TrueIf the current value of the parameter (the one get by the get_Valueproperty, for dimensions notice that it is not the MKS value) is equal to theone given in argument. Notice that two values are considered as equal if theirdifference is insignificant faced with the two compared values. This methodallows you to avoid problems due to computationerrors.FalseIf the two values are different.
- Parameters:
i_value_to_compare (float) –
- Return type:
bool
- property maximum_tolerance: float¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property MaximumTolerance() As doubleReturns or sets the value of the maximum tolerance of a parameter. Unitsare expressed in the IS unit system.Example:This example sets the MaximumTolerance value to 0 if its value isbigger than 0:If (Length.MaximumTolerance < 0.0) ThenLength.MaximumTolerance = 0.0End If
- Return type:
float
- property minimum_tolerance: float¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property MinimumTolerance() As doubleReturns or sets the value of the minimum tolerance of a parameter. Unitsare expressed in the IS unit system.Example:This example sets the MinumumTolerance value to 0 if its value isbigger than 0:If (Length.MinimumTolerance > 0.0) ThenLength.MinimumTolerance = 0.0End If
- Return type:
float
- property range_max: float¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property RangeMax() As doubleReturns or sets the value of the upper bound that the parameter objectvalue can take.Example:This example sets the RangeMax value to 0 if its value is smaller than0:If (Length.RangeMax < 0.0 and Length.RangeMaxValidity <> 0)ThenLength.RangeMax = 0.0End If
- Return type:
float
- property range_max_validity: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property RangeMaxValidity() As longReturns or sets the type of the upper bound of theparameter.0the upper bound is meaningless1the upper bound can be reached2the upper bound cannot be reached
- Return type:
int
- property range_min: float¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property RangeMin() As doubleReturns or sets the value of the lower bound that the parameter objectvalue can take.Example:This example sets the RangeMin value to 0 if its value is bigger than0:If (Length.RangeMin > 0.0 and Length.RangeMinValidity <> 0)ThenLength.RangeMin = 0.0End If
- Return type:
float
- property range_min_validity: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property RangeMinValidity() As longReturns or sets the type of the lower bound of theparameter.0the lower bound is meaningless1the lower bound can be reached2the lower bound cannot be reached
- Return type:
int
- set_enumerate_values(i_safe_array: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetEnumerateValues(CATSafeArrayVariant iSafeArray)Sets an array containing the different values that the real param can takein the case of multiple values.
- Parameters:
i_safe_array (tuple) –
- Return type:
None
- suppress_enumerate_values() None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SuppressEnumerateValues()Resets the status of the object to a single value object.
- Return type:
None
- property value: float¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Value() As doubleReturns or sets the value of the real parameter. Units are expressed in theIS unit system, except for lengths expressed in millimeters, and anglesexpressed in decimal degrees.Example:This example sets the density value to 1 if its value is greater than2.5:If (density.Value > 2.5) Thendensity.Value = 1End If
- Return type:
float