How to know AutoCAD language
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
How to know AutoCAD language

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
Gustavo Guidi
Guest





Posted: Sun Dec 19, 2004 1:08 am    Post subject: How to know AutoCAD language Reply with quote

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

Back to top
Bill DeShawn
Guest





Posted: Sun Dec 19, 2004 3:36 am    Post subject: Re: How to know AutoCAD language Reply with quote

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...
Quote:

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

Back to top
Walt Engle
Guest





Posted: Sun Dec 19, 2004 4:14 am    Post subject: Re: How to know AutoCAD language Reply with quote

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

Back to top
Stephan Koster
Guest





Posted: Sun Dec 19, 2004 6:25 am    Post subject: Re: How to know AutoCAD language Reply with quote

Gustavo Guidi schrieb:
Quote:
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
Back to top
Bill DeShawn
Guest





Posted: Sun Dec 19, 2004 11:03 am    Post subject: Re: How to know AutoCAD language Reply with quote

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...
Quote:
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
Back to top
Jürg Menzi
Guest





Posted: Sun Dec 19, 2004 8:03 pm    Post subject: Re: How to know AutoCAD language Reply with quote

Hi Bill

Quote:
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
Back to top
ECCAD
Guest





Posted: Sun Dec 19, 2004 8:48 pm    Post subject: Re: How to know AutoCAD language Reply with quote

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
Back to top
Gustavo Guidi
Guest





Posted: Mon Dec 20, 2004 7:58 pm    Post subject: RE: How to know AutoCAD language Reply with quote

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...
Quote:

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

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB