Documentação da API > Parameters and relations > Object ProRelation > Function ProRelationFunctionRegister
Function ProRelationFunctionRegister
Description
Register an external function to be used in relations.
Replacement in Object TOOLKIT:
Synopsis
#include <ProRelSet.h>
ProRelationFunctionRegister
(
char* extfunc_name
/* (In)
name of new relation function used in the relations.
*/
ProRelfuncArg* arg_descr_arr
/* (In)
argument description ProArray. Can be NULL if: no arguments should be supplied to the new function. you don't want Creo Parametric to check the validity of arguments (in conjunction with 'dis_type_ctrl' = PRO_B_TRUE).
*/
/* (In)
function that implements read-access of external function; can be NULL;
*/
/* (In)
function that implements write-access of external function; can be NULL;
*/
/* (In)
function to check arguments of external function; can be NULL;
*/
ProBoolean dis_type_ctrl
/* (In)
PRO_B_TRUE to disable type checking for arguments. PRO_B_FALSE indicates that the arguments will be checked.
*/
ProAppData app_data
/* (In)
application data passed to the relation callbacks. Can be NULL.
*/
)
Returns
The function succeeded.
One or more inputs was invalid.
Function with the given name was already found.
Sample Code References
User Guide References
Isto foi útil?