Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlDatumTargetCreate


Description
Creates new datum target with specified attachment and value strings
Licensing Requirement
TOOLKIT for 3D Drawings
Synopsis
#include <ProDatumTarget.h>
ProErrorProMdlDatumTargetCreate(
ProMdl p_owner_mdl
/* (In)
Owner model of the datum target. Cannot be NULL.
*/
ProDatumTargetType type
/* (In)
type of datum target
*/
ProAnnotationPlane* annot_plane
/* (In)
The annotation plane. For drawing, annotation plane should be NULL.
*/
ProDatumTargetAttach attach_sels
/* (In)
For single reference pass non-null selection for index 0 and NULL for index 1. Pass pair of non-null selections to get intersection of both.
*/
Pro3dPnt text_pnt
/* (In)
text point.
*/
ProDtlsyminst* p_datum_target
/* (Out)
newly created datum target.
*/
)
Returns
PRO_TK_NO_ERRORThe function completed successfully.
PRO_TK_BAD_CONTEXTSpecified selection reference is invalid.
PRO_TK_BAD_INPUTSThe input argument is invalid.
PRO_TK_GENERAL_ERRORdatum target could not be created.

Manual References:

  1. Annotations: Annotation Features and Annotations: Creating Datum Targets