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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

How to get display name of dimension using protoolkit?

Ben_C
12-Amethyst

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.

ACCEPTED SOLUTION

Accepted Solutions
Ben_C
12-Amethyst
(To:RPN)

The correct API calling sequence needed is:

ProAnnotationElementGet(p_handle, &element)

ProModelitemNameGet(element, dimTag)

 

Thanks for the help

View solution in original post

8 REPLIES 8
RPN
17-Peridot
17-Peridot
(To:Ben_C)

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

Ben_C
12-Amethyst
(To:RPN)

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.

YaroslavSin
17-Peridot
(To:Ben_C)

Demensions was shown. This is an annotation items.

RPN
17-Peridot
17-Peridot
(To:Ben_C)

It's an annotation  Element

Yaroslav was faster, and you may need Toolkit for 3D Drawings.

 

Ben_C
12-Amethyst
(To:RPN)

Okay thank you. Do you know which Protoolkit API call can be made to obtain the displayed name (TEST_DIM_TAG) in the model tree?

 

EDIT: I have solved this. The API calling sequence needed is:

ProAnnotationElementGet(p_handle, &element)

ProModelitemNameGet(element, dimTag)

 

Thank you for the assistance.

RPN
17-Peridot
17-Peridot
(To:Ben_C)

No for this 3D Drawings API I'm out. But did you checked ProDimensionTextEstring*()

 

But I never used this.

Ben_C
12-Amethyst
(To:RPN)

The correct API calling sequence needed is:

ProAnnotationElementGet(p_handle, &element)

ProModelitemNameGet(element, dimTag)

 

Thanks for the help

RPN
17-Peridot
17-Peridot
(To:Ben_C)

Congrat, you fixed it by yourself!

Announcements


Top Tags