API Documentation > Solids and parts > Object ProMaterialfile > Function ProMaterialfileRead
Function ProMaterialfileRead
Description
Reads the named material properties from file and adds (or updates) the specified material name to the part's database.
Replacement in Object TOOLKIT:
Synopsis
#include <ProMaterial.h>
ProMaterialfileRead
(
/* (In)
The part
*/
ProName matl_name
/* (In)
The name of the material properties (without the extension). The function will look for 'matl_name'.mtl (a modern material file) first, and then 'matl_name'.mat.
*/
)
Returns
The function successfully read the material to the part.
The model handle you passed to the function is not a part.
There is an error in the material properties file.
The specifed file was not found on the drive.
Sample Code References
User Guide References
Was this helpful?