pycatia.knowledge_interfaces.unit¶
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.unit.Unit(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectUnitRepresents CATIAUnit object.This interface allows convertion.- convert_from_mks(i_value_in_mks: float) float ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func ConvertFromMKS(double iValueInMKS) As doubleConvert the initial value (expressed in MKS unit) in its equivalent in thecurrent unit.Parameters:iValueInThisUnitThe initial value in MKS unit.oValueInMKSThe final value in the current unit.
- Parameters:
i_value_in_mks (float) –
- Return type:
float
- convert_from_storage_unit(i_value_in_storage_unit: float) float ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func ConvertFromStorageUnit(double iValueInStorageUnit) AsdoubleConvert the initial value (expressed in storage unit) in its equivalent inthe current unit.Parameters:iValueInStorageUnitThe initial value in storage unit.oValueInThisUnitThe final value in the current unit.
- Parameters:
i_value_in_storage_unit (float) –
- Return type:
float
- convert_to_mks(i_value_in_this_unit: float) float ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func ConvertToMKS(double iValueInThisUnit) As doubleConvert the initial value in its equivalent in MKS unit.Parameters:iValueInThisUnitThe initial value in the current unit.oValueInMKSThe final value in the corresponding MKS unit.
- Parameters:
i_value_in_this_unit (float) –
- Return type:
float
- convert_to_storage_unit(i_value_in_this_unit: float) float ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func ConvertToStorageUnit(double iValueInThisUnit) AsdoubleConvert the initial value in its equivalent in storageunit.Parameters:iValueInThisUnitThe initial value in the current unit.oValueInStorageUnitThe final value in the corresponding storage unit.
- Parameters:
i_value_in_this_unit (float) –
- Return type:
float
- property magnitude: str¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Magnitude() As CATBSTR (Read Only)Returns the magnitude associated to the unit.
- Return type:
str
- property symbol: str¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Symbol() As CATBSTR (Read Only)Returns the symbol associated to the unit.
- Return type:
str