AUTOLISP QUICK REFERENCE CHART PAGE 1. (+ ...) Returns the sum of two or more numbers. (- ...) Returns the difference of two or more numbers. (* ...) Returns the product of two or more numbers. (/ ...) Returns the quotient of two or more numbers. (= ...) Returns T if the numbers are equal, nil if not. (/= ) Returns T if the numbers are not equal, nil if they are. (< ) Returns T if is less than . (<= ) Returns T if is equal to or less than . (> ) Returns T if is greater than . (>= ) Returns T if is equal to or greater than . (~ ) Returns the bitwise of . (1+ ) Returns the increased by one. (1- ) Returns the decreased by one. (abs ) Returns the absolute value of . (and ...) Returns the logical AND of a list of expressions. Returns nil if expressions are nil. (angle ) Returns the angle in radians between two points. (angtos []) Returns the angle as a string. Mode 0=Degrees,1=Deg Min Sec,2=Grads,3=Radians,4=Surveyor (append ....) Returns a number of lists as one list. (apply ) Executes function with the arguments given as a list. (ascii ) Returns ascii value of first character of a string. (assoc ) Searches for . (atan []) Returns the arctangent of or /. (atof ) Returns the conversion of a string into a real. (atoi ) Returns the conversion of a string into an integer. (atom ) Returns T if is not a list. (Boole 's must be integers. (boundp ) Returns T if has a value bound to it. (car ) Returns the first element of a list. (caar ) Returns first element of the first element of a list. (cadar ) Returns last element of the first element of a list. (cadr ) Returns the second element of a list. (caddr ) Returns the third element of a list. (cdr ) Returns all but the first element of a list. (cdar ) Returns second element of the first element of list. (cddr ) Returns all but first element of last element list. (chr ) Returns the string represented by an ascii value. (close ) Closes a file. (command ...) Executes an AutoCAD command. (cond ()...) Evaluates any number of lists as arguments. (cons ) Contructs a new list. (cos ) Returns the cosine of an angle. (defun ...) Defines an AutoLISP function. (distance ) Returns the distance between two points. (entnext []) Returns the first non-deleted entity after . (entlast) Returns the last non-deleted entity in the database. (entsel []) Selects a single entity by a point pick. (entdel ) Deletes the entity or undeletes it if it has already been deleted. (entget ) Returns from the database as a list. (entmod ) Updates in the database. NOT for blocks or polylines (entupd ) Updates in the database. Use for polylines or blocks. (eq ) Returns T if expressions are bound to same object. (equal ) Returns T if the expressions are equal. (eval ) Evalutes an expression. (exp ) Returns E to the power . (expt ) Returns to the power . (findfile ) Searches all paths to find . AUTOLISP QUICK REFERENCE CHART PAGE 2. (fix ) Converts to an integer. (float ) Converts to a real. (foreach ) Evaluates for each element in the and assigns to . (gcd ) Returns the greatest common denominator. (getangle [][]) Pauses for input of an angle at optional starting point . (getcorner [][]) Getpoint function - draws triangle as crosshairs move. (getdist [][]) Pauses for input of distance at optional start point. (getenv []) Returns string value assigned to a system variable. (getkword []) Requests a keyword from the user. (getorient [][]) Returns angle in radians from current orientation. (getpoint [][]) Pauses for input of an angle at optional point . (getreal []) Pauses for input of a real number. (getstring [][]) Pauses for input of a string. (getvar ) Retrieves the value of an AutoCAD system variable. (graphscr) Flips from text screen to graphics screen. (grclear) Clears the graphics screen. (grdraw []) Draws a vector between two points. (grtext ]) Write to text portion of graphics screen. (grread ) Allows AutoLISP to read AutoCADs input devices. (if []) Conditionally evaluates expressions. (inters []) Returns the intersection point of two lines.If is greater than 0 the intersection may lie past the endpoints of the lines. (itoa ) Returns the conversion of an integer to a string. (lambda ...) Defines an "anonymous" function. (last ) Returns the last element in . (length ) Returns the number of elements in . (list ) Returns the list of a number of expressions. (listp ) Returns T if the item is a list. (load ) Loads an AutoLISP program in memory. (log ) Returns natural log of as a real. (logand ...) Returns the logical bitwise AND of a list of numbers. (logior ...) Returns the logical bitwise OR of a list of numbers. (lsh ) Returns the logical bitwise SHIFT operator of by . (mapcar ...) Executes on the elements of through . (max ...) Returns the maximum of the numbers given. (member ) Searches for first occurence of and returns the remainder of the list. (menucmd ) Switch between pages in an AutoCAD menu. (min ...) Returns the smallest of the numbers given. (minusp ) Returns T if the item is negative. (not ) Returns T if the expression is nil. (nth ) Returns the "nth" element of . (null ) Returns T if is bound to nil. (numberp ) Returns T if is an integer or a real. (open ) Opens a file. (or ...) Returns the logical OR of a list of expressions. (osnap ) Returns a point by applying the osnap command. (polor ) Returns point at and from . (prin1 []) Prints on the screen or to . (princ []) Same as prin1 except control character are printed without expansion. (print []) Same as prin1 except a new line is printed before and a space is printed after. (progn ...) Evalutes each expression sequentially. (prompt ) Displays on the screen PROMPT area. (quote ) Returns unevaluated. (read ) Returns the first LIST obtained from . (read-char []) Returns a character from the keyboard buffer or from . (read-line []) Returns a string from the keyboard buffer or from . (redraw [][]) Redraws either entire drawing, or in . AUTOLISP QUICK REFERENCE CHART PAGE 3. (rem ...) Returns the remainder of /. (repeat ...) Evaluates each expression times. (reverse ) Returns a list reversed. (rtos []) Returns a real number as a string. (set ) Sets the value of a sysmbol name. (setq ...) Sets the value of to . (setvar ) Sets a system variable to . (sin ) Returns the sine of an angle. (sqrt ) Returns the square root of . (ssget [][]) Returns a selection set. (sslength ) Returns the number of entities in selection set . (ssname ) Returns the name of the th entity in selection set . (ssadd [][]) Adds entities to selections sets. (ssdel [][]) Deletes entities from selections sets. (ssmemb [][]) Returns if is a member of selections set . (strcase [)] Returns as upper case if is nill. If is not nill the returned string will be all lower case. (strcat ..) Concatenates a series of strings. (strlen ) Returns the number of characters in a string. (subst ) Substitutes for in . (substr ) Returns a substring of begining at of characters. (tblnext []) Scans symbol table for next entity. (tblsearch []) Searches entire symbol table for . (terpri) Prints a new line on the screen. (textscr) Flips from graphics screen to text screen. (trace ...) Debugging aid that returns the last function name. (trans []) Translates a point from one coordinate system to another. (type ) Returns the type of . (untrace ...) Clears the trace floag for . (ver) Returns AutoLISP version number. (vports) Returns a list of currently active viewports. (while ) Evalutes and if not nill executes . (write-char []) Writes the character represented by the ASCII value of to the screen or to . (write-line []) Writes to the screen or to . (vmon) Enables AutoLISP virtual function pager. (zerop ) Returns T if evaluates to zero. (*error* ) User-definable error function.