display command output in lisp on floating command line
How can I get bcad's floating mini-frame command line to display the intermediate output from commands within lisp routines?
Simple example:
Nothing appears in the floating command line except the line above that I just entered. If I leave off the
I have CmdLineUseNewFrame=1, CLiPromptlines=10, CmdEcho=1
I tried adding code to temporarily set CmdLineUseNewFrame to 0 but couldn't see any difference.
Simple example:
(command "_.audit" "_y")(princ)
Nothing appears in the floating command line except the line above that I just entered. If I leave off the
(princ)
, it does display "nil", of course. In either case, I can hit F2 to expand the command history to see the output I want, e.g., "...XX objects audited. Total errors found during audit YY, fixed ZZ". Whereas if I just run the regular audit command, however, those lines of information appear above the floating command line, briefly, before fading away, which is what I'm after. I have CmdLineUseNewFrame=1, CLiPromptlines=10, CmdEcho=1
I tried adding code to temporarily set CmdLineUseNewFrame to 0 but couldn't see any difference.
0
Comments
-
If you dont use logfiles then you can logfileon, do audit, logfileoff then re-read the log file and say put in a Alert box.0
-
With the "docked commandline", you will also see the previous output; that docked commandline supports scrolling, like the F2 text window.0
-
Right. Is there a way to programmatically switch to docked commandline to see that output, maybe for a quick pause, and then switch back to floating to continue working?Torsten Moses said:With the "docked commandline", you will also see the previous output; that docked commandline supports scrolling, like the F2 text window.
I wrote this particular lisp because I was tired of always entering "audit" [enter] + "yes" [enter], which I'm in the habit of doing frequently. So I finally got around to automating the "yes" [enter] steps. But now I miss seeing how many errors were found and fixed (and worry what else I might miss if I start scripting more routines...). Clicking to view command history or to reposition the command line defeats my goal of saving a couple clicks.
Before you gave us the floating option, I didn't mind 3 or 4 rows of docked command lines, but now I'm spoiled and don't want to give up the extra real estate!0 -
> Right. Is there a way to programmatically switch to docked commandline to see that output, maybe for a > quick pause, and then switch back to floating to continue working?
there are (textscr) and (graphscr) fucntions to switch between the text window and the display window :-)0 -
Thank you. Exactly what I wanted!Torsten Moses said:> there are (textscr) and (graphscr) fucntions to switch between the text window and the display window :-)
0 -
Try
(defun C:QFIX () (command "._Audit" "_Y") (Princ (getvar 'LASTPROMPT)) (prin1) )
Regards,
Jason Bourhill
BricsCAD V22 Ultimate
CAD Concepts
0 -
even better!Jason Bourhill said:Try
(defun C:QFIX () (command "._Audit" "_Y") (Princ (getvar 'LASTPROMPT)) (prin1) )
Regards,
Jason Bourhill
BricsCAD V22 Ultimate
CAD Concepts0