cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get parameters from Standalone annotations using toolkit API's?

Highlighted

How to get parameters from Standalone annotations using toolkit API's?

Hi All,

 

If we create annotations using annotation features we will get the annotation element and from the annotation element we will get annotation parameters.

In my case, I have created a Standalone annotation. How will I get annotations parameters?

5 REPLIES 5
Highlighted

Re: How to get parameters from Standalone annotations using toolkit API's?

there is conflicting wording in your topic.


In the title, Stand Alone Annotation refers to annotations created from Annotate > Dimensions for example. It creates a node at the top of the model tree that aggregates all Stand Alone annotations.

 

Whereas in the body of your comment, Annotation Elements created by clicking Annotate > Annotation Feature > Dimensions for example. It creates an Annotation Feature in the model tree just at the Insert Here junction and enables to aggregate Annotation Elements at the users will.

 

They may look similar but on the binary they are different. A series or articles gives a comprehensive understanding of theses concepts: https://www.ptc.com/en/support/article?n=CS293596

 

So, given that, which one do you need to access with Creo Toolkit? 

Highlighted

Re: How to get parameters from Standalone annotations using toolkit API's?

Hi,

 

Thank you for feedback.

I need to access parameters of standalone annotations that are created using Annotate > Dimensions.

Highlighted

Re: How to get parameters from Standalone annotations using toolkit API's?

Highlighted

Re: How to get parameters from Standalone annotations using toolkit API's?

Hi,

 

Thank you for feedback.

We don't get any annotation elements from the annotation.

Is there any other way to get parameters of standalone annotation?

 

Highlighted

Re: How to get parameters from Standalone annotations using toolkit API's?

Hi,

I have encountered the same problem as you.
The trick using ProAnnotationElementGet and then ProParameterVisit works for driving dimensions.
For driven (standalone) dimensions it doesn't work.
You can get the parameters you want using different function calls like e.g. ProDimensionValuedisplayGet, ProDimensionTollabelGet, ...

Announcements