Documentação da API > Features > Object ProUdf > Function ProUdfCreate
Function ProUdfCreate
Description
Creates an instance of a UDF in a solid
NOTE: From Creo3 onwards, features have backup reference information that allows their missing references to be visited, hence the additional reference information may be shown through ProFeatureAnnotationelemsVisit and similar calls. This new functionality can be disabled by setting config option backup_reference_information to no.
Replacement in Object TOOLKIT:
Synopsis
#include <ProUdf.h>
ProUdfCreate
(
ProSolid solid
/* (In)
The solid which will contain the UDF
*/
/* (In)
The data which described the placement and geometry of the UDF
*/
ProAsmcomppath* asm_reference
/* (In)
The assembly and member component path from the root assembly to the model on which the UDF will be created. NULL if the UDF is not placed in assembly mode, or if the UDF is placed in the top-level assembly.
*/
/* (In)
Array of placement options
*/
int n_options
/* (In)
The number of options
*/
/* (Out)
The resultant UDF group
*/
)
Returns
The function succeeded.
One or more input arguments was invalid.
Unable to place the new UDF instance.
The input model is Multi-CAD model.
The function does not have permission to operate on this model.
Sample Code References
User Guide References
Isto foi útil?