Here you will find useful information for those who want to learn AutoLISP but unable to find resources, or those who want to advance to next level in using AutoCAD. This page is prepared as a resource for AutoCAD programmers and a place for everone to share information.

______________________________________________________________
Beginners
______________________________________________________________

________________________________________________________
Intermediate
________________________________________________________

  • User input functions
    • (getint) and (getreal) functions
    • Angle input with (getangle)
    • Get the other corner by (getcorner)
    • Rectangle.lsp application
    • Getting distance by (getdist)
    • Prompting user to enter a keyword by (getkword)
    • Prompting user to pick a point (getpoint)
    • Prompting user to enter a string (getstring)
  • Managing Lists in AutoLISP (List Handling)
    • Point Lists
    • Rectangle.lsp
    • Dotted pairs
    • Entity lists
    • Data search in lists
  • Loading AutoLISP applications automatically
    • MDI Interface
    • Application Level
    • Document Level
    • Automatic Load
    • Loading with menu
  • Defining our own functions
    • (defun …) Defining a new function
    • Definition and usage of functions with arguments
    • Local variables that are used inside the functions
    • Changing AutoCAD commands (redefining)

________________________________________________________
Advanced
________________________________________________________

________________________________________________________
Sample Programs
________________________________________________________

  • A simple AutoLISP application for constructing center lines
    • Defining user function
    • entsel, entget, car, cadr and cdr functions
    • Using (command function)
  • An AutoLISP program that draws a bubble at the end of axes.
    • Declaring local variables
    • entsel, entget, car, cadr and cdr functions
    • Checking entity type
  • AutoLISP application: LAY_DEL.LSP
    • Changing system variables
    • entsel, entget, car and cdr functions
    • Creating selection set with ssget
    • selection set filtering
  • AutoLISP - Find & Replace Application
    • Walking trough selection sets
    • String manuplation techniques
  • Measuring the slope between two points
    • Defining user functions
    • Giving options to user
  • Method of giving elevation symbols in AutoCAD
    • Defining user functions
    • Managing ATTRIBUTES in blocks
    • Managing options in DYNAMIC BLOCKS
  • COPYROT and PICKDEL applications
    • Prompting user for selection
    • Waiting user (pause)
    • Using (getvar) function
  • An AutoLISP program that reads point list from file and puts them into drawing
    • Reading lines from text file
    • List operations
    • Entmake function
    • while loop
    • string operations
  • A LISP to edit your text objects with number entries
    • Building point lists
    • Datatype conversions
    • Mathematical functions

    ______________________________________________________________
    Articles
    ______________________________________________________________

  • Difference between AutoLISP and VisualLISP
  • Place of AutoLISP in programming in AutoCAD

  • Total: 6474
    This week: 314
    Today: 18
    Last read: 11 October 2008, 11:17