pycatia.cat_mat_interfaces.material_manager¶
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_manager.MaterialManager(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMaterialManagerInterface to manage material manager object.Role: A material manager is used to manage materials applicationon geometrical objects.- apply_material_on_body(i_body: Body, i_material: Material | None, i_link_mode: int = 0) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ApplyMaterialOnBody(Body iBody,Material iMaterial,short iLinkMode)Apply a Material on a Body. If Material is NULL, deletesthe material already applied on the Body.
- apply_material_on_hybrid_body(i_hybrid_body: HybridBody, i_material: Material | None, i_link_mode: int = 0) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ApplyMaterialOnHybridBody(HybridBody iHybridBody,Material iMaterial,short iLinkMode)Apply a Material on a Hybrid Body. If Material is NULL,deletes the material already applied on the Hybrid Body
- Parameters:
i_hybrid_body (HybridBody) –
i_material (Material) –
i_link_mode (int) –
- Return type:
None
- apply_material_on_part(i_part: Part, i_material: Material | None, i_link_mode: int = 0) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ApplyMaterialOnPart(Part iPart,Material iMaterial,short iLinkMode)Apply a Material on a Part. If Material is NULL, deletesthe material already applied on the Part
- apply_material_on_product(i_product: Product, i_material: Material | None, i_link_mode: int = 0) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ApplyMaterialOnProduct(Product iProduct,Material iMaterial,short iLinkMode)Apply a Material on a Product. If Material is NULL,deletes the material already applied on the Product
- apply_material_on_user_material(i_user_material: AnyObject, i_material: Material | None, i_link_mode: int = 0) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ApplyMaterialOnUserMaterial(AnyObject iUserMaterial,Material iMaterial,short iLinkMode)Apply a Material on a User Material (Analysis entity).Warning:iUserMaterial should be a CATIAAnalysisEntity object. IfMaterial is NULL, deletes the material already applied onthe User Material
- get_material_on_body(i_body: Body) Material ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetMaterialOnBody(Body iBody,Material oMaterial)Get a Material on a Body. Material returned is NULL if nomaterial is applied on the Body
- get_material_on_hybrid_body(i_hybrid_body: HybridBody) Material ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetMaterialOnHybridBody(HybridBody iHybridBody,Material oMaterial)Get a Material on a Hybrid Body. Material returned isNULL if no material is applied on the Hybrid Body
- Parameters:
i_hybrid_body (HybridBody) –
o_material (Material) –
- Return type:
None
- get_material_on_part(i_part: Part) Material ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetMaterialOnPart(Part iPart,Material oMaterial)Get a Material on a Part. Material returned is NULL if nomaterial is applied on the Part
- get_material_on_product(i_product: Product) Material ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetMaterialOnProduct(Product iProduct,Material oMaterial)Get a Material on a Product. Material returned is NULL ifno material is applied on the Product
- get_material_on_user_material(i_user_material: AnyObject) Material ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetMaterialOnUserMaterial(AnyObject iUserMaterial,Material oMaterial)Get a Material on a User Material (Analysis entity).Warning: iUserMaterial should be a CATIAAnalysisEntityobject. Material returned is NULL if no material isapplied on the User Material
- replace_material_links(i_material1: Material, i_material2: Material) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ReplaceMaterialLinks(Material iMaterial1,Material iMaterial2)In current session, replace all links towards a material 1with a link towards an other material 2. N.B. Bothmaterials entered should be in a material library.