pycatia.cat_mat_interfaces.material_families¶
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.material_families.MaterialFamilies(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionMaterialFamiliesA collection of all the MaterialFamily objects.This collection is currently managed by a CATIAMaterialDocumentobject.- add() MaterialFamily ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Add() As MaterialFamilyAdds a new material family to the MaterialFamilies collection.Example:The following adds a material family to the collectionattached to a document. This document must be aMaterialDocument object.FileToOpen = “e:usersastmaterialsCatalog.CATMaterial”Dim MyDocument As MaterialDocumentSet MyDocument = Documents.Open(FileToOpen)Dim MyMaterialFamily As MaterialFamilySet MyMaterialFamily = MyDocument.MaterialFamilies.Add
- Return type:
- item(i_index: cat_variant) MaterialFamily ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As MaterialFamilyReturns a material family from its index in theMaterialFamilies collection.Parameters:iIndexThe index of the material family to retrieve inthe collection of material families. Compared withother collections, you cannot use the name ofthe material family as argument.Returns:The retrieved material familyExample:The following example returns in MyMaterialFamily thesixthmaterial family in the collection.Dim MyMaterialFamily As MaterialFamilySet MyMaterialFamily = MaterialFamilies.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 family from the MaterialFamiliescollection.Parameters:iIndexThe index of the material family to remove.Compared with other collections, you cannot usethe name of the material family as argument.Example:The following example removes the second materialfamily in the collection attached to the activedocument. This document must be a MaterialDocumentobject.FileToOpen = “e:usersastmaterialsCatalog.CATMaterial”Dim MyDocument As MaterialDocumentSet MyDocument = Documents.Open(FileToOpen)MyDocument.MaterialFamilies.Remove(2)
- Parameters:
i_index (cat_variant) –
- Return type:
None