Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
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?
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
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