Results 1 to 8 of 8

Thread: How to know AutoCAD language

  1. #1
    Gustavo Guidi Guest

    How to know AutoCAD language

    Is it there any variable to know the language of the AutoCAD in use
    (English, Spanish. etc.) and where can I get the name of the default block
    name for each language for OBLIQUE "CLOSED" to set DIMBLK in order to let a
    routine go ahead and not stop telling that the block (becouse in the
    language in use is different) doesn't exist

    Thanks

    --
    Gustavo Guidi
    g_e_guidi@yahoo.com.ar

  2. #2
    Bill DeShawn Guest
    That's a great idea! Set a variable in AutoCAD to instantly know the
    language of AutoLISP! (setvar "getbrains" 1)
    LOL!

    Oh, I continue reading, and I see that's not what you meant. Oh, well,
    I'll keep it in for laughs.

    OK. Actually, you can look at the system variable for the main dictionary.
    (getvar "dctmain"). US English returns "enu". I am not familiar with other
    names of international AutoCAD dictionaries by default. However, you being
    from Argentina, should have to problem figuring that one out. Merry
    Christmas and keep smiling. :)

    Que no deje de pensar en Cristo después de la Navidad.
    --
    Bill DeShawn
    bdeshawn@nospamsterling.net
    http://my.sterling.net~bdeshawn

    "Gustavo Guidi" <gguidi@powernet.net.ar> wrote in message
    news:41c48de1_3@newsprd01...
    Is it there any variable to know the language of the AutoCAD in use
    (English, Spanish. etc.) and where can I get the name of the default block
    name for each language for OBLIQUE "CLOSED" to set DIMBLK in order to let
    a
    routine go ahead and not stop telling that the block (becouse in the
    language in use is different) doesn't exist

    Thanks

    --
    Gustavo Guidi
    g_e_guidi@yahoo.com.ar

  3. #3
    Walt Engle Guest
    My laugh of the day - "(setvar "getbrains" 1)". Wonderful; I look forward to
    another.

  4. #4
    Stephan Koster Guest
    Gustavo Guidi schrieb:
    Is it there any variable to know the language of the AutoCAD in use
    (English, Spanish. etc.) and where can I get the name of the default block
    name for each language for OBLIQUE "CLOSED" to set DIMBLK in order to let a
    routine go ahead and not stop telling that the block (becouse in the
    language in use is different) doesn't exist
    Gustavo,

    you don't need to know the language. If you add an underscore
    to the english blockname it should work in all localizations:
    _oblique
    _closed
    and so on.

    Stephan

  5. #5
    Bill DeShawn Guest
    Absolutely correct.

    --
    Bill DeShawn
    bdeshawn@nospamsterling.net
    http://my.sterling.net~bdeshawn

    "Stephan Koster" <Stephan.Koster@[NoSpam-RemoveThis]web.de> wrote in message
    news:41c4d87a$1_2@newsprd01...
    Gustavo Guidi schrieb:
    Is it there any variable to know the language of the AutoCAD in use
    (English, Spanish. etc.) and where can I get the name of the default
    block
    name for each language for OBLIQUE "CLOSED" to set DIMBLK in order to
    let a
    routine go ahead and not stop telling that the block (becouse in the
    language in use is different) doesn't exist

    Gustavo,

    you don't need to know the language. If you add an underscore
    to the english blockname it should work in all localizations:
    _oblique
    _closed
    and so on.

    Stephan

  6. #6
    Jürg Menzi Guest
    Hi Bill

    OK. Actually, you can look at the system variable for the main dictionary.
    (getvar "dctmain"). US English returns "enu". I am not familiar with other
    names of international AutoCAD dictionaries by default.
    'dctmain' is a user setting in options and not the real AutoCAD language. I
    can set my german AutoCAD to every installed dictionary of the OS. To get the
    real AutoCAD language you've to use:
    Code:
    ;
    ; -- Function MeGetAcadLanguage 
    ; Returns the *program* language of the current AutoCAD version.
    ; Copyright:
    ;   ©2004 MENZI ENGINEERING GmbH, Switzerland
    ; Arguments [Typ]:
    ;   None
    ; Return [Typ]:
    ;   > Language ("English", "Deutsch", "Français", etc.) [STR]
    ; Notes:
    ;   None
    ;   
    (defun MeGetAcadLanguage ( / AcaKey AcaVer AppKey TmpKey)
     (setq AcaVer (substr (getvar "ACADVER") 1 4)
           AppKey (strcat"\\Software\\Autodesk\\AutoCAD\\R" AcaVer)
           TmpKey (strcat "HKEY_LOCAL_MACHINE" AppKey)
           AcaKey (if (> (atof AcaVer) 15.0)
                   (vl-registry-read (strcat "HKEY_CURRENT_USER" AppKey) "CurVer")
                   (vl-registry-read TmpKey "CurVer")
                  )
     )
     (vl-registry-read (strcat TmpKey "\\" AcaKey) "Language")
    )
    Cheers
    --
    Juerg Menzi
    MENZI ENGINEERING GmbH, Switzerland
    http://www.menziengineering.ch

  7. #7
    ECCAD Guest
    Gustavo,
    For AutoLisp code,, use the (underscore) for International.
    Examples:
    _insert
    _rotate
    _copy
    etc.
    To 'see' what the local language equivalent is.
    Do:
    (command "_insert") ...... complete the command and then..
    Hit Enter Key. This will repeat the 'last' command, and show
    you at the Command: prompt, the 'equivalent' command and
    options..

    Bob

  8. #8
    Gustavo Guidi Guest
    I will prove the underscore.

    I knew it for commands but supose that for blocks names doesn't work

    Thanks

    Gustavo Guidi <gguidi@powernet.net.ar> escribió en el mensaje de noticias
    41c48de1_3@newsprd01...
    Is it there any variable to know the language of the AutoCAD in use
    (English, Spanish. etc.) and where can I get the name of the default block
    name for each language for OBLIQUE "CLOSED" to set DIMBLK in order to let
    a
    routine go ahead and not stop telling that the block (becouse in the
    language in use is different) doesn't exist

    Thanks

    --
    Gustavo Guidi
    g_e_guidi@yahoo.com.ar

Similar Threads

  1. How to master SKILL language ?
    By eng_semi in forum Cadence
    Replies: 2
    Last Post: 09-03-2005, 01:10 AM
  2. Creating p-cells using SKILL language
    By eng_semi in forum Cadence
    Replies: 1
    Last Post: 08-31-2005, 01:10 PM
  3. Wildfire 2 ...language option
    By geforge_f in forum Pro/Engineer
    Replies: 8
    Last Post: 05-09-2005, 03:31 PM
  4. Replies: 4
    Last Post: 02-16-2005, 01:35 AM
  5. How to Change a language???
    By tetragon in forum SolidWorks
    Replies: 0
    Last Post: 02-12-2005, 02:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum