by Fenton Webb
I didn’t realize how tricky it was to disable task dialogs programmatically until a developer asked me recently about it. What I’m talking about are these pesky dialogs that appear with either the “Do not show me this message again” or “Always use this choice in the future” texts…
These ‘hide dialog’ settings are stored in your %APPDATA%\Autodesk\AutoCAD 2014\R19.1\enu\Support\Profiles\Unnamed Profile\fixedprofile.aws under the HideableDialogs section.
You can access the previously ‘hidden’ dialogs (to bring them back) inside of AutoCAD via Options->System->Hidden Messages Settings button.
We currently only have an undocumented C++ API for accessing these settings. (by the way here’s the AdTaskDialog.h header file for accessing the below API)
1) Gain access to the hideable dialog settings object
AdHideableDialogSettingsDictionary* pDict = AdTaskDialog::GetHideableDialogSettingsDictionary();
2) To disable/enable a specific dialog, look at the FixedProfile.aws and extract the id string, e.g. for the XRef unresolved XRefs task dialog…
<HideableDialogs>
<HideableDialog id="Acad.UnresolvedReferenceFiles" title="Always ignore unresolved references and continue"
now call
pDict->SetResult("Acad.UnresolvedReferenceFiles", true);



Leave a Reply