Code Red > AutoLISP (Vanilla / Visual)

Anyway to check AutodeskID with lisp

(1/4) > >>

kruuger:
Hello,
Is there any way to check AutodeskID for logged in user?
We can check if user is on serial or subscription with (getvar "_pkser").
But if subscription, than what login?
Thanks

d2010:
You can check. current username, windows7 or 8.
(Getenv "USERNAME") inside autolisp..

For better, and you must be ensure, what you need , then you check. many variabile-names

--- Code: ---"USERDOMAIN=yuri-PC121hdd25
USERNAME=yuri
USERPROFILE=D:\Users\yuri
LOCALAPPDATA=D:\Users\yuri\AppData\Local
LOGONSERVER=\\YURI-PC121HDD25
NUMBER_OF_PROCESSORS=4

--- End code ---
Eg.1 you (and (getenv "USERNAME")  (getenv "LOGONSERVER"))

Lonnie:
in 2025 there is an
onlineusername

Displays the Autodesk account name of the user whose currently logged into this product.

If no one is currently logged in, the value returned is an empty string.

kruuger:

--- Quote from: Lonnie on April 02, 2024, 01:52:43 PM ---in 2025 there is an
onlineusername

Displays the Autodesk account name of the user whose currently logged into this product.

If no one is currently logged in, the value returned is an empty string.

--- End quote ---
probably that's what i need but for 2024 and older :(

kruuger:

--- Quote from: d2010 on April 02, 2024, 12:37:43 PM ---You can check. current username, windows7 or 8.
(Getenv "USERNAME") inside autolisp..

For better, and you must be ensure, what you need , then you check. many variabile-names

--- Code: ---"USERDOMAIN=yuri-PC121hdd25
USERNAME=yuri
USERPROFILE=D:\Users\yuri
LOCALAPPDATA=D:\Users\yuri\AppData\Local
LOGONSERVER=\\YURI-PC121HDD25
NUMBER_OF_PROCESSORS=4

--- End code ---
Eg.1 you (and (getenv "USERNAME")  (getenv "LOGONSERVER"))

--- End quote ---
yes, but i think none of these older variable return autodeskID.

Navigation

[0] Message Index

[#] Next page

Go to full version