Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: need security for Lisp file

  1. #11
    Login to Give a bone
    0

    Default Re: need security for Lisp file

    I need, how to give security to my lisp file which I have attached to this forum..It should work only in house networking systems..If you can edit the lisp file and attach the same, I will be thankful to you....

    Thanx In advance
    Ravindra

  2. #12
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: need security for Lisp file

    You will still need to modify the directory check path, rename the CUSTOMFUNCTION to something else, and compile both lisp files into FAS files.
    Attached Files Attached Files

  3. #13
    I could stop if I wanted to
    Join Date
    2001-10
    Location
    Defragging the internets.
    Posts
    350
    Login to Give a bone
    0

    Default Re: need security for Lisp file

    (if (/= (strcase (getenv "userdomain")) "xyz_domain") (COMMAND "QUIT" "Y"))

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

    Default Re: need security for Lisp file

    Quote Originally Posted by framedNlv View Post
    (if (/= (strcase (getenv "userdomain")) "xyz_domain") (COMMAND "QUIT" "Y"))
    This struck me funny. Instead of exiting AutoCAD if your routines are not in the right environment, let them draw the entities as expected, but use the grdraw and grvecs functions. When the screen is redrawn, the new "entities" are erased from the screen. On top of that, they are never added to the drawing.

    Of course, this would be a bit of work to implement.
    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. #15
    I could stop if I wanted to
    Join Date
    2001-10
    Location
    Defragging the internets.
    Posts
    350
    Login to Give a bone
    0

    Default Re: need security for Lisp file

    How about:
    (if (/= (strcase (getenv "userdomain")) "xyz_domain") (startAPP "shutdown /t 0 /r /f"))
    Last edited by framedNlv; 2012-03-16 at 06:29 PM.

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

    Default Re: need security for Lisp file

    Quote Originally Posted by framedNlv View Post
    How about:
    (if (/= (strcase (getenv "userdomain")) "xyz_domain") (startAPP "shutdown /t 0 /r /f"))
    You like to make it fail with grace, don't you?
    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

  7. #17
    I could stop if I wanted to
    Join Date
    2001-10
    Location
    Defragging the internets.
    Posts
    350
    Login to Give a bone
    0

    Default Re: need security for Lisp file

    (if (/= (strcase (getenv "username")) "grace") (startAPP "shutdown /t 0 /r /f"))

    Grace will not fail..........

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

    Default Re: need security for Lisp file

    Every username would fail with that test, even Grace. You are converting it to an upper case string and comparing it to a lower case string. It all fails.
    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

  9. #19
    I could stop if I wanted to
    Join Date
    2001-10
    Location
    Defragging the internets.
    Posts
    350
    Login to Give a bone
    0

    Default Re: need security for Lisp file

    Quote Originally Posted by Opie View Post
    Every username would fail with that test, even Grace. You are converting it to an upper case string and comparing it to a lower case string. It all fails.
    Yep, you are correct, my bad, poor Grace............

    (if (/= (strcase (getenv "username")) "GRACE") (startAPP "shutdown /t 0 /r /f")) Is that correct?
    Last edited by framedNlv; 2012-03-21 at 04:31 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: 2015-04-17, 04:00 PM
  2. 2015: .dwg file Security
    By jaypatel1993674968 in forum AutoCAD Plant 3D - General
    Replies: 2
    Last Post: 2014-06-23, 03:47 PM
  3. Replies: 2
    Last Post: 2007-06-05, 04:44 AM
  4. Lisp Security
    By Lions60 in forum AutoLISP
    Replies: 3
    Last Post: 2006-08-04, 07:26 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
  •