Category 3D drawings and annotations, Object ProAnnotationfeat

Function ProAnnotationfeatElementArrayDelete


Description
Removes a series of annotation elements 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>
ProErrorProAnnotationfeatElementArrayDelete(
ProSelection feature
/* (In)
The annotation feature. If the feature belongs to an assembly, component path must be specified.
*/
ProSelection* elements
/* (In)
ProArray of the annotation elements. 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_INVALID_ITEMFeature is invalid for this operation.
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.