Site Tools

DOSLib Wiki



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.
  • Math: Trigonometric calculations, vector manipulation, statistical analysis, and more.
  • 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 9.0 requires:
    • AutoCAD 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 or 2015.
    • BricsCAD Pro V9, V10, V11, V12, V13, or V14.
  • 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?



developer/doslib.txt ยท Last modified: 2014/06/26 (external edit)