Skip to main content
1-Visitor
August 28, 2017
Question

vb api centering quote text

  • August 28, 2017
  • 1 reply
  • 1979 views

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?

 

1 reply

16-Pearl
August 29, 2017

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

nfilotto1-VisitorAuthor
1-Visitor
August 29, 2017

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

 

You solution work only for notes not for dimensions.

16-Pearl
August 29, 2017

All the best Smiley LOL