CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Drafting

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 03-07-2007, 03:15 AM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
Onespace Drafting 2007 macro encoding

Hello, new version means new question.

On a new ME10 2007 version I use a old compiled macro that runs correctly on ME10 2006 version.

When launch the macro a message is shown:

Enter ENCODING or 'file name'

I tried to digit ENCODING or filename but nothing happend.

Any suggestion? Regards.
Reply With Quote
  #2  
Old 03-07-2007, 03:58 PM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
Re: Onespace Drafting 2007 macro encoding

I don't have exprience with this, but I searched the 2007 Readme file (C:\Program Files\CoCreate\OSD Drafting 2007\readme.htm) and found there is a new command DEFINE_ENCODING. Here is the info from Help, Program Ref Guide which may help.
Quote:
DEFINE_ENCODING pseudo command defines in which encoding is the current macro file encoded.

---->(DEFINE_ENCODING)----|encoding|---->

Description

If the macro file contains DEFINE_ENCODING directive then it is always read in specified encoding. Otherwise it's treated as an old macro file and its encoding is locale dependent:
  • SJIS for japanese,
  • BIG5 for traditional chinese,
  • BGB2312 for simplified chinese, and
  • ROMAN8 for all the rest.
If text macro files contains Unicode (UTF-8 or UTF-16) BOM (Byte Order Marker), supported by the text editors on Windows, it's read as Unicode.

When to use

It is advised to use this command in all macro files to explicitely define the encoding.
Note

ROMAN8 and SJIS are assumed encodings for macro files that don't use this directive.
__________________
John Scheffel
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:10 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.