Visual LISP, AutoLISP and General Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Windows is 32 or 64?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Abbas,
glad you got a solution
Henrique
Re: Windows is 32 or 64?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
What about many years known function:
(defun is64 () (vl-load-com) (> (strlen (vl-prin1-to-string (vlax-get-acad-object))) 40) )
P.S.: Version of Windows (i.e.. x86 or x64) and version of AutoCAD can be different. For example AutoCAD 2007 x86 can be installed and work on Windows x64 (XP/Vista/Win7). Version of arx-files dependent of AutoCAD version and not of Windows version.
Re: Windows is 32 or 64?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Alexander.Rivilis wrote:
What about many years known function:
...
Alexander. thank you, "many years known function"
but I did not know ...
Henrique
Re: Windows is 32 or 64?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: Windows is 32 or 64?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Alexander.Rivilis wrote:
This is because you do not use Search.
...
not correct, I often use "search" is a very good tool and is my first choice... ![]()
Henrique
Re: Windows is 32 or 64?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
what is you opinion about reading from registry?
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro
Re: Windows is 32 or 64?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Inspecting (getvar "PLATFORM") will not work, as you have found. You must use (getenv "PROCESSOR_ARCHITECTURE") for inspecting the architecture of the running AutoCAD. See ISX64.LSP here:
http://www.manusoft.com/software/freebies/lisp.htm
Owen Wengerd
ManuSoft
Re: Windows is 32 or 64?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
aqdam1978 wrote:
what is you opinion about reading from registry?
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro
l\Session Manager\Environment\PROCESSOR_ARCHITECTURE
PROCESSOR_ARCHITECTURE allow check Windows architecture (x86/x64) but not a AutoCAD architecture. As I wrote above this is not the same thing.





