MaterialManager (Object)

Interface to manage material manager object.
Role: A material manager is used to manage materials application on geometrical objects.

Methods


Sub ApplyMaterialOnBody( iBody, iMaterial, iLinkMode)
Apply a Material on a Body. If Material is NULL, deletes the material already applied on the Body
Sub ApplyMaterialOnHybridBody( iHybridBody, iMaterial, iLinkMode)
Apply a Material on a Hybrid Body. If Material is NULL, deletes the material already applied on the Hybrid Body
Sub ApplyMaterialOnPart( iPart, iMaterial, iLinkMode)
Apply a Material on a Part. If Material is NULL, deletes the material already applied on the Part
Sub ApplyMaterialOnProduct( iProduct, iMaterial, iLinkMode)
Apply a Material on a Product. If Material is NULL, deletes the material already applied on the Product
Sub ApplyMaterialOnUserMaterial( iUserMaterial, iMaterial, iLinkMode)
Apply a Material on a User Material (Analysis entity). Warning: iUserMaterial should be a CATIAAnalysisEntity object. If Material is NULL, deletes the material already applied on the User Material
Sub GetMaterialOnBody( iBody, oMaterial)
Get a Material on a Body. Material returned is NULL if no material is applied on the Body
Sub GetMaterialOnHybridBody( iHybridBody, oMaterial)
Get a Material on a Hybrid Body. Material returned is NULL if no material is applied on the Hybrid Body
Sub GetMaterialOnPart( iPart, oMaterial)
Get a Material on a Part. Material returned is NULL if no material is applied on the Part
Sub GetMaterialOnProduct( iProduct, oMaterial)
Get a Material on a Product. Material returned is NULL if no material is applied on the Product
Sub GetMaterialOnUserMaterial( iUserMaterial, oMaterial)
Get a Material on a User Material (Analysis entity). Warning: iUserMaterial should be a CATIAAnalysisEntity object. Material returned is NULL if no material is applied on the User Material
Sub ReplaceMaterialLinks( iMaterial1, iMaterial2)
In current session, replace all links towards a material 1 with a link towards an other material 2. N.B. Both materials entered should be in a material library.