{"id":1853,"date":"2014-06-13T14:07:06","date_gmt":"2014-06-13T12:07:06","guid":{"rendered":"http:\/\/www.bim-me-up.com\/?p=1853"},"modified":"2019-02-04T14:01:41","modified_gmt":"2019-02-04T13:01:41","slug":"messed-quick-access-toolbar-revit-resetting-uistate-dat","status":"publish","type":"post","link":"https:\/\/bim-me-up.com\/en\/messed-quick-access-toolbar-revit-resetting-uistate-dat\/","title":{"rendered":"Revit Language packs and QAT problems - Resetting UIstate.dat"},"content":{"rendered":"<p>If you are running different language versions of Revit on one machine, you may have noticed that your Quick Access Toolbar gets messed up every time you launch Revit using a language pack shortcut.<\/p>\n<p>Maybe not a big deal for some of you, but I really miss my Default 3D or Switch Windows buttons!<\/p>\n<p><!--more--><\/p>\n<p>Actually, there is an easy way to fix this: you just need to delete your old UIstate.dat before launching Revit, which you can find in the following directory (if you have Revit 2014 one-box running on Windows 7, otherwise you may need to adapt the link):<\/p>\n<p><span style=\"text-decoration: underline;\"><em>%APPDATA%\\Autodesk\\Revit\\Autodesk Revit 2014<\/em><\/span><\/p>\n<p>A new one UIstate.dat is created each time you launch Revit using the default settings.<br \/>\nI saved the Link to my Favorites and kept deleting the UIstate.dat every time I switched the languages, but still it was kind of tedious - that's why I created a little script in VB, which is doing this job for me. The code is very simple and looks like this:<\/p>\n<p>&nbsp;<\/p>\n<p><code>Dim userName<\/code><br \/>\n<code>Set objNetwork = CreateObject(\"WScript.Network\")<\/code><br \/>\n<code>userName = objNetwork.UserName<\/code><br \/>\n<code>'wscript.echo userName<\/code><br \/>\n<code>Set objFSO = CreateObject(\"Scripting.FileSystemObject\")<\/code><br \/>\n<code>objFSO.DeleteFile \"C:\\\\\\\\Users\\\\\\\\\" &amp; userName &amp; \"\\\\\\\\AppData\\\\\\\\Roaming\\\\\\\\Autodesk\\\\\\\\Revit\\\\\\\\Autodesk Revit 2014\\\\\\\\UIstate.dat\"<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I placed the vbs file on my desktop and before launching Revit I just need to double click it in order to flush the UIstate.dat.<\/p>\n<p>You can download the vbs file <a href=\"http:\/\/bim-me-up.com\/en\/download\/DeleteRevitUIstate.vbs\/\">here<\/a>, or you can just copy the code above, insert it in a text file, and change the file ending to .vbs<\/p>\n<p><span style=\"text-decoration: underline;\">Please note<\/span> - deleting the UIstate.dat is resetting your QAT and your Ribbon, so if you are customizing your Revit UI a lot, this may not be the right solution for you. As I'm using this setup on a testing machine, it's a perfect solution!<\/p>\n<p>Please use at your own risk \ud83d\ude09<\/p>","protected":false},"excerpt":{"rendered":"If you are running different language versions of Revit on one machine, you may have noticed that your...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[88,104,52,69],"class_list":{"0":"post-1853","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-revit","7":"tag-blog","8":"tag-enu","9":"tag-revit-2","10":"tag-vbs","11":"cs-entry","12":"cs-video-wrap"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2lEa7-tT","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/posts\/1853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/comments?post=1853"}],"version-history":[{"count":1,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/posts\/1853\/revisions"}],"predecessor-version":[{"id":456111,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/posts\/1853\/revisions\/456111"}],"wp:attachment":[{"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/media?parent=1853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/categories?post=1853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/tags?post=1853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}