Skip to main content
1-Visitor
January 22, 2016
Solved

Problems with bringing in the degree symbol

  • January 22, 2016
  • 3 replies
  • 3459 views

We're having a difficult time trying to load our title blocks from a text file into annotation via the macro scripts (open_infile and read_file  ) Whenever we have the degree symbol in one of the lines it always comes out as    ¯   and even if we change the font we get the same conversion.  Is there any way around this?

    Best answer by cpalmer1

    I found the answer. If you encode the text file with UTF-8 it will bring it in just like it it in the text file. Thank you two for assisting.

    3 replies

    17-Peridot
    January 25, 2016

    I haven't dealt with this directly but if you are using your text editor's degree symbol, it is different in Creo annotation.

    You should be able to get the degree symbol in Creo annotation by providing a control code in your text file.  Not that I am up on the syntax at the moment.

    24-Ruby III
    January 25, 2016

    Hi,

    please upload file containing note and Creo drawing (example data). Use How to attach file when you Reply to a discussion. procedure

    MH

    cpalmer11-VisitorAuthor
    1-Visitor
    January 25, 2016

    It's nothing too special, the file with this kind of note would read something like...

    4" X 4" X 2" PLATE WITH A 0.125 X 45° CHAMFER ALONG ALL EDGES. 

    Generally it will come out as '...45A~ ...'    when it get brought in from the READ_FILE cmd, or if we use <degree> (like we use for drafting) it will come out as '...45<degree> ...'

    cpalmer11-VisitorAuthorAnswer
    1-Visitor
    January 25, 2016

    I found the answer. If you encode the text file with UTF-8 it will bring it in just like it it in the text file. Thank you two for assisting.

    Mahesh_Sharma
    22-Sapphire I
    January 26, 2016

    Hi Chris,

    You may mark your reply to post as correct answer.

    cpalmer11-VisitorAuthor
    1-Visitor
    January 26, 2016

    Yeah, forgot that part. Thanks for the reminder