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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! 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

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.

All the best Smiley LOL

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags