pycatia.knowledge_interfaces.units¶
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.units.Units(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionUnitsRepresents the collection of Units.This collection can be retrieved via any collection of parameters (methodUnits).- item(i_index: cat_variant) Unit ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Item(CATVariant iIndex) As UnitReturns a unit using its index or its name from the from the Parameterscollection.Parameters:iIndexThe index or the name of the unit to retrieve from the collectionof parameters. As a numerics, this index is the rank of the unit in thecollection. The index of the first unit in the collection is 1, and the indexof the last parameter is Count. As a string, it is the name you assigned to theparameter using theAnyObject.Name property or when creating the parameter.Example:This example retrieves the millimeter unit in the unitscollection:Set unitmm = units.Item(“mm”)
- Parameters:
i_index (cat_variant) –
- Return type: