Category 3D drawings and annotations, Object ProAnnotationfeat

Function ProAnnotationfeatElementDelete


Description
Removes an annotation element from an annotation feature or data sharing feature. For annotation feature elements, the element will be deleted, but the annotation that it contains (if applicable) will remain in the model but not be a part of any feature. For data sharing features, this annotation element will no longer be propagated in this feature. The parent model of the data sharing feature must be in memory to allow this removal to succeed.
Licensing Requirement
TOOLKIT for 3D Drawings
Synopsis
#include <ProAnnotationFeat.h>
ProErrorProAnnotationfeatElementDelete(
ProSelection element
/* (In)
The annotation element. Include the assembly path if in the context of an assembly subcomponent.
*/
ProBoolean allow_fix_ui
/* (In)
PRO_B_TRUE to go to the Fix Model UI on regeneration failure, PRO_B_FALSE to undo changes on regeneration failure.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSThe argument was invalid.
PRO_TK_BAD_CONTEXTThe annotation element is readonly and cannot be deleted.
PRO_TK_UNATTACHED_FEATSDeletion was aborted due to regeneration failure.
PRO_TK_E_NOT_FOUNDThe data sharing feature's parent model is not in memory;
PRO_TK_NOT_VALIDThe element is owned by an independent feature.
PRO_TK_NO_PERMISSIONDeletion of set datum tag from datum target annotation feature is not allowed.

Manual References:

  1. Annotations: Annotation Features and Annotations: Redefining Annotation Features
  2. Annotations: Annotation Features and Annotations: Redefining Annotation Features
  3. Annotations: Annotation Features and Annotations: Accessing Reference and Driven Dimensions
  4. Annotations: Annotation Features and Annotations: Creating and Deleting Notes