Sorry for the confusion.
I have an Excel VBA application that interacts with Autocad.
This application is intended to be used in different Autocad environments (English/French/German...)
When running the VBA code, I wanted to get the language of the open Autocad instance on the user's machine.
This information will be used in "sendcommand" instruction to this instance.
For example:
- The Purge command requires language-dependent arguments :
AcadDoc.SendCommand "_-Purge" & vbCr & "All" & vbCr & "*" & vbCr & "Y" & vbCr For "English" Autocad
AcadDoc.SendCommand "_-Purge" & vbCr & "TO" & vbCr & "*" & vbCr & "O" & vbCr For "French" Autocad
--> Calling GetVariable("Locale") for an active document will do the work.
I was just wondering why there was no such property directly for the application object, before opening a document...
Thanks.