samifox Posted June 21, 2016 Posted June 21, 2016 hi, i dont understand what ACAD operating system environmental variable means? it is windows related variable? if you read the documantation , notice that the variable is not saved which means is a windows variable? and what is the different between (getvar "acadprefix") to (getenv "acad")? TX Quote
BIGAL Posted June 21, 2016 Posted June 21, 2016 (getenv "acad")? I agree ???? is this what your after (vlax-product-key) Quote
samifox Posted June 21, 2016 Author Posted June 21, 2016 (getenv "acad")? I agree ???? is this what your after (vlax-product-key) IM LOST! whay product key has to do with this veriable? Quote
rkmcswain Posted June 21, 2016 Posted June 21, 2016 and what is the different between (getvar "acadprefix") to (getenv "acad")? ACADPREFIX is read-only. It only reports the support file search path. You can't do a (setvar "ACADPREFIX" "......") (getenv "ACAD") also reports the same info, but you can also use (setenv "ACAD" ".....") to change it. Quote
samifox Posted June 21, 2016 Author Posted June 21, 2016 ACADPREFIX is read-only. It only reports the support file search path. You can't do a (setvar "ACADPREFIX" "......")(getenv "ACAD") also reports the same info, but you can also use (setenv "ACAD" ".....") to change it. what is the concept of environment variable? Quote
tombu Posted June 21, 2016 Posted June 21, 2016 AUTODESK KNOWLEDGE NETWORK About System and Environment Variables (AutoLISP) https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-AutoLISP/files/GUID-529819FD-9E9C-4789-BA18-B981BA32DD23-htm.html Quote
rkmcswain Posted June 21, 2016 Posted June 21, 2016 what is the concept of environment variable? See also: AutoCAD Environment Variables Quick Guide, specifically the header paragraph. Quote
BIGAL Posted June 22, 2016 Posted June 22, 2016 My (getenv "acad") gave me nil maybe its another Windows 10 bug, or it was my typing and drinking scotch at the same time. Quote
rkmcswain Posted June 22, 2016 Posted June 22, 2016 Environment variables are case sensitive. Try (getenv "ACAD") Quote
tombu Posted June 22, 2016 Posted June 22, 2016 My (getenv "acad") gave me nil maybe its another Windows 10 bug, or it was my typing and drinking scotch at the same time. Text case is important with environmental variables. Try it again with (getenv "ACAD") samifox had it wrong in his first post as well. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.