Category Solids and parts, Object ProMaterial

Function ProMaterialDataGet


DEPRECATED: Since Wildfire 5.0
SUPERSEDED BY: ProMaterialPropertyGet
Description
This function is deprecated. Use ProMaterialPropertyGet() for the individual material properties that should be defined in this material.

Gets the material properties for the specified material in the part.

Synopsis
#include <ProMaterial.h>
ProErrorProMaterialDataGet(
ProMaterial* p_material
/* (In)
The handle to the part material.
*/
ProMaterialdata* p_matl_data
/* (Out)
The material properties. Note: the values returned are in the units of the owner model for the material, regardless of the units used by the property within this material.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_INVALID_TYPEThe model handle you passed to the function is not a part.
PRO_TK_BAD_INPUTSEither the part or material properties is NULL.
PRO_TK_INVALID_NAMEThe material name you specified is invalid (for example, if you passed NULL).
PRO_TK_E_NOT_FOUNDThe specified material name was not found in the part.

Manual References:

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