Documentation de l'API > 3D drawings and annotations > Object ProAnnotationfeat > Function ProAnnotationfeatElementDelete
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.
Replacement in Object TOOLKIT:
Licensing Requirement
Synopsis
ProAnnotationfeatElementDelete
(
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
The function succeeded.
Model is in read-only state.
The argument was invalid.
The annotation element is readonly and cannot be deleted.
Deletion was aborted due to regeneration failure.
The data sharing feature's parent model is not in memory;
The element is owned by an independent feature.
Deletion of set datum tag from datum target annotation feature is not allowed.
User Guide References
Est-ce que cela a été utile ?