All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

MaterialManager (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---MaterialManager
 


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

Method Index

ApplyMaterialOnBody
Apply a Material on a Body.
ApplyMaterialOnHybridBody
Apply a Material on a Hybrid Body.
ApplyMaterialOnPart
Apply a Material on a Part.
ApplyMaterialOnProduct
Apply a Material on a Product.
ApplyMaterialOnUserMaterial
Apply a Material on a User Material (Analysis entity).
GetMaterialOnBody
Get a Material on a Body.
GetMaterialOnHybridBody
Get a Material on a Hybrid Body.
GetMaterialOnPart
Get a Material on a Part.
GetMaterialOnProduct
Get a Material on a Product.
GetMaterialOnUserMaterial
Get a Material on a User Material (Analysis entity).
ReplaceMaterialLinks
In current session, replace all links towards a material 1 with a link towards an other material 2.

Methods


o Sub ApplyMaterialOnBody(CATIABody iBody,
CATIAMaterial iMaterial,
short iLinkMode)
Apply a Material on a Body. If Material is NULL, deletes the material already applied on the Body
o Sub ApplyMaterialOnHybridBody(CATIAHybridBody iHybridBody,
CATIAMaterial iMaterial,
short iLinkMode)
Apply a Material on a Hybrid Body. If Material is NULL, deletes the material already applied on the Hybrid Body
o Sub ApplyMaterialOnPart(CATIAPart iPart,
CATIAMaterial iMaterial,
short iLinkMode)
Apply a Material on a Part. If Material is NULL, deletes the material already applied on the Part
o Sub ApplyMaterialOnProduct(CATIAProduct iProduct,
CATIAMaterial iMaterial,
short iLinkMode)
Apply a Material on a Product. If Material is NULL, deletes the material already applied on the Product
o Sub ApplyMaterialOnUserMaterial(CATIABase iUserMaterial,
CATIAMaterial iMaterial,
short 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
o Sub GetMaterialOnBody(CATIABody iBody,
CATIAMaterial oMaterial)
Get a Material on a Body. Material returned is NULL if no material is applied on the Body
o Sub GetMaterialOnHybridBody(CATIAHybridBody iHybridBody,
CATIAMaterial oMaterial)
Get a Material on a Hybrid Body. Material returned is NULL if no material is applied on the Hybrid Body
o Sub GetMaterialOnPart(CATIAPart iPart,
CATIAMaterial oMaterial)
Get a Material on a Part. Material returned is NULL if no material is applied on the Part
o Sub GetMaterialOnProduct(CATIAProduct iProduct,
CATIAMaterial oMaterial)
Get a Material on a Product. Material returned is NULL if no material is applied on the Product
o Sub GetMaterialOnUserMaterial(CATIABase iUserMaterial,
CATIAMaterial 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
o Sub ReplaceMaterialLinks(CATIAMaterial iMaterial1,
CATIAMaterial 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.

Copyright © 2003, Dassault Systèmes. All rights reserved.