Skip to main content
15-Moonstone
March 7, 2020
Solved

How to get the info of datum (name, ...)

  • March 7, 2020
  • 1 reply
  • 1674 views

I have an annotation with type PRO_SET_DATUM_TAG.

ProAnnnotation Annotation

Annotation.type == PRO_SET_DATUM_TAG
How can I retrieve the data of this annotation, like name, ...?

I'm using Toolkit wit PTC Creo Parametric 6.0.4.0

Any advice is much appreciated.

Best answer by JB_87049

After debugging and looking at the structure of the data type I have tried something different.
I have now applied ProSetdatumtagLabelGet(). This seems to do what I want.
Thank you very much for pointing me into the right direction.

1 reply

21-Topaz I
March 9, 2020
JB_8704915-MoonstoneAuthor
15-Moonstone
March 9, 2020

Thank you for your response. I haven't tried this one yet.
I'm scanning annotations with ProCombstateAnnotationsGet.

When the type of an annotation in the returned annotation array is PRO_SET_DATUM_TAG I would like to retrieve the name.

ksnip_20200309-174439.png

What I will try now is to use the calls ProSolidSetdatumtagVisit and ProSetdatumtagReferencesGet(). I fear however this is about the tags of real datum planes which is not necessarily the case when using 3D annotations.

 

JB_8704915-MoonstoneAuthorAnswer
15-Moonstone
March 10, 2020

After debugging and looking at the structure of the data type I have tried something different.
I have now applied ProSetdatumtagLabelGet(). This seems to do what I want.
Thank you very much for pointing me into the right direction.