Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
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?
Solved! Go to Solution.
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.
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.
Hi,
please upload file containing note and Creo drawing (example data). Use How to attach file when you Reply to a discussion. procedure
MH
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> ...'
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.
Hi Chris,
You may mark your reply to post as correct answer.
Yeah, forgot that part. Thanks for the reminder