Category Solids and parts, Object ProMaterial

Function ProMaterialCreate


Description
Creates a material of the specified name in the part.
Replacement in Object TOOLKIT: pfcPart::CreateMaterial
Synopsis
#include <ProMaterial.h>
ProErrorProMaterialCreate(
ProSolid part
/* (In)
The part
*/
ProName matl_name
/* (In)
The material name
*/
ProMaterialdata* p_matl_data
/* (In)
The material properties to set. This argument is deprecated. Pass NULL to create an empty material item whose properties can be set by ProMaterialPropertySet.
*/
ProMaterial* p_material
/* (Out)
The resultant material handle
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created the material in the part.
PRO_TK_E_FOUNDThe material name already exists.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
See Also
ProModelitemByNameInit
ProMaterialPropertySet

Manual References:

  1. Core: Solids, Parts, and Materials: Accessing Material Data
  2. Core: Solids, Parts, and Materials: Accessing Material Data

Sample Code References:

  1. pt_examples ( TestPartMaterial.c )
  2. pt_userguide ( UgSolidMaterial.c )