Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: How can I create a lisp protected file.

  1. #11
    Member
    Join Date
    2009-02
    Posts
    8
    Login to Give a bone
    0

    Default Re: How can I create a lisp protected file.

    Thanks...

    Answer
    -----------------
    ("vl.arx" "whohas.arx" "wscommcntraccon.arx")
    -----------------
    ACADVER = "17.0s (LMS Tech)" (read only)

  2. #12
    AUGI Addict
    Join Date
    2008-02
    Posts
    1,141
    Login to Give a bone
    0

    Default Re: How can I create a lisp protected file.

    The Visual Lisp Editor must be open.
    Type vlide then just close it and run the routine again.

    Here's a very simple version:
    Code:
    ;;; Convert selected .LSP file to .FAS, uses same name and places in same directory
    ;;; Alan J. Thompson, 10.30.09
    (defun c:Lsp2Fas (/ #File)
      (vl-load-com)
      (and (setq #File (getfiled "Convert .LSP file to .FAS" "" "lsp" 16))
           (vlisp-compile 'st #File)
           (alert (strcat "LSP -> FAS Complete!\n\n" (vl-string-subst ".fas" ".lsp" (strcase #File T))))
      ) ;_ and
      (princ)
    ) ;_ defun
    One could get really sophisticated with it, as Stephen did (very nice btw), but I just wanted to show the simple ins and outs.

  3. #13
    Member
    Join Date
    2009-02
    Posts
    8
    Login to Give a bone
    0

    Default Re: How can I create a lisp protected file.

    Thanks...
    If The Visual Lisp Editor it's open and then I close it, the code it's functional, in a new sesion of AutoCAD, i can't do it.
    Why?
    Thanks...

  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: How can I create a lisp protected file.

    It is a requirement of the vlisp-compile function. See the help menu.
    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
    Member
    Join Date
    2009-02
    Posts
    8
    Login to Give a bone
    0

    Default Re: How can I create a lisp protected file.

    Thanks...Opie
    That's ok,
    Now, I need open the Visual Lisp console, in a code, and then closed.
    It's possible?
    Thanks...

  6. #16
    AUGI Addict
    Join Date
    2008-02
    Posts
    1,141
    Login to Give a bone
    0

    Default Re: How can I create a lisp protected file.

    Code:
    ;;; Convert selected .LSP file to .FAS, uses same name and places in same directory
    ;;; Alan J. Thompson, 10.30.09
    (defun c:Lsp2Fas (/ #File)
      (vl-load-com)
      (and (setq #File (getfiled "Convert .LSP file to .FAS" "" "lsp" 16))
           (c:vlide)
           (vlisp-compile 'st #File)
           (alert (strcat "LSP -> FAS Complete!\n\n" (vl-string-subst ".fas" ".lsp" (strcase #File T))))
      ) ;_ and
      (princ)
    ) ;_ defun

  7. #17
    Member
    Join Date
    2009-02
    Posts
    8
    Login to Give a bone
    0

    Default Re: How can I create a lisp protected file.

    Thanks alanjt...
    That's Ok.... (c:vlide)
    It was a good answer....
    Thanks to all...

  8. #18
    Woo! Hoo! my 1st post
    Join Date
    2002-07
    Posts
    1
    Login to Give a bone
    0

    Default Re: How can I create a lisp protected file.

    Quote Originally Posted by josea_diazm View Post
    Thanks...
    --------------------------------------------------
    Command: (vl-load-com)
    Command: FAS
    Enter Lisp Name: IGUALQUE
    ; error: no function definition: VLISP-COMPILE
    Command:
    --------------------------------------------------
    What's wrong?, my program?, i don't know.
    Thanks...
    VLISP-COMPILE is not a standard Visual Lisp function. One has to create it.

  9. #19
    AUGI Addict
    Join Date
    2008-02
    Posts
    1,141
    Login to Give a bone
    0

    Default Re: How can I create a lisp protected file.

    Quote Originally Posted by aratnakar View Post
    VLISP-COMPILE is not a standard Visual Lisp function.
    Yes it is.

  10. #20
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: How can I create a lisp protected file.

    Quote Originally Posted by aratnakar View Post
    VLISP-COMPILE is not a standard Visual Lisp function.
    Yes it is.
    R.K. McSwain | CAD Panacea |

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 2014-06-02, 03:26 PM
  2. Protected AutoLISP File
    By vipin_nair in forum AutoLISP
    Replies: 4
    Last Post: 2011-06-06, 02:04 PM
  3. Breaking a protected LISP
    By design.9921 in forum AutoCAD Customization
    Replies: 5
    Last Post: 2009-06-06, 11:48 AM
  4. Create lisp to extract data from excel file
    By Lions60 in forum AutoLISP
    Replies: 7
    Last Post: 2008-01-30, 04:32 AM
  5. Write Protected File
    By Mac Demer in forum AutoCAD General
    Replies: 1
    Last Post: 2007-10-26, 11:49 AM

Posting Permissions

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