LISP: How do you determin if Bricscad version is Classic or Pro?
There are two version related variables that I know of:
ACADVER and _VERNUM
Both, it appears, do not contain info to tell the Classic and Pro versions apart.
Is there a way for a lisp-program to do this?
Comments
-
Hi Roy,
I like this code from Daniel: (= 2 (boole 1 (getvar "licflags") 2))
0 -
Not added... The code for Pro.
0 -
Hi Vaidas,
Interesting. Can you elaborate and complete that code a bit? What do I need to check in the LICFLAGS variable to ascertain if it is PRO or Classic?
- rakesh.rao@4d-technologies.com
- www.4d-technologies.com / www.coordsys.com
- Blog:EN: http://rakeshrao.typepad.com
- Blog: ES: http://kiranabhat.typepad.com0 -
Hi Rakesh, just check it. If equals to 2, that's Pro. Not remember for Classic, but maybe 1.
It was not needed when BRX's loading on Classic was leading by error only, but for now Classic adds an error message (as I remember, this popup window on error was added a year ago).
0 -
Thank you Vaidas Guogis.
LICFLAGS is a bit-wise integer:
1: VBA is licensed
2: Acis editing is licencedLICFLAGS is 3 for the Pro version and should be 0 for the Classic version.
0 -
VBA and Acis belongs to Pro, so it's possible to check for a bit 0 I guess. Anyway - thanks to Daniel Marcotte, that's his code
0