TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: caddcop on March 05, 2012, 07:23:11 AM
-
I've been thinking about how we setup our network and this idea popped into my head.
If you load AutoCAD using a profile, it only loads the profile if it does not already exist.
So then I thought, could I create a routine that would run a lisp program on the initial load that does the following:
- Check for a file on the network
- If found, swich the users profile temporarily to some default profile.
- Once in that profile, delete the original profile
- One that profile was deleted, re-import the arg file for the deleted profile
- Switch the use to the newly recreated profile
- Delete the file that it found in step 1.
This would allow a network administrator to update any users profile as needed.
So, my question is, "Can a Lisp Routine delete a user profile?"
TIA
-
So, my question is, "Can a Lisp Routine delete a user profile?"
I haven't attempted to do so, but after a quick browse of the documentation, the PreferencesProfiles Object does have a DeleteProfile method, so I would be inclined to say yes.
Here is how to access the PreferencesProfiles Object:
-
that is a SUPER HANDY bit of info right there.
-
Just make sure it isn't the current profile.
-
that is a SUPER HANDY bit of info right there.
'twas written in haste, but glad it serves some purpose :-)
Thanks
-
Seems a little roundabout. Also kills any user changes made to profile-stored settings (not everything needs to be managed). Might be more productive to look into using LISP to manage those settings which need managing and leave the rest alone.
-
Wouldn't an enterprise cui(x) and setting certain system variables in the acaddoc.lsp accomplish the same thing?
-
Seems a little roundabout. Also kills any user changes made to profile-stored settings (not everything needs to be managed). Might be more productive to look into using LISP to manage those settings which need managing and leave the rest alone.
I've been using this for a couple years, and am very happy with how simple, and effective it has been for our group:
http://rkmcswain.blogspot.com/2007/02/setting-support-paths-via-lisp.html (http://rkmcswain.blogspot.com/2007/02/setting-support-paths-via-lisp.html)
Manage what needs managing, and leave the users to do what they do. Lemon Squeezy.
-
Mark kind of reminds me of Jeff Bridges...
-
Mark kind of reminds me of Jeff Bridges...
(http://www.theswamp.org/index.php?action=dlattach;topic=41120.0;attach=22038;image)
Wrong thread much? :-D
Edit - I bet he's a fan of Tron, now that you mention it though. LoL
-
Mark kind of reminds me of Jeff Bridges...
Wrong thread much? :-D
Based on email notification from this thread is close enough for me.