Category Solids and parts, Object ProPart

Function ProPartMaterialNameGet


DEPRECATED: Since Wildfire 5.0
SUPERSEDED BY: ProMaterialCurrentGet
Description
This function is deprecated. Use ProMaterialCurrentGet().

Retrieves the material assigned to the specified part.

Synopsis
#include <ProPart.h>
ProErrorProPartMaterialNameGet(
ProPart part
/* (In)
The part.
*/
ProName material_name
/* (Out)
The name of the material. If you have not assigned a material, this will be empty.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSEither the part or material name is NULL.
PRO_TK_INVALID_TYPEThe model handle you passed to the function is not a part.
PRO_TK_E_NOT_FOUNDNo material was set.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions

Sample Code References:

  1. pt_geardesign ( GearDesign.c )