Creating Datum Targets
Functions Introduced:
The function
ProMdlDatumTargetCreate() creates a new datum target. The input arguments are:
• p_owner_mdl—Specifies the model in which the datum target will be created.
• type—Specifies the type of target area using the enumerated data type ProDatumTargetType. The valid values are:
◦ PRO_DATUM_TARGET_NONE
◦ PRO_DATUM_TARGET_POINT
◦ PRO_DATUM_TARGET_CIRCLE
◦ PRO_DATUM_TARGET_RECTANGLE
• annot_plane—Specifies the annotation plane.
• attach_sels—Specifies the reference to which the datum target will be attached. To specify a single reference, pass ProSelection for index 0 and NULL for index 1.
For a pair of references, pass ProSelection for both indexes. In this case, the datum target is attached to the solid at the intersection point of the two references.
• text_pnt—Specifies the location of the text in the datum target.