Veteran tipster Leonid Nemirovsky shares a tip about using the INITDIA variable in AutoCAD-based LISP routines.
"In AutoCAD 2012, the variable INITDIA no longer exists, but I found a replacement on the AutoCAD forum. You can use the CUI (Customize User Interface) Editor to create a new command for writing AutoLISP routines.
"A standard dialog box will not appear as it did in previous versions (before AutoCAD 2012). Here is a routine you can use instead:
(defun c:hh ()
(initcommandversion 2)
(command "hatch" "t")
(princ)
(exit)
)
Notes from Cadalyst Tip Reviewer Brian Benton: INITDIA is an AutoLISP function that forces the display of the next command’s dialog box. Evidently it was removed in AutoCAD 2012, and the tipster has shown how to update your LISP routines to work in the newer releases of AutoCAD. |