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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

vb api centering quote text

nfilotto
5-Regular Member

vb api centering quote text

Hi, can i center the quote text in drawing with vbapi in Creo 4?

At the moment i can select the quotes but i cant find any method for centering the text.

 

If i do it manually, i select the quotes then click on the ribbon on Visualization and under configuration i change it first in center on guide and after on linear.

 

Can i do this with the api?

 

3 REPLIES 3
PARTHIBAN_K
15-Moonstone
(To:nfilotto)

Text note can be centered using IpfcDetailNoteInstruction.Horizontal property

 

IpfcDetailNoteInstruction DNoteInstruction

 

Get required Notes in DNoteInstruction & Set the Horizontal value to Center

 

DNoteInstruction.Horizontal = EpfcHorizontalJustification.EpfcH_JUSTIFY_CENTER

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
nfilotto
5-Regular Member
(To:PARTHIBAN_K)

I've tried to cast my dimension modelitem to detailitem but is not possible.

 

You solution work only for notes not for dimensions.

PARTHIBAN_K
15-Moonstone
(To:nfilotto)

All the best Smiley LOL

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
Top Tags