developer:doslib


DOSLib

Summary: DOSLib, is a library of AutoLISP-callable functions that provides a variety of Windows operating system capabilities to AutoCAD.

Contents:

Download

Overview

DOSLib, is a library of AutoLISP-callable functions that provides a variety of Windows operating system capabilities to AutoCAD. Written as an AutoCAD ObjectARX application, DOSLib extends the AutoLISP programming language by providing the following functionality:

  • Drives: Check for drives, change between drives, and check available disk space.
  • Paths: Manipulate path specifications.
  • Folders: Create, rename, remove, select, and change folders. Return special operating system folders.
  • Files: Copy, delete, move, rename, and select files; get directory listings, search and find multiple instances of files, and change file attributes.
  • Print: Get and set default printers, and spool print files.
  • Configuration: Manipulate Windows-style initialization (INI) files, and access the Windows Registry.
  • Processes: Run internal OS commands or other programs.
  • Interface: Get strings, integers, reals, and lists from the user. Display Windows message boxes, progress meters, and splash screens.
  • Strings: Tokenize strings, extract characters, find characters, insert, remove, and replace characters, and trim characters.
  • AutoCAD: Save all and close all open files. Preview drawings and list xrefs.
  • System: Get system information, sort lists, change the system date and time, manipulate the keyboard, and play sounds.

System Requirements

DOSLib 8.0 requires AutoCAD 2007, 2008, 2009, or 2010, or Bricscad Pro Version 9.3.9.

DOSLib 7.8 requires AutoCAD 2007, 2008 or 2009.

DOSLib 6.1 requires AutoCAD 2000, 2000i, 2002, 2004, 2005, or 2006.

DOSLib 5.1 requires AutoCAD R14 or 2000.

DOSLib 4.4 requires AutoCAD R13, R14, 2000, or IntelliCAD 98-compatible.

DOSLib 3.0 requires AutoCAD R12 or R13 (DOS or Windows)

What's new in DOSLib 8.0?

dos_imagelist - Returns a list to all raster images in the active document.

dos_olelist - Returns a list to all linked OLE objects in the active document.

dos_plinewinding - Determines whether a closed polyline winds clockwise or counterclockwise.

dos_proxyclean - Removes all of the of proxy objects from the current drawing.

dos_proxycount - Returns the number of proxy objects in the current drawing.

dos_purgexdata - Removes all extended entity data (xdata) that is attached to an entity regardless of the APPNAME.

Alphabetical Function Listing

dos_about - Displays version and copyright information.

dos_absolutepath - Converts a relative path to an absolute path.

dos_acadmem - Returns AutoCAD memory statistics.

dos_acitorgb - Converts an AutoCAD color into an RGB color.

dos_adminp - Checks the administrative status of the current user.

dos_arxlist - Returns a list of loaded ARX applications.

dos_attrib - Returns or sets file attributes.

dos_beep - Plays a Windows sound.

dos_capslock - Manipulates the <Caps Lock> key.

dos_cdate - Returns a formatted date/time string.

dos_chdir - Changes the current working directory.

dos_checklist - Displays a dialog box with a checkable listbox.

dos_chkdsk - Returns drive space statistics.

dos_cleardbmod - Clears the DBMOD, or drawing modification status, system variable.

dos_clipboard - Returns or sets Windows Clipboard text.

dos_closeall - Closes all open AutoCAD drawing files.

dos_cmdargs - Retrieves the command-line arguments used to launch AutoCAD.

dos_cmdline - Returns text from AutoCAD's command-line or history window.

dos_combolist - Displays a dialog box with a combo listbox.

dos_command - Returns an internal command.

dos_compactpath - Truncates a path to fit within a certain number of characters.

dos_computer - Returns or sets the computer name.

dos_copy - Copies a file.

dos_curvearea - Returns the area bound by a closed curve entity.

dos_custominfo - Returns of modifies custom drawing summary information.

dos_date - Returns or sets the system date.

dos_delete - Deletes a file.

dos_deltree - Deletes a directory and all of its subdirectories.

dos_demandload - Changes the demand-loading method used by DOSLib.

dos_dir - Returns a list of files.

dos_dirattrib - Returns or sets directory attributes.

dos_dirp - Checks for the existence of a directory.

dos_dirsize - Returns the size of a directory.

dos_dirtree - Returns a list of directories and subdirectories.

dos_dos2unix - Converts a DOS-formatted file into a Unix-formatted file.

dos_drive - Returns or changes the current drive.

dos_drivep - Checks for the existence of a drive.

dos_drives - Returns a list of available drives.

dos_drivetype - Returns the type of a drive.

dos_dwgpreview - Displays a list of drawings and their thumbnail preview images.

dos_dwgver - Returns the version of an AutoCAD drawing file.

dos_editbox - Displays a multi-line edit control dialog box.

dos_editlist - Displays a dialog box with a editable listbox.

dos_encrypt - Encrypts a file with a password.

dos_execute - Runs an external program.

dos_exewait - Runs a program and waits for completion.

dos_extractpreview - Extracts the preview image from the active document.

dos_file - Returns detailed file information.

dos_filedate - Returns a list of files and dates.

dos_filep - Checks for the existence of a file.

dos_filesize - Returns a list of files and sizes.

dos_filesys - Returns the file system type of a drive.

dos_find - Recursively searches for instances of files.

dos_format - Prepares a disk or diskette for use.

dos_fullpath - Converts a partial path to a fully qualified path.

dos_getcancel - Displays a modeless dialog box with a cancel button.

dos_getcolor - Displays a color selection dialog box.

dos_getdir - Displays a Windows “browse for folder” dialog box.

dos_getfiled - Displays a single-selection file dialog box.

dos_getfilem - Displays a multiple-selection file dialog box.

dos_getfilenav - Displays an AutoCAD-style file dialog box.

dos_getini - Returns a value from a Windows INI-style file.

dos_getint - Dialog box equivalent to getint.

dos_getpassword - Displays a password entry dialog box.

dos_getprn - Returns the current Windows printer.

dos_getprogress - Displays a modeless dialog box with a progress meter.

dos_getreal - Dialog box equivalent to getreal.

dos_getsecret - Retrieves a password string from the command line.

dos_getstring - Dialog box equivalent to getstring.

dos_guidgen - Returns a random, globally unique identifier.

dos_hatcharea - Returns the area of a hatch object.

dos_help - Returns a list of DOSLib functions.

dos_hideobjects - Hides one or more AutoCAD entities.

dos_hlstorgb - Converts an HLS color into RGB format.

dos_hostname - Returns the system's hostname.

dos_htmlbox - Displays a web page in a dialog box.

dos_htmlhelp - Displays the contents of an HTML help file.

dos_imagelist - Returns a list to all raster images in the active document.

dos_ipaddress - Returns the system's IP addresses.

dos_isacad64 - Determines if AutoCAD is 64-bit.

dos_isbreak - Checks for a console break.

dos_isinsidecurve - Verifies a point lies inside of a closed, planar curve.

dos_ispathrelative - Determines if it is relative.

dos_ispathroot - Determine if a path is a directory root.

dos_ispathsameroot - Determines is two paths have a common root component.

dos_ispathunc - Determines if a path is a valid UNC for a server and share path.

dos_ispathurl - Determines if a path is a valid URL for a server and share path.

dos_ispoweruser - Checks the power user status of the current user.

dos_istextscr - Verifies the AutoCAD text screen is visible.

dos_isvlide - Verifies the Visual LISP IDE is open.

dos_iswin64 - Determines if Windows is 64-bit.

dos_label - Returns or sets the volume label of a drive.

dos_layerlistbox - Displays a list of AutoCAD layers in a Windows dialog box.

dos_linetypebox - Display AutoCAD's linetype selection dialog box.

dos_lisplist - Returns a list of loaded LISP files.

dos_listbox - Displays a dialog box with a listbox.

dos_longpath - Converts a short path name to a long path name.

dos_macaddress - Returns the system's MAC address.

dos_makepath - Creates a single path from components.

dos_massprops - Returns the mass properties of a 3-D solid entity.

dos_mem - Returns system memory information.

dos_mergefiles - Merges two or more files into a single file.

dos_mkdir - Makes a new directory.

dos_move - Moves a file.

dos_msgbox - Displays a message box.

dos_msgboxchk - Displays a “Do not show this dialog box” message box.

dos_msgboxex - Displays an extended message box.

dos_multilist - Displays a dialog box with a multiple selection listbox.

dos_numlock - Manipulates the <Num Lock> key.

dos_olelist - Returns a list to all linked OLE objects in the active document.

dos_openp - Checks the open status of a file.

dos_path - Returns the current search path.

dos_pathbackslash - Adds or removes a tailing backslash from a path string.

dos_pathextension - Add, replaces, or removes the file extension from a path string.

dos_pathquotes - Adds or removes double-quote characters to a path string.

dos_pause - Pauses program execution.

dos_plinecentroid - Returns the centroid of a closed, planar polyline.

dos_plinewinding - Determines whether a closed polyline winds clockwise or counterclockwise.

dos_popupmenu - Displays a context, or popup, menu.

dos_printers - Returns a list of Windows printers.

dos_processes - Returns a list of running processes.

dos_progbar - Manipulates the AutoCAD status bar progress meter.

dos_proplist - Displays a dialog box with a properties listbox.

dos_proxyclean - Removes all of the of proxy objects from the current drawing.

dos_proxycount - Returns the number of proxy objects in the current drawing.

dos_purgexdata - Removes all extended entity data (xdata) that is attached to an entity regardless of the APPNAME.

dos_pwdir - Returns the current working directory.

