Category Solids and parts, Object ProMaterial

Function ProMaterialCurrentSet


Description
Sets the specified material to be current. This material will be used to analyze calculations of the part.

Note: By default, while assigning a material to a sheetmetal part, the function ProMaterialCurrentSet() modifies the values of the sheetmetal properties such as Y factor and/or bend table as per the material file definition. This triggers a regeneration and a modification of the developed length calculations of the sheetmetal part. However, you can avoid this behavior by setting the value of the config option "material_update_smt_bend_table" to "never_replace".

Replacement in Object TOOLKIT: pfcPart::CurrentMaterial
Synopsis
#include <ProMaterial.h>
ProErrorProMaterialCurrentSet(
ProMaterial* p_material
/* (In)
The material handle
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the specified material as current.
PRO_TK_BAD_INPUTSThe argument is invalid.

Manual References:

  1. Core: Solids, Parts, and Materials: Density
  2. Core: Solids, Parts, and Materials: Accessing Material Data
  3. Core: Solids, Parts, and Materials: Material Types and Properties
  4. Technical Summary of Changes for Creo 11.0.0.0: Functions superseded from Creo 1.0 to Creo 11.0
  5. Migrating to the Multibody Environment: Impact on Existing APIs

Sample Code References:

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