OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: donnieworld on March 09, 2017, 01:32:33 PM

Title: File and Command Dialogs are disabled after OpenDCL Palette is Loaded
Post by: donnieworld on March 09, 2017, 01:32:33 PM
After I load an OpenDCL project that contains a palette, the file dialog boxes and command dialog boxes in BricsCAD are not displayed. The command line version of commands are run. Setting FILEDIA and CMDDIA do not change the behavior.

Any help is appreciated.
Title: Re: File and Command Dialogs are disabled after OpenDCL Palette is Loaded
Post by: owenwengerd on March 11, 2017, 10:13:00 AM
The most common cause of this is reset system variables (by a palette event handler). If you're certain it's not a system variable issue, then I'd test the Palette sample (OPENDCLDEMO -> double-click on Palette) to see if it works correctly. Dialogs are not displayed if a lisp function is executing, so maybe somehow whatever lisp code you use to load your palette is stuck and never returns while an inner function is executing your commands.
Title: Re: File and Command Dialogs are disabled after OpenDCL Palette is Loaded
Post by: donnieworld on March 14, 2017, 09:49:50 AM
The demo runs and behaves as expected. It's my code ... makes perfect sense, thanks!