AutoLisp Internationalization/Localization

Discussion in 'AutoCAD' started by Adwaith, Oct 1, 2004.

  1. Adwaith

    Adwaith Guest

    Can someone pls point me to guidelines and on-line resources
    to internationalize/localize AutoLisp programs (for AUtoCAD 2000
    and above). I've some AutoLisp programs that run fine with the
    English version but not with some others (like the German version
    of AutoCad).

    will it better to convert the programs to VB?

    thank you
     
    Adwaith, Oct 1, 2004
    #1
  2. Adwaith

    Tom Berger Guest

    Am 30 Sep 2004 23:08:33 -0700 schrieb Adwaith:
    it's simple: use a preceding underline "_" for each command call and
    command option., i.e. instead of writing

    (command "pline" p1 p2 p3 "cl")

    you should write

    (command "_pline" p1 p2 p3 "_cl")

    The same applies to ssget-options as well. That's all.

    Tom Berger
     
    Tom Berger, Oct 1, 2004
    #2
  3. Adwaith

    Paul Turvill Guest

    .... and if you expand the idea of "localization" to installations that may
    have had native commands undefined and/or redefined, you should consider
    using the "." as well, to ensure that the native commands are used where the
    programmer expects them to be:

    (command "_.pline" p1 p2 p3 "_cl")

    Note that the "." is appropriate to main commands only, and not to
    subcommands.
    ___
     
    Paul Turvill, Oct 1, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.