You are here:

AutoCAD/Insuppressible Dialog Boxes

Advertisement


Question
QUESTION: 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?

Answer
OK, 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  

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Bill DeShawn

Expertise

I can address all 2-D questions and some 3-D questions. I do programming in AutoLISP if it doesn`t involve solid modeling. I can also address menu customization issues and can help you find answers to questions I can`t answer by taking your question directly to Autodesk via their newsgroups.

Experience

I used to do electronic and mechanical design for a flat panel monitor manufacturer, and now I do architectural drafting for an architect. I did and do AutoLISP and menu customization and take pride in making my lisp routines to do the work exactly the way the client likes them done.

Publications
I had a routine published in CADENCE magazine (no longer in publication and taken over by CADALYST). Some of my routines are published on my website at http://my.sterling.net/~bdeshawn

©2012 About.com, a part of The New York Times Company. All rights reserved.