API 文件集 > Creo Parametric fundamentals > Object ProMdl > Function ProMdlDatumTargetCreate
Function ProMdlDatumTargetCreate
Description
Creates new datum target with specified attachment and value strings
Licensing Requirement
Synopsis
#include <ProDatumTarget.h>
ProMdlDatumTargetCreate
(
ProMdl p_owner_mdl
/* (In)
Owner model of the datum target. Cannot be NULL.
*/
/* (In)
type of datum target
*/
ProAnnotationPlane* annot_plane
/* (In)
The annotation plane. For drawing, annotation plane should be NULL.
*/
/* (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
The function completed successfully.
Specified selection reference is invalid.
The input argument is invalid.
datum target could not be created.
User Guide References
這是否有幫助?