Skip to main content
6-Contributor
Jul 12, 2026 2:16 PM UTC
Question

Is there a bug in the ProToolkit API function ProAnnotationByFeatureShow?

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.

 

6 replies

18-Opal
Jul 14, 2026 10:58 AM UTC

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
 

Translate
bsyy6-ContributorAuthor
6-Contributor
Jul 19, 2026 7:53 AM UTC

Macros are not very practical, especially for complex scenarios.

Translate
RPN
18-Opal
Jul 14, 2026 12:22 PM UTC

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

Translate
bsyy6-ContributorAuthor
6-Contributor
Jul 19, 2026 7:54 AM UTC

Yes, the feature definitely contains an axis.

Translate
FV_01
Jul 17, 2026 8:07 PM UTC

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

Translate
bsyy6-ContributorAuthor
6-Contributor
Aug 16, 2026 2:11 PM UTC

It dosent work also

Translate