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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

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

JB_87049
15-Moonstone

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

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.

ACCEPTED SOLUTION

Accepted Solutions
JB_87049
15-Moonstone
(To: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.

View solution in original post

3 REPLIES 3
remy
21-Topaz I
(To:JB_87049)

JB_87049
15-Moonstone
(To:remy)

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_87049
15-Moonstone
(To: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.

Announcements


Top Tags