Results 1 to 5 of 5

Thread: Variable in Options Dialog

  1. #1
    Member
    Join Date
    2007-01
    Posts
    7
    Login to Give a bone
    0

    Default Variable in Options Dialog

    Is it possible to use the Autocad variable "Loginname" in the options dialog box? I want to set the "Main Customization File" path to something like "Z:\{loginname}". this will set the CUIX file for whoever logs on to a machine automatically. I hope. Is there maybe a better way to accomplish this? Its a major nuisance to have to configure Autocad every time a user logs onto a new machine for the first time.

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Variable in Options Dialog

    I don't understand why you do not simply standardize the name as "Z:\Main.cuix" or "Z:\Custom.cuix"... Perhaps this will work (untested), as part of your Acad.lsp?

    Code:
    (vl-load-com)
    
    ((lambda (user / cuix)
       (if (setq cuix (findfile (strcat "Z:\\" user ".cuix")))
         (vla-put-menufile
           (vla-get-files
             (vla-get-preferences (vlax-get-acad-object))
           )
           cuix
         )
       )
     )
      (getvar 'loginname)
    )
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  3. #3
    Member
    Join Date
    2007-01
    Posts
    7
    Login to Give a bone
    0

    Default Re: Variable in Options Dialog

    The Enterprise CUIX is the same through out. but each user has a CUIX file named as their network user name. This prevents having multiple files of the same name but different content. It would not be possible to distinguish one user's CUIX file from the other. i am not familiar with the "vla" commands. can this be done with just the basic LISP commands? I'm very limited on LISP programing so it may be better I just leave this one alone. )

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,100
    Login to Give a bone
    0

    Default Re: Variable in Options Dialog

    Does the Z: drive in your example show the same results to each user? If they show differently, then user a would be using a different file than user b which would ease the use of a common name for the users' cuix file.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  5. #5
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Variable in Options Dialog

    Quote Originally Posted by mpeace View Post
    i am not familiar with the "vla" commands. can this be done with just the basic LISP commands? I'm very limited on LISP programing so it may be better I just leave this one alone. )
    Did you try adding the code I posted to your Acad.lsp file?

    Quote Originally Posted by Opie View Post
    Does the Z: drive in your example show the same results to each user? If they show differently, then user a would be using a different file than user b which would ease the use of a common name for the users' cuix file.
    This is similar to our environment... Where the user's 'custom' CUIx is stored on their personal network space (not accessible to even me), but each uses the same FileName.cuix file and it's mapped into our setup via Acad.lsp file (where I manage the Profile(s) from).

    More information is needed, as it sounds a bit like the OP is storing everyone's custom CUIx in one network location (just a guess).
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. Options Dialog Box
    By Wish List System in forum AutoCAD Wish List
    Replies: 5
    Last Post: 2014-08-08, 02:08 PM
  2. Customizing the options dialog... need to do something tricky
    By atlbirds345447 in forum CAD Management - General
    Replies: 6
    Last Post: 2013-01-18, 09:52 PM
  3. Add the auto-complete to the System Variable Dialog, (sysvdlg)
    By Wish List System in forum AutoCAD Wish List
    Replies: 2
    Last Post: 2012-06-23, 02:05 PM
  4. Color dialog - highlight box system variable?
    By Coolmo in forum AutoCAD General
    Replies: 1
    Last Post: 2006-03-22, 12:59 AM
  5. Options Dialog Box
    By eric.fox in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2004-09-09, 05:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •