ObjectDCL Banner

UnloadProject Method

Description

This method will unload an ObjectDCL project.

Parameters

FilePath
String identifying the project file by name. It can be an absolute path. When a relative path or a simple project file name is passed, ObjectDCL will ask AutoCAD to search for the project file in its search paths.

Return Values

Returns the following according to the situation:

  • T when successful.
  • Nil if the project file is not loaded, when attempting to unload an ODS file or if a dialog is still showing.

AutoLISP Syntax

CopyCode imageCopy Code
(Odcl_Control_UnloadProject 
		FilePath [as String])

Remarks

An ODS file cannot be unloaded.

If you use the classic calling convention, consider that the value FilePath is what has to be passed on the ProjectFile parameter of methods.

Example

CopyCode imageCopy Code
; Load my project wherever it is
(Odcl_UnloadProject "MyProject.odc")

; Load my project where it is
(Odcl_Control_UnloadProject "C:\Program Files\MyApplication\MyProject.odc")

See Also

LoadProject, LoadProjectEx