Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
AutoCAD_Client
Posts: 218
Registered: ‎02-16-2009
Message 1 of 5 (195 Views)

LISP REQUEST

195 Views, 4 Replies
12-02-2009 12:35 AM
HI,

We have about 20 drafters in our office. Sometimes a particular drafter makes a request for a function. Currently to make them aware of this I send an alert however, it means the entire office will get the alert (the acaddoc.lsp is coppied from the sever to local wokstations every morning) rather then

We have about 20 drafters in our office. Sometimes as CAD manager I need to fix/ modify/ add a particular autocad function relative to a single user or selected group of drafters pending the situation.

Rather then kick the drafter off their seat and disturb his/ her working time I would like to know if anybody knows of a lisp that uses the user logon name as a trigger to callup/ load a particular function.

As example we have project leaders who require functions better left off limits to standard drafters.

Thanks-
Distinguished Contributor
thatcadguy
Posts: 856
Registered: ‎04-27-2007
Message 2 of 5 (195 Views)

Re: LISP REQUEST

12-02-2009 04:55 AM in reply to: AutoCAD_Client
{code}
(if (= "jdoe" (getvar "LOGINNAME"))
(progn
; do stuff
)
)
{code}

Regards, Jake
___________________________
http://thatcadguy.blogspot.com/
*R.K. McSwain
Message 3 of 5 (195 Views)

Re: LISP REQUEST

12-02-2009 04:55 AM in reply to: AutoCAD_Client
wrote in message news:6297769@discussion.autodesk.com...
> I would like to know if anybody knows of a lisp that uses the user
> logon name as a trigger to callup/ load a particular function.

Do you mean something like this?

(if (member
(getvar "loginname")
(list "JoeR" "LisaL" "AndyF" "ClarkG")
)
(do_this_function)
)


--
R.K. McSwain
http://cadpanacea.com
*Expert Elite*
dgorsman
Posts: 5,054
Registered: ‎10-12-2006
Message 4 of 5 (195 Views)

Re: LISP REQUEST

12-02-2009 03:19 PM in reply to: AutoCAD_Client
(Right thread this time...)

As an alternative to the others, you could do it by adding a registry key to each the computers and checking for that key during the load process. Set the key to one of a preset range of values (long random keys if more security is required), with each key giving access to a certain level of loading e.g. "LOAD LEVEL A" for the main group, "LOAD LEVEL B" gives access to the base plus loads extended capabilities, "LOAD LEVEL C" gives access to everything including diagnostic tools.

Could be a little more useful if you have high turnover - keeping up to date on all the valid login IDs can be tasking.
----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


*Expert Elite*
scot-65
Posts: 2,124
Registered: ‎12-11-2003
Message 5 of 5 (195 Views)

Re: LISP REQUEST

12-02-2009 03:22 PM in reply to: AutoCAD_Client
I think Andrew Nao prepared this and shared
his program with this community.
I have not looked closely into this as it seems
this is what you are looking for...
See attachment.
Scot-65
Dyslexia is a permanent physical disability that cannot be seen.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community