dos_dwgpreview - dalefugier/DOSLib GitHub Wiki

Displays a list of drawings and their thumbnail preview images. The function is useful for selecting drawings to open or blocks to insert.

Syntax

(dos_dwgpreview title path [T])
(dos_dwgpreview title path-list [T])

Parameters

title

A string containing the dialog box title.

path

A string identifying an existing directory. If nil is specified, the current directory is used.

path-list

A list containing fully qualified drawing file path strings.

T

Toggles the background color of the preview image from the default color of black to white.

Returns

A qualified path to the selected file.

nil on cancel or on error.

Examples

Command: (dos_dwgpreview "Preview a drawing" "C:\\Program Files\\AutoCAD 2010\\Sample")
"C:\\Program Files\\AutoCAD 2010\\Sample\\A-01.dwg"