How to use AoutoLISP (.lsp) Application



The instructions are available for how to use AoutoLISP (.lsp) Application in Autodesk official website

In here I will explain to you, Simply how to use AoutoLISP (.lsp) Application for Windows operating system.
  1. Open a Notepad     and type the lisp program or copy paste the AutoLISP program, if you already generated 
  2. Save the Notepad as file extension “.lsp” (Example “xxxx.lsp”) 

  3. Open AutoCAD and give comment “APPLOAD” or “AP”
  4. Load AutoLISP (.lsp) Application.
  5. To run the program give comment which you written in your program (it's shown in your program after written as "defun c:" (Example :  "hello" is the AutoCAD comment for below shown program
    (defun c:hello ( / msg)
      (setq msg (getstring T "\nEnter a message: "))
      (alert msg)
    )
    
    (prompt "\nAutoLISP Tutorial file loaded.")
    (princ) ; Suppress the return value of the prompt function



No comments:

Post a Comment