Category 3D drawings and annotations, Object ProAnnotationelem

Function ProAnnotationelemAnnotationSet


Description
Sets the annotation contained in an annotation element. Note:If the annotation element already had an annotation assigned to it, that annotation will be detached from the element and owned at the model level.
Licensing Requirement
TOOLKIT for 3D Drawings
Synopsis
#include <ProAnnotationElem.h>
ProErrorProAnnotationelemAnnotationSet(
ProSelection element
/* (In)
The annotation element. If the annotation element belongs to an assembly, component path must be specified.
*/
ProAnnotation* annotation
/* (In)
The annotation. Pass NULL to set the element to be general.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more inputs was invalid.
PRO_TK_NO_CHANGEThe annotation is already contained in this element.
PRO_TK_UNATTACHED_FEATSModification was aborted due to regeneration failure.
PRO_TK_INVALID_TYPEYou cannot assign this type of annotation to the annotation element
PRO_TK_CANT_MODIFYdatum target annotation element or annotation are not permitted for this function

Manual References:

  1. Annotations: Annotation Features and Annotations: Modification of Annotation Elements
  2. Annotations: Annotation Features and Annotations: Modification of Annotation Elements
  3. Annotations: Annotation Features and Annotations: Accessing Ordinate and Baseline Dimensions