Error starting cui editor

Error starting cui editor

Anonymous
Not applicable
919 Views
2 Replies
Message 1 of 3

Error starting cui editor

Anonymous
Not applicable

I am making a .NET-dll for AutoCAD. When I load it, it checks if a certain ribbon tab is defined (by name) and if so, it fills it in with buttons and stuff.

 

Everything works fine, except if I write the command "cui"! Then it suddenly complains about an unhandled exception:

 

"System.IO.FileNotFoundException: Could not load file or assembly 'AcCustomize.resources, Culture=nb-NO' or one of its dependencies. The system cannot find the file specified.
File name: 'AcCustomize.resources, Culture=nb-NO'"

 

The dll I am making is supposedly language neutral (both in the VS settings and when I look at properties of the finished dll). My PC has nb-NO as language.

 

But why doesn't this get a problem until I load this dll? I am literally loading houndreds of other dlls without problems...

 

Thank you for any tips!

 

Best regards,

 

Knut

0 Likes
920 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

It seems like the problem might be that I am inserting buttons on a cuix-file defined tab and this is somehow messing up the resource file structure. So now I am looking at a way to detect when the cui dialog is starting, to unload the buttons from the tab before the dialog comes up.

 

Tips still appreciated!

0 Likes
Message 3 of 3

agaalen
Contributor
Contributor

Hi All,

 

We sometimes have the same problem, but I cannot seem to reproduce it. 

 

anyone else made any findings that fixed the problem?

 

Kind regards,

Alain

0 Likes