API 文档 > Features > Object ProUdf > Function ProUdfReplace
Function ProUdfReplace
Description
Replaces a UDF with a similar UDF (the two UDF's must use the same reference types).
Synopsis
#include <ProUdf.h>
ProUdfReplace
(
/* (In)
The UDF.
*/
ProUdfdata new_udf_data
/* (In)
UDF data describing the replacement UDF. The dimension display, scale, name, instance name and path can be set in this structure.
*/
ProGroup* replacement_udf
/* (Out)
The handle to the new replacement UDF.
*/
)
Returns
The function succeeded.
Model is in read-only state.
One or more input arguments was invalid.
Cannot replace the current UDF with the new version because the reference scheme does not match.
The argument new_udf_data does not contain the name or path.
Cannot access the new UDF .gph file at the provided path.
这对您有帮助吗?