AutoCAD/Insuppressible Dialog Boxes
Expert: Bill DeShawn - 9/6/2011
QuestionQUESTION: For command dialog boxes that cannot be suppressed, how can an AutoLisp routine automatically enter data asked by the dialog box?
ANSWER: Dave:
Please refresh my memory. What is the command that has no way to suppress the dialog box?
Bill DeShawn
http://my.sterling.net/~bdeshawn
---------- FOLLOW-UP ----------
QUESTION: VREZBOM is the command, it is from VisionREZ, an add on to AutoCAD Architechture
ANSWER: Dave:
I have no idea if the dialogs are driven by new core commands or by ARX routines, or by LISP. If you turn off command dialog boxes with CMDDIA (set to 0), will you get a command line version of the command that you can use with LISP? (command "roofmake"... or similar and then get something back like "Sawn rafters; Mfd. trusses S or M? <M>"? hopefully. Then at the end of the routine, set CMDDIA back to original setting. Or is there another version of the command like with a minus sign? (command "-roofmake" ...
Bill DeShawn
http://my.sterling.net/~bdeshawn
---------- FOLLOW-UP ----------
QUESTION: There is not a secondary version of the command and cmdia, filedia do not suppress the dialog box. If AutoLISP cannot work around the dialog box, do you know of another programming language that can?
AnswerOK, so that sounds like the commands are not added core commands, but possibly AutoCAD or ARX functions. So therefore, no. You can't suppress AutoLISP/DCL dialog boxes, if that's what's going on. On another forum (CADtutor), there is another similar request, and the outlook for a way to fix it would be to get the LSP file and edit it with an option to go to dialog or to command line and to create a command line version. You can create a non-dialog version yourself in a separate LSP file, and call it up from from the original LISP routine similarly to the solution one of the responders talks about in this thread:
http://www.cadtutor.net/forum/showthread.php?55684-LISP-routine-to-bypass-DCL-op
If you need help doing that, let me know, or perhaps create a whole new routine that is non-dialog.
Keep in touch
Bill DeShawn
http://my.sterling.net/~bdeshawn