.NET

Reply
Contributor
||||||||||
Posts: 11
Registered: ‎10-24-2006
Message 1 of 3 (75 Views)

Programatically Adding a Partial.cui does not showup in the Menus

75 Views, 2 Replies
10-25-2006 10:36 AM
I have created a partial cui with my menus & toolbars.
I then install it into the acad.cui by the following code...

CustomizationSection acadcui = new CustomizationSection(acad_fp);
CustomizationSection swatchdigitalcui = new CustomizationSection(swatchdigital_fp);

if (acadcui.PartialCuiFiles.Contains(swatchdigital_fp) == false)
{
acadcui.PartialCuiFiles.Add(swatchdigital_fp);
acadcui.Save();
}


This does in face add the partial.cui into the main cui but....
It does not activate-it does not add the menu to the main menus.
Where I open the customize dialog, the file is listed but will only show up if I manually press 'Apply'.
I've tryed RefreshWorkspace(), MakeDirty(), etc.

Do you have any idea hope I can get the menu to show up programmatially without having th resort to writing them into the acad.cui directly?

Thanks,
CM
Member
robinzhou
Posts: 4
Registered: ‎08-01-2005
Message 2 of 3 (75 Views)

Re: Programatically Adding a Partial.cui does not showup in the Menus

10-26-2006 06:46 AM in reply to: ||||||||||
You can try to unload the main cui file and reload the main cui file with sendstringtoexecute
Contributor
||||||||||
Posts: 11
Registered: ‎10-24-2006
Message 3 of 3 (75 Views)

Re: Programatically Adding a Partial.cui does not showup in the Menus

10-26-2006 07:35 AM in reply to: ||||||||||
Interesting.
I know SendStringtoExecute.
I tryed sending CUI... but this just opened the CUI Dialog.

May I ask, what command do I send to unload & reload the main cui?

Thanks,
CM

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community