change loginname...

Discussion in 'AutoCAD' started by aaron weissner, Jan 27, 2004.

  1. how do you change the loginname for autocad 2k4...

    (getvar "loginname")
     
    aaron weissner, Jan 27, 2004
    #1
  2. aaron weissner

    ECCAD Guest

    Aaron,
    "loginname" is 'read-only'
    Bob
     
    ECCAD, Jan 27, 2004
    #2
  3. there is no way around this using lisp or something... I want to start
    using the plot stamp in acad but I do not want the userame to appear as it
    currently does...
     
    aaron weissner, Jan 27, 2004
    #3
  4. How do you want the username to appear?

    Here's what I do:

    (defun name ( / namlist)
    (setq namlist '(("ALLEN" "ASJ")
    ("ANJIE" "AJB")
    ("AUDRA" "AMD")
    ("BRENT" "BAP")
    ("BRUCE" "CBN")
    ("CELESTE" "CKS")
    ("DESIREE" "DEM")
    ("ERIC" "ECW")
    ("JON" "JDL")
    ("KEN" "KRV")
    ("LUC" "JDL")
    ("MARKH" "MJH")
    ("MARKM" "MAM")
    ("RON" "RLB")
    )
    nam (strcase (getvar "loginname"))
    )

    (if (assoc nam namlist)
    (cadr (assoc nam namlist))
    (substr nam 1 3)
    )

    )

    Then set a USER variable to the intials:

    (setvar "USERS1" (name))
     
    Allen Johnson, Jan 27, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.