dos_random - Returns a pseudo-random number.

dos_recent - Adds to or clears the Windows recently used document list.

dos_regaddkey - Adds a new key to the Windows Registry.

dos_regdel - Removes a key or value from the Windows Registry.

dos_regdelkey - Deletes a key from the Windows Registry.

dos_regdelval - Deletes a value from the Windows Registry.

dos_regenumkeys - Enumerates keys from the Windows Registry.

dos_regenumnames - Enumerates value names from the Windows Registry.

dos_regget - Returns a string value or enumerates value names from the Windows Registry.

dos_reggetint - Returns an integer value from the Windows Registry.

dos_reggetstr - Returns a string value from the Windows Registry.

dos_reggettype - Returns the value type of a entry in the Windows Registry.

dos_regkey - Enumerates value names from the Windows Registry.

dos_regset - Modifies a string value in the Windows Registry.

dos_regsetint - Modifies an integer value in the Windows Registry.

dos_regsetstr - Modifies a string value in the Windows Registry.

dos_relativepath - Creates a relative path from one file or folder to another.

dos_rename - Renames a file.

dos_rendir - Renames an existing directory.

dos_rgbtoaci - Converts an RGB color into an AutoCAD color.

dos_rgbtohls - Converts an RGB color into HLS format.

dos_rmdir - Removes a directory.

dos_saveall - Saves all open AutoCAD drawing files.

dos_scrolllock - Manipulates the <Scroll Lock> key.

dos_search - Searches for a file along a path.

dos_serialno - Returns the serial number of a drive.

dos_setini - Sets a value in a Windows INI-style file.

dos_setprn - Sets the current Windows printer.

dos_shellexe - Opens or prints a program or file.

dos_shortpath - Converts a long path name to a short path name.

dos_show - Controls the display of the AutoCAD window.

dos_showobjects - Shows, or unhides, one or more AutoCAD entities.

dos_sortlist - Sorts a list of numbers or strings.

dos_speaker - Plays a sound through the PC speaker.

dos_specialdir - Retrieves the path of a special directory.

dos_splash - Displays a modeless splash screen bitmap.

dos_splitpath - Breaks a full path name into its four components.

dos_spool - Spools a file to a Windows printer.

dos_strcase - Converts all the characters in this string to uppercase or lowercase characters.

dos_strcat - Concatenates multiple strings.

dos_strchar - Returns or sets a character at a given position.

dos_strcompare - Compares two strings.

dos_strdelete - Deletes a character or characters from a string.

dos_strexcluding - Extracts a substring that contains only the characters not in a set.

dos_strfind - Finds a character or substring inside a larger string.

dos_strfindoneof - Finds the first matching character from a set.

dos_strformat - Formats string similar to the sprintf C-Runtime library function.

dos_strformatcurrency - Formats a number as a currency string.

dos_strformatnumber - Formats a number as a number string.

dos_strincluding - Extracts a substring that contains only the characters in a set.

dos_strinsert - Inserts a substring at the given index within the string.

dos_strischar - Tests a character for a condition.

dos_strleft - Extracts the left part of a string.

dos_strlength - Returns the number of characters in a string.

dos_strmatch - Matches a string against a wildcard string.

dos_strmid - Extracts the middle part of a string.

dos_strremove - Removes indicated characters from a string.

dos_strreplace - Replaces indicated characters with other characters.

dos_strreverse - Reverses the characters in this string.

dos_strreversefind - Finds a character inside a larger string; starts from the end.

dos_strright - Extracts the right part of a string.

dos_strtokens - Converts a string of tokens into a list.

dos_strtrim - Trims leading and trailing characters from a string.

dos_strtrimleft - Trim leading characters from a string.

dos_strtrimright - Trim trailing characters from a string.

dos_subdir - Returns a list of subdirectories.

dos_summaryinfo - Returns of modifies drawing summary information.

dos_sysdir - Retrieves the path of Windows system directory.

dos_tempdir - Retrieves the path of temporary directory.

dos_tempfile - Generates a name for a temporary file.

dos_time - Returns or sets the system time.

dos_touch - Sets the date and time of files.

dos_traywnd - Displays a popup tray window.

dos_uncpath - Converts a path or filename into a UNC path or filename.

dos_unix2dos - Converts a Unix-formatted file into a DOS-formatted file.

dos_username - Returns the current user.

dos_ver - Returns the operating system version number.

dos_version - Returns the DOSLib version number.

dos_waitcursor - Manipulates the hourglass cursor.

dos_wav - Plays a waveform audio file.

dos_windir - Retrieves the path of Windows directory.

dos_winhelp - Displays a Windows Help file.

dos_xreflist - Returns a list of externally referenced files.

developer/doslib.txt · Last modified: 2010/01/26 16:37 (external edit) Driven by DokuWiki Recent changes RSS feed

 © 1997-2010 

McNeel North America Europe Latin AmericaAsia