Documentação da API > Solids and parts > Object ProSolid > Function ProSolidMdlnameCreate
Function ProSolidMdlnameCreate
Description
Creates a new Creo Parametric object of the specified type, and initializes the ProSolid handle. Note: In Creo 3 this function does not support names longer than 31 characters. It will return PRO_TK_LINE_TOO_LONG for longer names. The support for ProMdlName will be added in a future release.
Replacement in Object TOOLKIT:
Synopsis
#include <ProSolid.h>
ProSolidMdlnameCreate
(
/* (In)
The name of the new object
*/
/* (In)
The solid type (PRO_PART or PRO_ASSEMBLY)
*/
ProSolid* p_handle
/* (Out)
The handle to initialize
*/
)
Returns
The function successfully created the new object.
One or more of the input arguments are invalid.
An object of the specified name and type already exists.
The object could not be created.
Name length of the new object is more than 31 chars.
Sample Code References
User Guide References
Isto foi útil?