pycatia.cat_mat_interfaces.materials¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
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.cat_mat_interfaces.materials.Materials(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionMaterialsA collection of all the Material objects.This collection is currently managed by a MaterialFamilyobject.- add() Material ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Add() As MaterialAdds a new material to the material collection.
- Return type:
- item(i_index: cat_variant) Material ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As MaterialReturns a material from its index in the Materialcollection.Parameters:iIndexThe index of the material to retrieve in thecollection of materials. Compared with othercollections, you cannot use the name of thematerial as argument.Returns:The retrieved materialExample:The following example returns in MyMaterial the sixthmaterial in a material collection.Dim MyMaterial As MaterialSet MyMaterial = Materials.Item(6)
- Parameters:
i_index (cat_variant) –
- Return type:
- remove(i_index: cat_variant) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Remove(CATVariant iIndex)Removes a material from the materials collection.
- Parameters:
i_index (cat_variant) –
- Return type:
None
- sorted_item(i_index: cat_variant, i_mode: int) Material ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func SortedItem(CATVariant iIndex,short iMode) As MaterialReturns a material from its index in the sorted Materialcollection.Parameters:iIndexThe index of the material to retrieve in thesorted collection of materials. Compared withother collections, you cannot use the name of thematerial as argument.iModeThe sorted mode of material collectionPossible mode values are:0: Alphabetical order1: Inverse alphabetical orderReturns:The retrieved material
- Parameters:
i_index (cat_variant) –
i_mode (int) –
- Return type: