
Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!

01.Application-Handling Functions
1 - (arx) - Returns a list of the currently loaded ObjectARX applications 2 - (arxload application [onfailure]) - Loads an ObjectARX application 3 - (arxunload application [onfailure]) - Unloads an ObjectARX application 4 - (autoarxload filename cmdlist) - Predefines command names to load an associated ObjectARX file 5 - (autoload filename cmdlist) - Predefines command names to load an associated AutoLISP file 6 - (initdia [dialogflag]) - Forces the display of the next command's dialog box 7 - (load filename [onfailure]) - Evaluates the AutoLISP expressions in a file 8 - (showhtmlmodalwindow uri) - Displays a modal dialog box with a specified URI (Uniform Resource Identifier) 9 - (startapp appcmd file) - Starts a Windows application 10 - (vl-load-all filename) - Loads a file into all open AutoCAD documents 11 - (vl-vbaload "filename") - Loads a VBA project 12 - (vl-vbarun "macroname") - Runs a VBA macro 13 - (vlax-add-cmd "global-name" 'func-sym [“local-name" cmd-flags]) - Adds commands to the AutoCAD built-in command set
02.Arithmetic
1 - (+ [number number ...]) - Returns the sum of all numbers 2 - (- [number number ...]) - Subtracts the second and following numbers from the first and returns the difference 3 - (* [number number ...]) - Returns the product of all numbers 4 - (/ [number number ...]) - Divides the first number by the product of the remaining numbers and returns the quotient 5 - (~ int) - Returns the bitwise NOT (1's complement) of the argument 6 - (1+ number) - Returns the argument increased by 1 (incremented) 7 - (1- number) - Returns the argument reduced by 1 (decremented) 8 - (abs number) - Returns the absolute value of the argument 9 - (atan num1 [num2]) - Returns the arctangent of a number in radians 10 - (cos ang) - Returns the cosine of an angle expressed in radians 11 - (exp number) - Returns the constant e (a real) raised to a specified power (the natural antilog) 12 - (expt base power) - Returns a number raised to a specified power 13 - (fix number) - Returns the conversion of a real into the nearest smaller integer 14 - (float number) - Returns the conversion of a number into a real 15 - (gcd int1 int2) - Returns the greatest common denominator of two integers 16 - (log number) - Returns the natural log of a number as a real 17 - (logand [int int ...]) - Returns the result of the logical bitwise AND of a list of integers 18 - (logior [int int ...]) - Returns the result of the logical bitwise inclusive OR of a list of integers 19 - (lsh [int numbits]) - Returns the logical bitwise shift of an integer by a specified number of bits 20 - (max [number number ...]) - Returns the largest of the numbers given 21 - (min [number number ...]) - Returns the smallest of the numbers given 22 - (minusp number) - Verifies that a number is negative 23 - (rem [num1 num2 ...]) - Divides the first number by the second, and returns the remainder 24 - (sin ang) - Returns the sine of an angle as a real expressed in radians 25 - (sqrt number) - Returns the square root of a number as a real 26 - (zerop number) - Verifies that a number evaluates to zero
03.Equality and Conditionals
1 - (= numstr [numstr ...]) - Returns T if all arguments are numerically equal, and returns nil otherwise 2 - (/= numstr [numstr ...]) - Returns T if the arguments are not numerically equal, and nil if the arguments are numerically equal 3 - (< numstr [numstr ...]) - Returns T if each argument is numerically less than the argument to its right, and returns nil otherwise 4 - (<= numstr [numstr ...]) - Returns T if each argument is numerically less than or equal to the argument to its right, and returns nil otherwise 5 - (> numstr [numstr ...]) - Returns T if each argument is numerically greater than the argument to its right, and returns nil otherwise 6 - (>= numstr [numstr ...]) - Returns T if each argument is numerically greater than or equal to the argument to its right, and returns nil otherwise 7 - (and [expr ...]) - Returns the logical AND of a list of expressions 8 - (boole func int1 [int2 ...]) - Serves as a general bitwise Boolean function 9 - (cond [(test result ...) ...]) - Serves as the primary conditional function for AutoLISP 10 - (eq expr1 expr2) - Determines whether two expressions are identical 11 - (equal expr1 expr2 [fuzz]) - Determines whether two expressions are equal 12 - (if testexpr thenexpr [elseexpr]) - Conditionally evaluates expressions 13 - (or [expr ...]) - Returns the logical OR of a list of expressions 14 - (repeat int [expr ...]) - Evaluates each expression a specified number of times, and returns the value of the last expression 15 - (while testexpr [expr ...]) - Evaluates a test expression, and if it is not nil, evaluates other expressions; repeats this process until the test expression evaluates to nil
04.Error-Handling
1 - (alert string) - Displays an alert dialog box with the error or warning message passed as a string 2 - (error string) - A user-definable error-handling function 3 - (exit) - Forces the current application to quit 4 - (pop-error-mode) - Error-handling function that ends the previous call to push-error-using-command or push-error-using-stack 5 - (push-error-using-command) - Error-handling function that indicates the use of the command function within a custom error handler 6 - (push-error-using-stack) - Error-handling function that indicates the use of variables from the AutoLISP stack within a custom error handler 7 - (quit) - Forces the current application to quit 8 - (vl-catch-all-apply 'function list) - Passes a list of arguments to a specified function and traps any exceptions 9 - (vl-catch-all-error-message error-obj) - Returns a string from an error object 10 - (vl-catch-all-error-p arg) - Determines whether an argument is an error object returned from vl-catch-all-apply
05.Function-Handling
1 - (apply function lst) - Passes a list of arguments to a specified function 2 - (defun sym ([arguments] [/variables ...]) expr ... ) - Defines a function 3 - (defun-q sym ([arguments] [/ variables ...]) expr ...) - Defines a function as a list (intended for backward-compatibility only) 4 - (defun-q-list-ref 'function) - Displays the list structure of a function defined with defun-q 5 - (defun-q-list-set 'sym list) - Defines a function as a list (intended for backward-compatibility only) 6 - (eval expr) - Returns the result of evaluating an AutoLISP expression 7 - (lambda arguments expr ...) - Defines an anonymous function 8 - (progn [expr ...]) - Evaluates each expression sequentially, and returns the value of the last expression 9 - (trace function ...) - Aids in AutoLISP debugging 10 - (untrace function ...) - Clears the trace flag for the specified functions
06.List Manipulation
1 - (acad_strlsort lst) - Sorts a list of strings by alphabetical order 2 - (append lst ...) - Takes any number of lists and runs them together as one list 3 - (assoc item alist) - Searches an association list for an element and returns that association list entry 4 - (car lst) - Returns the first element of a list 5 - (cdr lst) - Returns the specified list, except for the first element of the list 6 - (cons new-first-element lst) - The basic list constructor 7 - (foreach name lst [expr ...]) - Evaluates expressions for all members of a list 8 - (last lst) - Returns the last element in a list 9 - (length lst) - Returns an integer indicating the number of elements in a list 10 - (list [expr ...]) - Takes any number of expressions and combines them into one list 11 - (listp item) - Verifies that an item is a list 12 - (mapcar function list1 ... listn) - Returns a list of the result of executing a function with the individual elements of a list or lists supplied as arguments to the function 13 - (member expr lst) - Searches a list for an occurrence of an expression and returns the remainder of the list, starting with the first occurrence of the expression 14 - (nth n lst) - Returns the nth element of a list 15 - (reverse lst) - Returns a list with its elements reversed 16 - (subst newitem olditem lst) - Searches a list for an old item and returns a copy of the list with a new item substituted in place of every occurrence of the old item 17 - (vl-consp list-variable) - Determines whether or not a list is nil 18 - (vl-every predicate-function list [ more-lists ...]) - Checks whether the predicate is true for every element combination 19 - (vl-list* object [more-objects ...]) - Constructs and returns a list 20 - (vl-list->string char-codes-list) - Combines the characters associated with a list of integers into a string 21 - (vl-list-length list-or-cons-object) - Calculates list length of a true list 22 - (vl-member-if predicate-function list) - Determines whether the predicate is true for one of the list members 23 - (vl-member-if-not predicate-function list) - Determines whether the predicate is nil for one of the list members 24 - (vl-position symbol list) - Returns the index of the specified list item 25 - (vl-remove element-to-remove list) - Removes elements from a list 26 - (vl-remove-if predicate-function list) - Returns all elements of the supplied list that fail the test function 27 - (vl-remove-if-not predicate-function list) - Returns all elements of the supplied list that pass the test function 28 - (vl-some predicate-function list [more-lists ...]) - Checks whether the predicate is not nil for one element combination 29 - (vl-sort list comparison-function) - Sorts the elements in a list according to a given compare function 30 - (vl-sort-i list comparison-function) - Sorts the elements in a list according to a given compare function, and returns the element index numbers 31 - (vl-string->list string) - Converts a string into a list of character codes
07.String-Handling
1 - (read [string]) - Returns the first list or atom obtained from a string 2 - (strcase string [which]) - Returns a string where all alphabetic characters have been converted to uppercase or lowercase 3 - (strcat [string1 [string2 ...]) - Returns a string that is the concatenation of multiple strings 4 - (strlen [string ...]) - Returns an integer that is the number of characters in a string 5 - (substr string start [length]) - Returns a substring of a string 6 - (vl-prin1-to-string object) - Returns the string representation of any LISP object as if it were output by the prin1 function 7 - (vl-princ-to-string object) - Returns the string representation of any LISP object as if it were output by the princ function 8 - (vl-string->list string) - Converts a string into a list of character codes 9 - (vl-string-elt string position) - Returns the ASCII representation of the character at a specified position in a string 10 - (vl-string-left-trim character-set string) - Removes the specified characters from the beginning of a string 11 - (vl-string-mismatch str1 str2 [pos1 pos2 ignore-case-p]) - Returns the length of the longest common prefix for two strings, starting at specified positions 12 - (vl-string-position char-code str [ start-pos [from-end-p]]) - Looks for a character with the specified ASCII code in a string 13 - (vl-string-right-trim character-set string) - Removes the specified characters from the end of a string 14 - (vl-string-search pattern string [ start-pos]) - Searches for the specified pattern in a string 15 - (vl-string-subst new-str pattern string [start-pos]) - Substitutes one string for another, within a string 16 - (vl-string-translate source-set dest-set str) - Replaces characters in a string with a specified set of characters 17 - (vl-string-trim char-set str) - Removes the specified characters from the beginning and end of a string 18 - (wcmatch string pattern) - Performs a wild-card pattern match on a string
08.Symbol-Handling
1 - (atom item) - Verifies that an item is an atom 2 - (atoms-family format [symlist]) - Returns a list of the currently defined symbols 3 - (boundp sym) - Verifies whether a value is bound to a symbol 4 - (not item) - Verifies that an item evaluates to nil 5 - (null item) - Verifies that an item is bound to nil 6 - (numberp item) - Verifies that an item is a real or an integer 7 - (quote expr) - Returns an expression without evaluating it 8 - (set sym expr) - Sets the value of a quoted symbol name to an expression 9 - (setq sym1 expr1 [sym2 expr2 ...]) - Sets the value of a symbol or symbols to associated expressions 10 - (type item) - Returns the type of a specified item 11 - (vl-symbol-name symbol) - Returns a string containing the name of a symbol 12 - (vl-symbol-value symbol) - Returns the current value bound to a symbol 13 - (vl-symbolp object) - Identifies whether or not a specified object is a symbol
09.Data Conversion
1 - (angtof string [mode]) - Converts a string representing an angle into a real (floating-point) value in radians 2 - (angtos angle [mode [precision]]) - Converts an angular value in radians into a string 3 - (ascii string) - Returns the conversion of the first character of a string into its ASCII character code (an integer) 4 - (atof string) - Returns the conversion of a string into a real 5 - (atoi string) - Returns the conversion of a string into an integer 6 - (chr integer) - Returns the conversion of an integer representing an ASCII character code into a single-character string 7 - (cvunit value from to) - Converts a value from one unit of measurement to another 8 - (distof string [mode]) - Converts a string that represents a real (floating-point) value into a real value 9 - (itoa int) - Returns the conversion of an integer into a string 10 - (rtos number [mode [precision]]) - Converts a number into a string 11 - (trans pt from to [disp]) - Translates a point (or a displacement) from one coordinate system to another
10.Device Access
1 - (grread [track] [allkeys [curtype]]) - Reads values from any of the AutoCAD input devices 2 - (tablet code [row1 row2 row3 direction]) - Retrieves and sets digitizer (tablet) calibrations
11.Display Control
1 - (graphscr) - Displays the AutoCAD graphics screen 2 - (grdraw from to color [highlight]) - Draws a vector between two points, in the current viewport 3 - (grtext [box text [highlight]]) - Writes text to the status line or to screen menu areas 4 - (grvecs vlist [trans]) - Draws multiple vectors on the graphics screen 5 - (menucmd string) - Issues menu commands, or sets and retrieves menu item status 6 - (menugroup groupname) - Verifies that a menu group is loaded 7 - (prin1 [expr [file-desc]]) - Prints an expression to the command line or writes an expression to an open file 8 - (princ [expr [file-desc]]) - Prints an expression to the command line, or writes an expression to an open file 9 - (print [expr [file-desc]]) - Prints an expression to the command line, or writes an expression to an open file 10 - (prompt msg) - Displays a string on your screen's prompt area 11 - (redraw [ename [mode]]) - Redraws the current viewport or a specified object (entity) in the current viewport 12 - (terpri) - Prints a newline to the Command line 13 - (textpage) - Switches from the graphics screen to the text screen 14 - (textscr) - Switches from the graphics screen to the text screen (like the AutoCAD Flip Screen function key) 15 - (vports) - Returns a list of viewport descriptors for the current viewport configuration
12.File-Handling
1 - (close file-desc) - Closes an open file 2 - (findfile filename) - Searches the AutoCAD library path for the specified file 3 - (findtrustedfile filename) - Searches the AutoCAD trusted file paths for the specified file 4 - (open filename mode) - Opens a file for access by the AutoLISP I/O functions 5 - (read-char [file-desc]) - Returns the decimal ASCII code representing the character read from the keyboard input buffer or from an open file 6 - (read-line [file-desc]) - Reads a string from the keyboard or from an open file 7 - (vl-directory-files [ directory pattern directories]) - Lists all files in a given directory 8 - (vl-file-copy "source-filename" "destination-filename" [append]) - Copies or appends the contents of one file to another file 9 - (vl-file-delete "filename") - Deletes a file 10 - (vl-file-directory-p "filename") - Determines if a file name refers to a directory 11 - (vl-file-rename "old-filename" "new-filename") - Renames a file 12 - (vl-file-size "filename") - Determines the size of a file, in bytes 13 - (vl-file-systime "filename") - Returns last modification time of the specified file 14 - (vl-filename-base "filename") - Returns the name of a file, after stripping out the directory path and extension 15 - (vl-filename-directory "filename") - Returns the directory path of a file, after stripping out the name and extension 16 - (vl-filename-extension "filename") - Returns the extension from a file name, after stripping out the rest of the name 17 - (vl-filename-mktemp ["pattern" "directory" "extension"]) - Calculates a unique file name to be used for a temporary file 18 - (write-char num [file-desc]) - Writes one character to the screen or to an open file 19 - (write-line string [file-desc]) - Writes a string to the screen or to an open file
13.Geometric
1 - (angle pt1 pt2) - Returns an angle in radians of a line defined by two endpoints 2 - (distance pt1 pt2) - Returns the 3D distance between two points 3 - (inters pt1 pt2 pt3 pt4 [onseg]) - Finds the intersection of two lines 4 - (osnap pt mode) - Returns a 3D point that is the result of applying an Object Snap mode to a specified point 5 - (polar pt ang dist) - Returns the UCS 3D point at a specified angle and distance from a point 6 - (textbox elist) - Measures a specified text object, and returns the diagonal coordinates of a box that encloses the text
14.Query and Command
1 - (acadcolordlg colornum [flag]) - Displays the standard AutoCAD Color Selection dialog box 2 - (acadhelpdlg helpfile topic) - Invokes the Help facility (obsolete) 3 - (command [arguments] ...) - Executes an AutoCAD command 4 - (command-s [arguments] ...) - Executes an AutoCAD command and the supplied input 5 - (getcfg cfgname) - Retrieves application data from the AppData section of the acadXXXX.cfgfile 6 - (getcname cname) - Retrieves the localized or English name of an AutoCAD command 7 - (getenv "variable-name") - Returns the string value assigned to an environment variable 8 - (getvar "varname") - Retrieves the value of an AutoCAD system variable 9 - (help [helpfile [topic [command]]]) - Invokes the Help facility 10 - (setcfg cfgname cfgval) - Writes application data to the AppData section of the acadXXXX.cfg file 11 - (setenv "varname" "value") - Sets an environment variable to a specified value 12 - (setfunhelp "c:fname" ["helpfile" ["topic" ["command"]]]) - Registers a user-defined command with the Help facility so the appropriate help file and topic are called when the user requests help on that command 13 - (setvar "varname" value) - Sets an AutoCAD system variable to a specified value 14 - (ver) - Returns a string that contains the current AutoLISP version number 15 - (vl-cmdf [arguments] ...) - Executes an AutoCAD command after evaluating arguments 16 - (vlax-add-cmd global-name func-sym [local-name cmd-flags]) - Adds commands to a group Note: Extended AutoLISP extension: requires vl-load-com" 17 - (vlax-remove-cmd global-name) - Removes a single command or command group Note: Extended AutoLISP extension: requires vl-load-com"
15.User Input
1 - (entsel [msg]) - Prompts the user to select a single object (entity) by specifying a point 2 - (getangle [pt] [msg]) - Pauses for user input of an angle, and returns that angle in radians 3 - (getcorner pt [msg]) - Pauses for user input of a rectangle's second corner 4 - (getdist [pt] [msg]) - Pauses for user input of a distance 5 - (getfiled title default ext flags) - Prompts the user for a file name with the standard AutoCAD file dialog box, and returns that file name 6 - (getint [msg]) - Pauses for user input of an integer, and returns that integer 7 - (getkword [msg]) - Pauses for user input of a keyword, and returns that keyword 8 - (getorient [pt] [msg]) - Pauses for user input of an angle, and returns that angle in radians 9 - (getpoint [pt] [msg]) - Pauses for user input of a point, and returns that point 10 - (getreal [msg]) - Pauses for user input of a real number, and returns that real number 11 - (getstring [cr] [msg]) - Pauses for user input of a string, and returns that string 12 - (initget [bits] [string]) - Establishes keywords for use by the next user input function call 13 - (nentsel [msg]) - Prompts the user to select an object (entity) by specifying a point, and provides access to the definition data contained within a complex object 14 - (nentselp [msg] [pt]) - Provides similar functionality to that of the nentsel function without the need for user input
16.Memory Management
1 - (alloc int) - Sets the segment size to a given number of nodes 2 - (expand number) - Allocates node space by requesting a specified number of segments 3 - (gc) - Forces a garbage collection, which frees up unused memory 4 - (mem) - Displays the current state of memory in AutoLISP
17.Windows Registry and Property List Files
1 - (vl-registry-delete reg-key [val-name]) - Deletes the specified key from the Windows Registry or property list file on Mac OS 2 - (vl-registry-descendents reg-key [val-names]) - Returns a list of subkeys or value names for the specified key of the Windows Registry or property list file on Mac OS 3 - (vl-registry-read reg-key [val-name]) - Returns data stored by a specific key/value pair in the Windows Registry or property list file on Mac OS 4 - (vl-registry-write reg-key [val-name val-data]) - Creates a key in the Windows Registry or property list file on Mac OS 5 - (vlax-machine-product-key) - Returns the AutoCAD Windows Registry path in the HKLM (HKEYLOCALMACHINE) Note: Available on Windows only and requires a call to the vl-load-comfunction." 6 - (vlax-product-key) - Returns the AutoCAD Windows Registry path (Obsolete) Note: Use the vlax-machine-product-key function instead." 7 - (vlax-user-product-key) - Returns the AutoCAD Windows registry path in the HKCU (HKEYCURRENTUSER) Note: Available on Windows only and requires a call to the vl-load-comfunction."
18.Extended Data-Handling
1 - (regapp application) - Registers an application name with the current AutoCAD drawing in preparation for using extended object data 2 - (xdroom ename) - Returns the amount of extended data (xdata) space that is available for an object (entity) 3 - (xdsize lst) - Returns the size (in bytes) that a list occupies when it is linked to an object (entity) as extended data
19.Object-Handling
1 - (dumpallproperties ename [context]) - Retrieves an entity’s supported properties 2 - (entdel ename) - Deletes objects (entities) or restores previously deleted objects 3 - (entget ename [applist]) - Retrieves an object's definition data 4 - (entlast) - Returns the name of the last non-deleted main object in the drawing 5 - (entmake [elist]) - Creates a new entity (graphical object) in the drawing 6 - (entmakex [elist]) - Makes a new object, gives it a handle and entity name (but does not assign an owner), and then returns the new entity name 7 - (entmod elist) - Modifies the definition data of an object 8 - (entnext [ename]) - Returns the name of the next object in the drawing 9 - (entupd ename) - Updates the screen image of an object 10 - (getpropertyvalue ename propertyname [or collectionName index name]) - Returns the current value of an entity’s property 11 - (handent handle) - Returns an object name based on its handle 12 - (ispropertyreadonly ename propertyname [or collectionName index name]) - Returns the read-only state of an entity’s property 13 - (setpropertyvalue ename propertyname value [or collectionname index name val]) - Sets the property value for an entity 14 - (vlax-dump-object obj) - Lists an object's methods and properties 15 - (vlax-erased-p obj) - Determines whether an object was erased 16 - (vlax-get-acad-object) - Retrieves the top-level AutoCAD application object for the current AutoCAD session 17 - (vlax-method-applicable-p obj method) - Determines whether an object supports a particular method 18 - (vlax-object-released-p obj) - Determines whether an object has been released 19 - (vlax-read-enabled-p obj) - Determines whether an object can be read 20 - (vlax-release-object obj) - Releases a drawing object 21 - (vlax-typeinfo-available-p obj) - Determines whether type library information is present for the specified type of object 22 - (vlax-write-enabled-p obj) - Determines whether an AutoCAD drawing object can be modified
20.Selection Set Manipulation
1 - (ssadd [ename [ss]]) - Adds an object (entity) to a selection set, or creates a new selection set 2 - (ssdel ename ss) - Deletes an object (entity) from a selection set 3 - (ssget [mode] [pt1 [pt2]] [pt-list] [filter-list]) - Prompts the user to select objects (entities), and returns a selection set 4 - (ssgetfirst) - Determines which objects are selected and gripped 5 - (sslength ss) - Returns an integer containing the number of objects (entities) in a selection set 6 - (ssmemb ename ss) - Tests whether an object (entity) is a member of a selection set 7 - (ssname ss index) - Returns the object (entity) name of the indexed element of a selection set 8 - (ssnamex ss index) - Retrieves information about how a selection set was created 9 - (sssetfirst gripset [pickset]) - Sets which objects are selected and gripped
21.Symbol Table and Dictionary-Handling
1 - (dictadd ename symbol newobj) - Adds a non-graphical object to the specified dictionary 2 - (dictnext ename symbol [rewind]) - Finds the next item in a dictionary 3 - (dictremove ename symbol) - Removes an entry from the specified dictionary 4 - (dictrename ename oldsym newsym) - Renames a dictionary entry 5 - (dictsearch ename symbol [setnext]) - Searches a dictionary for an item 6 - (layoutlist) - Returns a list of all paper space layouts in the current drawing 7 - (namedobjdict) - Returns the entity name of the current drawing's named object dictionary, which is the root of all non-graphical objects in the drawing 8 - (setview viewdescription [vportid]) - Establishes a view for a specified viewport 9 - (snvalid sym_name) - Checks the symbol table name for valid characters 10 - (tblnext table-name [rewind]) - Finds the next item in a symbol table 11 - (tblobjname table-name symbol) - Returns the entity name of a specified symbol table entry 12 - (tblsearch table-name symbol [setnext]) - Searches a symbol table for a symbol name 13 - (vlax-ldata-delete dict key) - Erases AutoLISP data from a drawing dictionary 14 - (vlax-ldata-get dict key [default-data]) - Retrieves AutoLISP data from a drawing dictionary 15 - (vlax-ldata-list dict) - Lists AutoLISP data in a drawing dictionary 16 - (vlax-ldata-put dict key data) - Stores AutoLISP data in a drawing dictionary 17 - (vlax-ldata-test data) - Determines whether data can be saved over a session boundary
22.Dialog Box Opening and Closing
1 - (donedialog [status]) - Terminates a dialog box 2 - (loaddialog dclfile) - Loads a DCL file 3 - (newdialog dlgname dclid [action [screen-pt]]) - Begins a new dialog box and displays it, and can also specify a default action 4 - (startdialog) - Displays a dialog box and begins accepting user input 5 - (termdialog) - Terminates all current dialog boxes as if the user cancels each of them 6 - (unloaddialog dclid) - Unloads a DCL file
23.Tile- and Attribute-Handling
1 - (actiontile key action-expression) - Assigns an action to evaluate when the user selects the specified tile in a dialog box 2 - (getattr key attribute) - Retrieves the DCL value of a dialog box attribute 3 - (gettile key) - Retrieves the current runtime value of a dialog box tile 4 - (modetile key mode) - Sets the mode of a dialog box tile 5 - (set_tile key value) - Sets the value of a dialog box tile
24.List Box and Pop-Up List-Handling
1 - (addlist string) - Adds or modifies a string in the currently active dialog box list 2 - (endlist) - Ends processing of the currently active dialog box list 3 - (start_list key [operation [index]]) - Starts the processing of a list in the list box or in the pop-up list dialog box tile
25.Image Tile-Handling
1 - (dimxtile key) - Retrieves the width of a tile in dialog box units 2 - (dimytile key) - Retrieves the height of a tile in dialog box units 3 - (endimage) - Ends creation of the currently active dialog box image 4 - (fillimage x1 y1 wid hgt color) - Draws a filled rectangle in the currently active dialog box image tile 5 - (slideimage x1 y1 wid hgt sldname) - Displays an AutoCAD slide in the currently active dialog box image tile 6 - (startimage key) - Starts the creation of an image in the dialog box tile 7 - (vector_image x1 y1 x2 y2 color) - Draws a vector in the currently active dialog box image
26.Application-Specific Data-Handling
1 - (clientdatatile key clientdata) - Associates application-managed data with a dialog box tile
27.Tile Attributes Reference
1 - Attribute name - Associated with 2 - action - All active tiles 3 - alignment - All tiles 4 - allowaccept - editbox, imagebutton, listbox 5 - aspectratio - image, imagebutton 6 - bigincrement - slider 7 - childrenalignment - row, column, radiorow, radiocolumn, boxedrow, boxedcolumn, boxedradiorow, boxedradiocolumn 8 - childrenfixedheight - row, column, radiorow, radiocolumn, boxedrow, boxedcolumn, boxedradiorow, boxedradiocolumn 9 - childrenfixedwidth - row, column, radiorow, radiocolumn, boxedrow, boxedcolumn, boxedradiorow, boxedradiocolumn 10 - color - image, imagebutton 11 - editlimit - editbox 12 - editwidth - editbox, popuplist 13 - fixedheight - All tiles 14 - fixedwidth - All tiles 15 - fixedwidthfont - listbox, popuplist 16 - height - All tiles 17 - initialfocus - Dialog 18 - isbold - Text 19 - iscancel - Button 20 - isdefault - Button 21 - isenabled - All active tiles 22 - istabstop - All active tiles 23 - key - All active tiles 24 - label - boxedrow, boxedcolumn, boxedradiorow, boxedradiocolumn, button, dialog, editbox, listbox, popuplist, radiobutton, text, toggle 25 - layout - slider 26 - list - listbox, popuplist 27 - maxvalue - slider 28 - minvalue - slider 29 - mnemonic - all active tiles 30 - multipleselect - listbox 31 - passwordchar - editbox 32 - smallincrement - slider 33 - tabs - listbox, popuplist 34 - tabtruncate - listbox, popup_list 35 - value - Text, active tiles (except buttons and image buttons) 36 - width - All tiles
28.Tiles Reference
1 - boxedcolumn - Grouping tile used to organize tiles into a column with a border around it. 2 - boxedradiocolumn - Grouping tile used to organize radiobutton tiles into a column with a border around it. 3 - boxedradiorow - Grouping tile used to organize radiobutton tiles into a row with a border around it. 4 - boxedrow - Grouping tile used to organize tiles into a row with a border around it. 5 - button - A Button tile resembles a push button. 6 - column - Grouping tile used to organize tiles into a column without a border around it. 7 - concatenation - A concatenation is a line of text made up of multiple, concatenated textpart tiles. 8 - dialog - A dialog is the tile that defines the dialog box. 9 - editbox - An edit box is a field that enables the user to enter or edit a single line of text. 10 - errtile - An error tile is a text tile that appears at the bottom of a dialog box. 11 - image - An image is a rectangle in which a vector graphic picture is displayed. 12 - imagebutton - The image button tile is a button that displays a graphic image rather than a label. 13 - listbox - A list box contains a list of text strings, arranged in rows. 14 - okcancel - The okcancel tile is a combination of the OK and Cancel buttons, and is the standard combination for dialog boxes that can originate changes to data. 15 - okcancelhelp - This tile is the okcancel cluster combined with the Help button. 16 - okcancelhelperrtile - The okcancelhelperrtile tile provides a convenient way to specify the exit buttons and error tile all at once. 17 - okcancelhelpinfo - The okcancelhelpinfo tile does everything that the okcancelhelp tile does, but it also includes an information button for displaying additional material. 18 - okonly - The okonly tile is a solitary OK button, such as the kind that alert boxes use. 19 - paragraph - A paragraph is a cluster of textpart or concatenation tiles that are arranged vertically. 20 - popuplist - A pop-up list, or simply pop-up, is functionally equivalent to a list box. 21 - radiobutton - A radio button is one of a group of buttons composing a radio column or radio row. 22 - radiocolumn - A radio column contains radio button tiles, only one of which can be selected at a time. 23 - radiorow - A radio row, like a radio column, contains radio button tiles, only one of which can be selected at a time. 24 - row - Grouping tile used to organize tiles into a row without a border around it. 25 - slider - A slider obtains a numeric value. 26 - spacer - Tile used to add space between other tiles in a dialog definition. 27 - spacer0 - Tile used to add space between other tiles in a dialog definition. 28 - spacer1 - Tile used to add space between other tiles in a dialog definition. 29 - text - A text tile displays a text string for titling or informational purposes. 30 - text_part - A text part is a text tile that is part of a larger piece of text. 31 - toggle - A toggle appears as a small box with an optional label to the right of the box.
29.ActiveX Collection Manipulation
1 - (vlax-for symbol collection [expression1 [expression2 ...]]) - Iterates through a collection of objects, evaluating each expression (Visual LISP Function) 2 - (vlax-map-collection obj function) - Applies a function to all objects in a collection
30.ActiveX Data Conversion
1 - (vlax-3D-point list) - Creates an ActiveX-compatible 3D point structure 2 - (vlax-ename->vla-object entname) - Transforms entity to VLA-object 3 - (vlax-make-safearray type '(l-bound. u-bound) ['( l-bound. u-bound) ...]) - Creates a safearray 4 - (vlax-make-variant value type) - Creates a variant data type 5 - (vlax-safearray-fill var 'element-values) - Stores elements in a safearray 6 - (vlax-safearray-get-dim var) - Returns the number of dimensions in a safearray object 7 - (vlax-safearray-get-element var element) - Returns an element from an array 8 - (vlax-safearray-get-l-bound var dim) - Returns the lower boundary (starting index) of a dimension of an array 9 - (vlax-safearray-get-u-bound var dim) - Returns the upper boundary (end index) of a dimension of an array 10 - (vlax-safearray-put-element var element value) - Adds or updates an element in an array 11 - (vlax-safearray-type var) - Returns the data type of a safearray 12 - (vlax-safearray->list var) - Returns the elements of a safearray in list form 13 - (vlax-tmatrix list) - Returns a suitable representation for a 4 x 4 transformation matrix to be used in VLA methods 14 - (vlax-variant-change-type var type) - Returns the value of a variant after changing it from one data type to another 15 - (vlax-variant-type var) - Returns the data type of a variant 16 - (vlax-variant-value var) - Returns the value of a variant 17 - (vlax-vla-object->ename obj) - Transforms a VLA-object to an AutoLISP entity
31.ActiveX Method Invocation
1 - (vlax-invoke-method obj method list) - Calls the specified method of an object 2 - (vlax-method-applicable-p obj method) - Determines if an object supports a particular method
32.ActiveX Object-Handling
1 - (vlax-dump-object obj) - Lists an object's methods and properties 2 - (vlax-erased-p obj) - Determines whether an object was erased 3 - (vlax-get-acad-object) - Retrieves the top-level AutoCAD application object for the current AutoCAD session 4 - (vlax-method-applicable-p obj method) - Determines if an object supports a particular method 5 - (vlax-object-released-p obj) - Determines if an object has been released 6 - (vlax-read-enabled-p obj) - Determines whether an object can be read 7 - (vlax-release-object obj) - Releases a graphical object 8 - (vlax-typeinfo-available-p obj) - Determines whether type library information is present for the specified type of object 9 - (vlax-write-enabled-p obj) - Determines whether an AutoCAD drawing object can be modified
33.ActiveX Property-Handling
1 - (vlax-get-property obj property) - Low-level property get function. May be used for custom ActiveX object 2 - (vlax-property-available-p obj prop [T]) - Determines whether an object has a specified property 3 - (vlax-put-property obj property arg) - Low-level property set function
34.Curve Measurement
1 - (vlax-curve-getArea curve-obj) - Returns the area inside the curve 2 - (vlax-curve-getClosestPointTo curve-obj givenPnt [extend]) - Returns the point (in WCS coordinates) on a curve that is nearest to the specified point 3 - (vlax-curve-getClosestPointToProjection curve-obj givenPnt normal [extend]) - Returns the closest point (in WCS) on a curve after projecting the curve onto a plane 4 - (vlax-curve-getDistAtParam curve-obj param) - Returns the length of the curve's segment from the curve's beginning to the specified parameter 5 - (vlax-curve-getDistAtPoint curve-obj point) - Returns the length of the curve's segment between the curve's start point and the specified point 6 - (vlax-curve-getEndParam curve-obj) - Returns the parameter of the endpoint of the curve 7 - (vlax-curve-getEndPoint curve-obj) - Returns the endpoint (in WCS coordinates) of the curve 8 - (vlax-curve-getFirstDeriv curve-obj param) - Returns the first derivative (in WCS coordinates) of a curve at the specified location 9 - (vlax-curve-getParamAtDist curve-obj point) - Returns the parameter of a curve at the specified distance from the beginning of the curve 10 - (vlax-curve-getParamAtPoint curve-obj dist) - Returns the parameter of the curve at the point 11 - (vlax-curve-getPointAtDist curve-obj dist) - Returns the point (in WCS coordinates) along a curve at the distance specified by the user 12 - (vlax-curve-getPointAtParam curve-obj param) - Determines the point on the curve that corresponds to the paramparameter and returns the point 13 - (vlax-curve-getSecondDeriv curve-obj param) - Returns the second derivative (in WCS coordinates) of a curve at the specified location 14 - (vlax-curve-getStartParam curve-obj) - Returns the start parameter on the curve 15 - (vlax-curve-getStartPoint curve-obj) - Returns the start point (in WCS coordinates) of the curve 16 - (vlax-curve-isClosed curve-obj) - Determines if the specified curve is closed (i.e., start point is same as endpoint) 17 - (vlax-curve-isPeriodic curve-obj) - Determines if the specified curve has an infinite range in both directions and there is a period value dT, such that there is a point on curve at ( u + dT) = point on curve ( u), for any parameter u 18 - (vlax-curve-isPlanar curve-obj) - Determines if there is a plane that contains the curve
35.Dictionary
1 - (vlax-ldata-delete dict key) - Erases AutoLISP data from a drawing dictionary 2 - (vlax-ldata-get dict key [ default-data]) - Retrieves AutoLISP data from a drawing dictionary 3 - (vlax-ldata-list dict) - Lists AutoLISP data in a drawing dictionary 4 - (vlax-ldata-put dict key data) - Stores AutoLISP data in a drawing dictionary 5 - (vlax-ldata-test data) - Determines whether data can be saved over a session boundary
36.Handling Drawing Objects
1 - (vlax-create-object "prog-id") - Creates a new instance of an ActiveX object 2 - (vlax-dump-object obj) - Lists an object's methods and properties 3 - (vlax-erased-p obj) - Determines whether an object was erased 4 - (vlax-get-acad-object) - Retrieves the top-level AutoCAD application object for the current AutoCAD session 5 - (vlax-get-object "prog-id") - Returns a running instance of an ActiveX object 6 - (vlax-get-or-create-object "prog-id") - Returns a running instance of an ActiveX object, if one exists, otherwise starts a new instance of the object 7 - (vlax-import-type-library :tlb-filename filename [ :methods-prefix mprefix :properties-prefix pprefix:constants-prefix cprefix]) - Imports information from a type library 8 - (vlax-method-applicable-p obj method) - Determines whether an object supports a particular method 9 - (vlax-object-released-p obj) - Determines whether an object has been released 10 - (vlax-read-enabled-p obj) - Determines whether an object can be read 11 - (vlax-release-object obj) - Releases a drawing object 12 - (vlax-typeinfo-available-p obj) - Determines whether type library information is present for the specified type of object 13 - (vlax-write-enabled-p obj) - Determines whether an AutoCAD drawing object can be modified
37.Reactors
1 - (vl-load-com) - Loads AutoLISP reactor support functions and other AutoLISP extensions 2 - (vlr-acdb-reactor data callbacks) - Constructs a database (global) reactor object 3 - (vlr-add obj) - Enables a disabled reactor object 4 - (vlr-added-p obj) - Tests to determine whether a reactor object is enabled 5 - (vlr-beep-reaction [args]) - Produces a beep sound 6 - (vlr-command-reactor data callbacks) - Constructs an editor reactor that notifies of a command event 7 - (vlr-current-reaction-name) - Returns the name (symbol) of the current event, if called from within a reactor's callback 8 - (vlr-data obj) - Returns application-specific data associated with a reactor 9 - (vlr-data-set obj data) - Overwrites application-specific data associated with a reactor 10 - (vlr-deepclone-reactor obj data) - Constructs an editor reactor object that provides notification of deep clone events 11 - (vlr-docmanager-reactor obj data) - Constructs a reactor object that provides notification of MDI-related events 12 - (vlr-dwg-reactor obj data) - Constructs an editor reactor object that provides notification of a drawing event (for example, opening or closing a drawing file) 13 - (vlr-dxf-reactor obj data) - Constructs an editor reactor object that notifies of an event related to reading or writing of a DXF file 14 - (vlr-editor-reactor data callbacks) - Constructs an editor (global) reactor object 15 - (vlr-insert-reactor data callbacks) - Constructs an editor reactor object that notifies of an event related to block insertion 16 - (vlr-linker-reactor data callbacks) - Constructs a linker (global) reactor object 17 - (vlr-lisp-reactor data callbacks) - Constructs an editor reactor object that notifies of a LISP event 18 - (vlr-miscellaneous-reactor data callbacks) - Constructs an editor reactor object that does not fall under any of the other editor reactor types 19 - (vlr-mouse-reactor data callbacks) - Constructs an editor reactor object that provides notification of a mouse event (for example, a double-click) 20 - (vlr-notification reactor) - Determines whether or not a reactor's callback function will execute if its associated namespace is not active 21 - (vlr-object-reactor owners data callbacks) - Constructs an object reactor object 22 - (vlr-owner-add reactor owner) - Adds an object to the list of owners of an object reactor 23 - (vlr-owner-remove reactor owner) - Removes an object from the list of owners of an object reactor 24 - (vlr-owners reactor) - Returns the list of owners of an object reactor 25 - (vlr-pers reactor) - Makes a reactor persistent 26 - (vlr-pers-list [reactor]) - Returns a list of persistent reactors in the current drawing 27 - (vlr-pers-p reactor) - Determines whether or not a reactor is persistent 28 - (vlr-pers-release reactor) - Makes a reactor transient 29 - (vlr-reaction-name reactor-type) - Returns a list of all callback conditions for this reactor type 30 - (vlr-reaction-set reactor event function) - Adds or replaces a callback function in a reactor 31 - (vlr-reactions reactor) - Returns a list of pairs ( event-name. callback_function) for the reactor 32 - (vlr-reactors [reactor-type ...]) - Returns a list of reactors of the specified types 33 - (vlr-remove reactor) - Disables a reactor 34 - (vlr-remove-all reactor-type) - Disables all reactors of the specified type 35 - (vlr-set-notification reactor 'range) - Defines whether or not a reactor's callback function will execute if its associated namespace is not active 36 - (vlr-sysvar-reactor data callbacks) - Constructs an editor reactor object that provides notification of a change to a system variable 37 - (vlr-toolbar-reactor data callbacks) - Constructs an editor reactor object that provides notification of a change to the bitmaps in a toolbar 38 - (vlr-trace-reaction) - A pre-defined callback function that prints one or more callback arguments in the Trace window 39 - (vlr-type reactor) - Returns a symbol representing the reactor type 40 - (vlr-types) - Returns a list of all reactor types 41 - (vlr-undo-reactor data callbacks) - Constructs an editor reactor object that provides notification of an undo event 42 - (vlr-wblock-reactor data callbacks) - Constructs an editor reactor object that provides notification of an event related to writing a block 43 - (vlr-window-reactor data callbacks) - Constructs an editor reactor object that notifies of an event related to moving or sizing an AutoCAD window 44 - (vlr-xref-reactor data callbacks) - Constructs an editor reactor object that provides notification of an event related to attaching or modifying XREF
38.VLX Namespace
1 - (vl-arx-import [ function | application]) - Imports ADS-DEFUN functions into a separate-namespace VLX 2 - (vl-doc-export 'function) - Makes a function loaded in a VLX namespace available to the current document 3 - (vl-doc-import ['function | application]) - Imports a function that was previously exported from another separate-namespace VLX 4 - (vl-doc-ref symbol) - Retrieves the value of a variable from the namespace of the associated document 5 - (vl-doc-set symbol value) - Sets the value of a variable in the associated document's namespace 6 - (vl-exit-with-error "msg") - Passes control from a VLX error handler to the error function of the associated document namespace 7 - (vl-exit-with-value value) - Returns a value to the document namespace from which the VLX was invoked 8 - (vl-list-exported-functions [“appname”]) - Lists all functions exported by the specified application, or all exported functions if no application is specified 9 - (vl-list-loaded-vlx) - Returns a list of all separate-namespace VLX files associated with the current document 10 - (vl-unload-vlx "appname") - Unloads a VLX that is loaded in its own namespace (a separate-namespace VLX) 11 - (vl-vlx-loaded-p "appname") - Determines whether a VLX is loaded in its own namespace
39.Namespace Communication
1 - (vl-bb-ref 'variable) - Returns the value of a variable from the blackboard namespace 2 - (vl-bb-set 'variable value) - Sets the value of a variable in the blackboard namespace 3 - (vl-load-all "filename") - Loads a file into all open AutoCAD documents, and into any document subsequently opened during the current AutoCAD session 4 - (vl-propagate 'variable) - Copies the value of a variable into all open AutoCAD documents, and into any document subsequently opened during the current AutoCAD session