Skip to main content
Jan 22, 2016 10:44 PM UTC
Solved

Problems with bringing in the degree symbol

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?

    cpalmer1Answer
    Jan 25, 2016 4:12 PM UTC

    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.

    6 replies

    Jan 25, 2016 5:08 AM UTC

    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.

    Jan 25, 2016 7:05 AM UTC

    Hi,

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

    MH

    cpalmer1Author
    Jan 25, 2016 2:17 PM UTC

    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> ...'

    cpalmer1AuthorAnswer
    Jan 25, 2016 4:12 PM UTC

    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.

    Jan 26, 2016 7:13 PM UTC

    Hi Chris,

    You may mark your reply to post as correct answer.

    cpalmer1Author
    Jan 26, 2016 7:22 PM UTC

    Yeah, forgot that part. Thanks for the reminder