Category Solids and parts, Object ProMaterial

Function ProMaterialPropertyGet


Description
Get the value and units for the material property
Replacement in Object TOOLKIT: pfcMaterial::GetPropertyValue
Synopsis
#include <ProMaterial.h>
ProErrorProMaterialPropertyGet(
ProMaterialItem* p_material
/* (In)
The material.
*/
ProMaterialPropertyType prop_type
/* (In)
The material property type.
*/
ProParamvalue* p_value
/* (Out)
The material property value.
*/
ProUnititem* p_units
/* (Out)
The units for the value returned.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments is invalid.
PRO_TK_E_NOT_FOUNDThe material does not have this property assigned.
PRO_TK_GENERAL_ERRORAn error occurred during obtaining of the property.

Manual References:

  1. Core: Solids, Parts, and Materials: Material Types and Properties
  2. Core: Solids, Parts, and Materials: Material Types and Properties

Sample Code References:

  1. pt_examples ( TestPartMaterial.c )
  2. pt_userguide ( UgMaterial.c )
  3. pt_userguide ( UgMaterial.c )
  4. pt_userguide ( UgSolidMaterial.c )