Material Objects
 
Creo TOOLKIT enables you to programmatically access the material properties of parts. Using the Creo TOOLKIT functions, you can do the following actions:
Create or delete materials.
Set the current material.
Retrieve and set the material types and properties.
Read and write to material files.
To enable access to materials, Creo TOOLKIT uses the following objects:
ProMaterial—A structure that contains a material name and the part (ProSolid object) to which it is assigned. This handle is used in older material functions.
ProMaterialItem—Another name for a ProModelitem, it contains the material owner, ID, and type (PRO_RP_MATERIAL).
To convert between ProMaterial and ProMaterialItem, use ProModelitemByNameInit() to obtain the item from the material owner and name. To obtain a ProMaterial from a ProMaterialItem, use ProModelitemNameGet() to get the material name.
¿Fue esto útil?