API Documentation > 3D drawings and annotations > Object ProAnnotation > Function ProAnnotationByComponentShow
Function ProAnnotationByComponentShow
Description
Show model annotations of given type for selected component. 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.
Replacement in Object TOOLKIT:
Synopsis
#include <ProAnnotation.h>
ProAnnotationByComponentShow
(
/* (In)
Drawing to show annotations on.
*/
ProSelection sel_component
/* (In)
Component for which annotations need to be shown in drawing.
*/
ProView view
/* (In)
For selected component show valid annotations in given input view. This is same as doing "ShowByComponentAndView" If view is NULL, the behavior is the same as for ProAnnotationByComponentShow. This argument is reserved for future use. Pass NULL in Creo2 M050 release
*/
ProType annot_type_to_show
/* (In)
*/
)
Returns
The function could successfully show annotations of given type on the selected target.
One or more of the input arguments are invalid.
Drawing in which annotation will be shown is not displayed in the current session.
Input annotation type not supported.
User Guide References
Was this helpful?