All Frameworks  Class Hierarchy  This Framework  Indexes

Material Global Function ApplyMaterialOnSupport


int ApplyMaterialOnSupport( const CATIMaterialFeature* iMaterial,
const CATIMaterialSupport* iSupport,
CATBoolean iApplyAsLink= TRUE)
Applies a material on a given support.
Parameters:
iMaterial
The material to apply
iSupport
The support on which the material will be applied.
iApplyAsLink
The material reference mode.
Legal values:
TRUE
A link between the support and the material in the catalog document is created. No material copy is done.
FALSE
The material is copied from the material catalog document into the support document.
Returns:
An integer value.
Legal values:
0
The material has been successfully applied on the support
-1
A wrong or missing support argument has been detected
-5
The material factories are not found

This object is included in the file: CATMaterialServices.h

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