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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Units

Represents the collection of Units.
This collection can be retrieved via any collection of parameters (method
Units).
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 Unit

Returns a unit using its index or its name from the from the Parameters
collection.

Parameters:

iIndex
The index or the name of the unit to retrieve from the collection
of parameters. As a numerics, this index is the rank of the unit in the
collection. The index of the first unit in the collection is 1, and the index
of the last parameter is Count. As a string, it is the name you assigned to the
parameter using the

AnyObject.Name property or when creating the parameter.

Example:
This example retrieves the millimeter unit in the units
collection:

Set unitmm = units.Item(“mm”)
Parameters:

i_index (cat_variant) –

Return type:

Unit