pycatia.knowledge_interfaces.dimension¶
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.dimension.Dimension(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectKnowledgeInterfaces.ParameterKnowledgeInterfaces.RealParamDimensionRepresents the dimension parameter.It is an abstract object which is not intended to be created as such, but fromwhich the length and angle parameters derive.See also:Length, Angle- property unit: Unit¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Unit() As Unit (Read Only)Returns the unit used for this dimension object.
- Return type:
- value_as_string2(i_nb_decimals: int, i_show_trailing_zeros: bool) str ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func ValueAsString2(long iNbDecimals,boolean iShowTrailingZeros) As CATBSTRGets the value of the parameter as a string, with a givenprecision.Parameters:iNbDecimalsthe maximum number of decimal places to use to generate the string(minimum 0, maximum 9)iShowTrailingZerosthis argument says if trailing zeros have to be shownExample:This example gets the value of the existing dimension parameter andshows it in a message boxDim strstr = dimension.ValueAsString;MessageBox str
- Parameters:
i_nb_decimals (int) –
i_show_trailing_zeros (bool) –
- Return type:
str