<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Load partial cui file in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2184378#M75519</link>
    <description>You are changing the CUI file, not the loaded image of it.&lt;BR /&gt;
&lt;BR /&gt;
You have to do something that causes AutoCAD to reload&lt;BR /&gt;
the main customization (CUI) file.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;GLOKHOV&gt; wrote in message news:5852899@discussion.autodesk.com...&lt;BR /&gt;
Hello!&lt;BR /&gt;
&lt;BR /&gt;
I try to load my menu at application start. But I can't see this menu in the menu bar after start. I see menu only after I "reload" current workspace in user interface customization dialog. Does have anybody any idea?&lt;BR /&gt;
&lt;BR /&gt;
        const String myCuiFile = @"D:\Visual Studio 2005\Projects\AutoCAD 2008\Cui\sits.cui";&lt;BR /&gt;
&lt;BR /&gt;
        public void Initialize()&lt;BR /&gt;
        {&lt;BR /&gt;
            String currentWorkSpace = (String)Application.GetSystemVariable("WSCURRENT");&lt;BR /&gt;
&lt;BR /&gt;
            CustomizationSection acadCustomSection = new CustomizationSection((String)Application.GetSystemVariable("MENUNAME") + ".cui");&lt;BR /&gt;
&lt;BR /&gt;
            if (acadCustomSection.PartialCuiFiles.Contains(myCuiFile) == false)&lt;BR /&gt;
            {&lt;BR /&gt;
                acadCustomSection.PartialCuiFiles.Add(myCuiFile);&lt;BR /&gt;
&lt;BR /&gt;
                CustomizationSection myCustomSection = new CustomizationSection(myCuiFile);&lt;BR /&gt;
                foreach (Workspace workspace in acadCustomSection.Workspaces)&lt;BR /&gt;
                {&lt;BR /&gt;
                    foreach (PopMenu menu in myCustomSection.MenuGroup.PopMenus)&lt;BR /&gt;
                    {&lt;BR /&gt;
                        WorkspacePopMenu workspaceMenu = new WorkspacePopMenu(workspace, menu);&lt;BR /&gt;
                        workspaceMenu.Display = 1;&lt;BR /&gt;
                    }&lt;BR /&gt;
                }&lt;BR /&gt;
&lt;BR /&gt;
                acadCustomSection.Save();&lt;BR /&gt;
            }&lt;BR /&gt;
&lt;BR /&gt;
            Application.SetSystemVariable("WSCURRENT", currentWorkSpace);&lt;BR /&gt;
        }&lt;/GLOKHOV&gt;</description>
    <pubDate>Wed, 20 Feb 2008 14:36:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-02-20T14:36:02Z</dc:date>
    <item>
      <title>Load partial cui file</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2184377#M75518</link>
      <description>Hello!&lt;BR /&gt;
&lt;BR /&gt;
I try to load my menu at application start. But I can't see this menu in the menu bar after start. I see menu only after I "reload" current workspace in user interface customization dialog. Does have anybody any idea?&lt;BR /&gt;
&lt;BR /&gt;
        const String myCuiFile = @"D:\Visual Studio 2005\Projects\AutoCAD 2008\Cui\sits.cui";&lt;BR /&gt;
&lt;BR /&gt;
        public void Initialize()&lt;BR /&gt;
        {&lt;BR /&gt;
            String currentWorkSpace = (String)Application.GetSystemVariable("WSCURRENT");&lt;BR /&gt;
&lt;BR /&gt;
            CustomizationSection acadCustomSection = new CustomizationSection((String)Application.GetSystemVariable("MENUNAME") + ".cui");&lt;BR /&gt;
&lt;BR /&gt;
            if (acadCustomSection.PartialCuiFiles.Contains(myCuiFile) == false)&lt;BR /&gt;
            {&lt;BR /&gt;
                acadCustomSection.PartialCuiFiles.Add(myCuiFile);&lt;BR /&gt;
&lt;BR /&gt;
                CustomizationSection myCustomSection = new CustomizationSection(myCuiFile);&lt;BR /&gt;
                foreach (Workspace workspace in acadCustomSection.Workspaces)&lt;BR /&gt;
                {&lt;BR /&gt;
                    foreach (PopMenu menu in myCustomSection.MenuGroup.PopMenus)&lt;BR /&gt;
                    {&lt;BR /&gt;
                        WorkspacePopMenu workspaceMenu = new WorkspacePopMenu(workspace, menu);&lt;BR /&gt;
                        workspaceMenu.Display = 1;&lt;BR /&gt;
                    }&lt;BR /&gt;
                }&lt;BR /&gt;
&lt;BR /&gt;
                acadCustomSection.Save();&lt;BR /&gt;
            }&lt;BR /&gt;
&lt;BR /&gt;
            Application.SetSystemVariable("WSCURRENT", currentWorkSpace);&lt;BR /&gt;
        }</description>
      <pubDate>Wed, 20 Feb 2008 11:00:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2184377#M75518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-20T11:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load partial cui file</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2184378#M75519</link>
      <description>You are changing the CUI file, not the loaded image of it.&lt;BR /&gt;
