dos_cmdline - dalefugier/DOSLib GitHub Wiki

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

Syntax

(dos_cmdline [T])

Parameters

T

If specified, text from AutoCAD's history window will be returned. Otherwise, text from AutoCAD's command-line window will be returned.

Returns

A string of text from either the command-line window or the history windows if successful.

nil on error.

Example

Command: (dos_cmdline)
"Command: (dos_cmdline)"

Command: (dos_cmdline t)
"Regenerating model.DOSLib Version 6.0.0 (Jan 30 2002)Copyright © 1992-2002, Robert McNeel & AssociatesAutoCAD Express Tools Copyright © 2000 Autodesk, Inc.AutoCAD menu utilities loaded.Command: (dos_cmdline)\"Command: (dos_cmdline)\"Command: (dos_cmdline t)"