Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! 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