Category Solids and parts, Object ProPart

Function ProPartMaterialdataGet


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.

Retrieves the material properties for the specified part.

Synopsis
#include <ProPart.h>
ProErrorProPartMaterialdataGet(
ProPart part
/* (In)
The part
*/
ProName material_name
/* (In)
The material name
*/
ProMaterialProps* material_prop
/* (Out)
The material properties
*/
)
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. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions