ObjectDCL Banner

BrowseFolder Method

Description

This method will prompt the user with a dialog box that allows the selection of directories or drives only.

Parameters

Description
String specifying the description to display.
DefaultDirectory
String identifying default directory to browse.

Return Values

Returns the following according to the situation:

  • String specifying the folder the user picked.
  • Nil if already browsing or the user pick nothing.

AutoLISP Syntax

CopyCode imageCopy Code
(Odcl_Control_BrowseFolder 
		Description [as String]
		[Optional] DefaultDirectory [as String])

Example

CopyCode imageCopy Code
; Prompt the user to locate a place to store the file
(Odcl_Control_BrowseFolder "Select target")