Category 3D drawings and annotations, Object ProSurffinish

Function ProSurffinishCreate


Description
Create a surface finish in the specified model. ProAnnotationShow() should be called after creating the surface finish in order for the surface finish to be displayed.
Licensing Requirement
TOOLKIT for 3D Drawings
Synopsis
#include <ProSurfFinish.h>
ProErrorProSurffinishCreate(
ProMdl mdl
/* (In)
The model handle.
*/
ProDtlsyminstdata data
/* (In)
The symbol instance data. This data must contain:
  • Zero or more leaders pointing to model surfaces, or, a model surface used for the attachment point.
  • An annotation plane (for solid owned surface finishes).
  • Optionally, variant texts for the surface finish.
Consult the Creo Parametric TOOLKIT user's guide for information about how to find the standard surface finish symbols in order to use them during creation.
*/
ProSurfFinish* item
/* (Out)
The created surface finish.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created the surface finish.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
PRO_TK_INVALID_TYPEInvalid type of leader or attachment for creation of a surface finish.
PRO_TK_E_FOUNDLeader or attachment to surface which already has a surface finish.
PRO_TK_GENERAL_ERRORCan't create the surface finish.
PRO_TK_NO_LICENSELicense check failure

Manual References:

  1. Annotations: Annotation Features and Annotations: Surface Finish Annotations
  2. Annotations: Annotation Features and Annotations: Surface Finish Annotations