Category 3D drawings and annotations, Object ProAnnotation

Function ProAnnotationByFeatureShow


Description
Show model annotations of given type for selected feature. Note: If an annotation is dependent on another annotation for its display in a drawing, then the application must first show the parent annotation on the drawing, followed by showing the dependent annotation. For instance, if a gtol is placed on a dimension, then first call ProAnnotationByViewShow for PRO_DIMENSION type and then call ProAnnotationByViewShow for PRO_GTOL. If the application does not show the dimension before the specified gtol, then the gtol will not be displayed on the drawing.
Synopsis
#include <ProAnnotation.h>
ProErrorProAnnotationByFeatureShow(
ProDrawing draw
/* (In)
Drawing to show annotations on.
*/
ProSelection sel_feat
/* (In)
Feature for which annotations need to be shown in drawing.
*/
ProView view
/* (In)
For selected feature show valid annotations in given input view. This is same as doing "ShowByFeatureAndView". If view is NULL, the behavior is the same as for ProAnnotationByFeatureShow.If you pass the input argument view as NULL, the annotations are displayed in any possible view.
*/
ProType annot_type_to_show
/* (In)
Db_type of annotations to be shown. The supported ProType (of annotations) are, PRO_DIMENSION PRO_REF_DIMENSION PRO_NOTE PRO_GTOL PRO_SURF_FIN PRO_AXIS PRO_SET_DATUM_TAG PRO_SYMBOL_INSTANCE PRO_DATUM_TARGET
*/
)
Returns
PRO_TK_NO_ERRORThe function could successfully show annotations of given type on the selected target.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_NOT_DISPLAYEDDrawing in which annotation will be shown is not displayed in the current session.
PRO_TK_INVALID_TYPEInput annotation type not supported.

Manual References:

  1. Annotations: Annotation Features and Annotations: Access to Annotations
  2. Annotations: Annotation Features and Annotations: Access to Annotations