Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hi, I encountered an issue when I tried to insert a note to our drawing. When we are using the same drawing for different project, I like to create a "stamp" like note on the drawing to indicate which project this drawing is used for.
With the following code, I can set font height but cannot change the font. Although notestyle.getfont confirmed the font was applied, but when it showed, it reverted back to default font "Arial".
Did I miss anything?
note = drawing.CreateDetailItem(noteInstructions)
noteStyle = (New CCpfcAnnotationTextStyle).Create()
noteStyle.SetHeight(FontHeight)
noteStyle.SetFont("ARIALN.TTF")
note.SetNoteTextStyle(noteStyle)
Console.WriteLine(noteStyle.GetFont)
note.Show()
Hi @SC_TK,
Thank you for your question.
Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.
Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.
Best Regards,
Vivek N
Community Moderation Team
