Autolisp DCL Functions PDF
Autolisp DCL Functions PDF
by Kenny Ramage
Function Description
(action_tile key action- Assigns an action to evaluate the user selected specif tile in a
expression) dialog box
(add_list string) Adds or modifies a string in the currently active dialog box list
(client_data_tile key Associates application-managed data with a dialog box tile
clientdata)
(dimx_tile key) and Retrieves the dimensions of a tile in dialog box units
(dimy_tile key)
(done_dialog [status]) Terminates a dialog box
The key argument is a string that specifies the tile and is case
sensitive. The attribute argument specifies the name of the attribute
as it appears in the tile's DCL description. Both the key and
attribute arguments are strings. The value returned is the attribute's
initial value as specified in its DCL description; it does not reflect
changes to the state of the tile that come about with user input or
set_tile calls. Returns the attribute value as a string.
(get_tile key) Retrieves the current run-time value of a dialog box tile
The key argument is a string that specifies the tile and is case
sensitive. It returns the tile's value as a string.
(load_dialog dclfile) Loads a DCL file
The dclfile argument is a string that specifies the DCL file to load.
If the dclfile argument does not specify a file extension, .dcl is
assumed. Returns a positive integer value (dcl_id) if successful,
and returns a negative integer if it can't open the file. The dcl_id is
used as a handle in subsequent new_dialog and unload_dialog calls.
The key argument is a string that specifies the tile and is case
sensitive. The mode argument is an integer value. The mode
argument values are described in the following table.
The dlgname argument is a string that specifies the dialog box, and
dcl_id identifies the DCL file (you must have obtained its value
from the load_dialog call).
The default action is evaluated when the user picks an active tile
that doesn't have an action or callback explicitly assigned to it by
action_tile or in DCL.
The key argument is a string that specifies the tile, and value is a
string that names the new value to assign (initially set by the value
attribute).
sldname or libname Displays an AutoCAD slide in the currently active dialog box
(sldname) image tile
The slide can be a slide file (.sld) or a slide in a slide library file
(.slb): the sldname argument specifies it as you would specify it for
the VSLIDE command or for a menu file.
The key argument is a string that specifies the dialog box tile. The
key argument is case sensitive. The operation argument is an
integer value whose meaning is summarized in the following table.
Note Do not use the set_tile function between start_list and end_list
function calls.
(term_dialog) Terminates all current dialog boxes as if the user had canceled
each of them
Unloads the DCL file associated with dcl_id (which was obtained
from a previous new_dialog call). Always returns nil.
(vector_image x1 y1 x2 y2 Draws a vector in the currently active dialog box image
color)
This function draws a vector in the currently active dialog box
image (opened by start_image) from the point (x1,y1) to (x2,y2).
The color parameter is an AutoCAD color number or one of the
logical color numbers shown in the following table.
The origin (0,0) is the upper-left corner of the image. You can
obtain the coordinates of the lower-right corner by calling the
dimension functions (dimx_tile and dimy_tile).