In what situation command prompt appears instead of a dialog boxes?

In what situation command prompt appears instead of a dialog boxes?

If a file command is imported from a script or AutoLISP/ObjectARX/ADSRX a command prompt appears instead of a dialog box.