&lt;BR /&gt;
You have to do something that causes AutoCAD to reload&lt;BR /&gt;
the main customization (CUI) file.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;GLOKHOV&gt; wrote in message news:5852899@discussion.autodesk.com...&lt;BR /&gt;
Hello!&lt;BR /&gt;
&lt;BR /&gt;
I try to load my menu at application start. But I can't see this menu in the menu bar after start. I see menu only after I "reload" current workspace in user interface customization dialog. Does have anybody any idea?&lt;BR /&gt;
&lt;BR /&gt;
        const String myCuiFile = @"D:\Visual Studio 2005\Projects\AutoCAD 2008\Cui\sits.cui";&lt;BR /&gt;
&lt;BR /&gt;
        public void Initialize()&lt;BR /&gt;
        {&lt;BR /&gt;
            String currentWorkSpace = (String)Application.GetSystemVariable("WSCURRENT");&lt;BR /&gt;
&lt;BR /&gt;
            CustomizationSection acadCustomSection = new CustomizationSection((String)Application.GetSystemVariable("MENUNAME") + ".cui");&lt;BR /&gt;
&lt;BR /&gt;
            if (acadCustomSection.PartialCuiFiles.Contains(myCuiFile) == false)&lt;BR /&gt;
            {&lt;BR /&gt;
                acadCustomSection.PartialCuiFiles.Add(myCuiFile);&lt;BR /&gt;
&lt;BR /&gt;
                CustomizationSection myCustomSection = new CustomizationSection(myCuiFile);&lt;BR /&gt;
                foreach (Workspace workspace in acadCustomSection.Workspaces)&lt;BR /&gt;
                {&lt;BR /&gt;
                    foreach (PopMenu menu in myCustomSection.MenuGroup.PopMenus)&lt;BR /&gt;
                    {&lt;BR /&gt;
                        WorkspacePopMenu workspaceMenu = new WorkspacePopMenu(workspace, menu);&lt;BR /&gt;
                        workspaceMenu.Display = 1;&lt;BR /&gt;
                    }&lt;BR /&gt;
                }&lt;BR /&gt;
&lt;BR /&gt;
                acadCustomSection.Save();&lt;BR /&gt;
            }&lt;BR /&gt;
&lt;BR /&gt;
            Application.SetSystemVariable("WSCURRENT", currentWorkSpace);&lt;BR /&gt;
        }&lt;/GLOKHOV&gt;</description>
      <pubDate>Wed, 20 Feb 2008 14:36:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2184378#M75519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-20T14:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Load partial cui file</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2184379#M75520</link>
      <description>I know that I have to do SOMETHING to reload .cui file. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; And&lt;BR /&gt;
I can unload main .cui file, but I can't load it again. I use "cuiload" command, and this command load acadm.cui file from AutoCAD folder, but I need acadm.cui from Documents And Settings folder. Please, help!</description>
      <pubDate>Wed, 20 Feb 2008 14:52:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2184379#M75520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-20T14:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Load partial cui file</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2184380#M75521</link>
      <description>glokhov,&lt;BR /&gt;
did you find a solution to this, I am having the same problem with the menus not showing after the CUI is loaded at startup.</description>
      <pubDate>Thu, 23 Oct 2008 16:09:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2184380#M75521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-23T16:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Load partial cui file</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2989808#M75522</link>
      <description>&lt;P&gt;Ok same problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modify at runtime PartialCui in PrincipalCui.&lt;/P&gt;&lt;P&gt;The change appear in next session of AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How say to AutoCAD reload the main cui at runtime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help Tony Help !!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2011 14:44:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2989808#M75522</guid>
      <dc:creator>odurier</dc:creator>
      <dc:date>2011-04-14T14:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Load partial cui file</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2990900#M75523</link>
      <description>&lt;P&gt;Have a look at the 'update' section in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_self" href="http://through-the-interface.typepad.com/through_the_interface/2007/05/creating_a_part.html" rel="nofollow"&gt;http://through-the-interface.typepad.com/through_the_interface/2007/05/creating_a_part.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2011 11:35:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-partial-cui-file/m-p/2990900#M75523</guid>
      <dc:creator>jamierobertson1</dc:creator>
      <dc:date>2011-04-15T11:35:46Z</dc:date>
    </item>
  </channel>
</rss>

