Skip to main content
6-Contributor
July 12, 2026
Question

Is there a bug in the ProToolkit API function ProAnnotationByFeatureShow?

  • July 12, 2026
  • 5 replies
  • 79 views

According to the developer guide tkusetoc, this function supports passing a drawing view argument to display annotations only in the target view starting from Creo Parametric 2.0 M060. The official documentation states:

From Creo Parametric 2.0 M060 onward, you can specify the view in which the annotations for the selected feature and component must be displayed. For the functions ProAnnotationByFeatureShow() and ProAnnotationByComponentShow(), specify the view where the annotations must be displayed. If you pass the input argument view as NULL, the annotations are displayed in all the views.

However, during practical development, the function returns error code -9 (PRO_TK_NOT_IMPLEMENTED) whenever a valid non-NULL ProView handle is passed to the view parameter. When passing NULL to the view argument, all annotations are displayed across every drawing view as documented, which works as expected. My business requirement is to show feature annotations exclusively in a single specified drawing view only.

I am developing based on Creo 7.0.1.

 

5 replies

18-Opal
July 14, 2026

If you are under pressure you might consider running a mapkey that is modified to target your specific annotation feature and view as a work around. 

Unfortunately, just because it is in the documentation does not mean it works. 😕 (seen this many times over the years)

Dave
 

bsyy6-ContributorAuthor
6-Contributor
July 19, 2026

Macros are not very practical, especially for complex scenarios.

RPN
18-Opal
July 14, 2026

You select a feature, but later you try to display an axis, so the selected feature has an axis?

bsyy6-ContributorAuthor
6-Contributor
July 19, 2026

Yes, the feature definitely contains an axis.

FV_01
July 17, 2026

PRO_AXIS could be troublesome. try ProDrawingAxisToDtlaxis(...), just a guess