Skip to main content
Jul 21, 2023 9:16 AM UTC
Solved

How to get display name of dimension using protoolkit?

Hello,

 

I would like to know what protoolkit function is needed to obtain the name of the dimension as it appears in the tree, "TEST_DIM_TAG" in this case.

creo_8_dim_refs.PNG

 

Calls to ProModelitemNameGet & ProDimensionSymbolGet both return "d0"

 

Thank you in advance.

Ben_CAnswer
Jul 21, 2023 3:03 PM UTC

The correct API calling sequence needed is:

ProAnnotationElementGet(p_handle, &element)

ProModelitemNameGet(element, dimTag)

 

Thanks for the help

8 replies

Jul 21, 2023 11:53 AM UTC

Is this a sketched dim, or how was this created?

Ben_CAuthor
Jul 21, 2023 12:44 PM UTC

I don't believe it is a sketched dimension, but I'm not sure how it was created as this file was passed to me.

File has been attached.

Jul 21, 2023 2:26 PM UTC

Demensions was shown. This is an annotation items.