- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a batch routine written in vb.net that will process multiple drawing files. I need to disable some of the nuisance warning dialogs. They uses to be handled by HideWarningDialogs and MoreHideWarningDialogs,not any more. I know AutoCAD saves the settings in FixedProfile.aws. I tried coping the file from the network not an easy way to disable the dialogs.
From http://adndevblog.typepad.com/autocad/2013/07/disable-task-dialogs-programmatically.html I have found the HideableDialogSettingsDictionary
Dim HideDic As Autodesk.Internal.Windows.HideableDialogSettingsDictionary = Autodesk.Windows.TaskDialog.HideableDialogSettingsDictionary
The following allows to get the value
HideDic.GetResult("MainFrame.CommandLineHideWindow")
The following allows you to edit an existing value. If you set to 0 it removes the override all together.
HideDic.SetResult("MainFrame.CommandLineHideWindow", 6)
I have tried HideDic.Add it requires the name sting and the the setting value if I use the integer it says it cannot convert integer to Autodesk.Internal.Windows.HideableDialogSettings.
Thanks in advance into any insight.
Solved! Go to Solution.