Share
 
 

vl-mkdir (AutoLISP)

Creates a directory

Supported Platforms: Windows, Mac OS, and Web

Signature

(vl-mkdir directoryname)
directoryname

Type: String

The name of the directory you want to create.

Return Values

Type: T or nil

T if successful, nil if the directory exists or if unsuccessful.

Release Information

    Releases:

  • AutoCAD R14 and later on Windows
  • AutoCAD 2011 and later on Mac OS

History

    AutoCAD 2021

  • directoryname argument previously accepted an ASCII text string, but now accepts a Unicode text string.
  • LISPSYS system variable controls which AutoLISP engine is used and the behavior of the function.
    • 0 - ASCII character support (legacy behavior)
    • 1 or 2 - Unicode character support
    Note: After the value of the LISPSYS system variable has been changed, AutoCAD must be restarted for the change to take affect.

Examples

Windows
(vl-mkdir "c:\\mydirectory")
T
Mac OS and Web
(vl-mkdir "/mydirectory")
T

Was this information helpful?