Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Kyudos
en respuesta a: Alfred.NESWADBA

Thanks Alfred - that has actually put me on the right track! If I unload my partial CUIX I can change the icons. But when I load my file, I can't. So obviously, it is something in my file - but how do I find out what? As far as I can tell, everything else is working fine (i.e., all my commands work)

 

I guess I was hoping that, knowing this happens immediately after I click an icon in the CUI icon grid for a command, and given this stack trace:

 

 

System.NullReferenceException: Object reference not set to an instance of an object.
   at Autodesk.AutoCAD.Customization.Revision..ctor(Revision rev)
   at Autodesk.AutoCAD.Customization.Macro..ctor(Macro macIn, MenuMacro par, Boolean preserveRevision)
   at Autodesk.AutoCAD.Customization.MenuMacro.duplicateMe(Macro mac)
   at Autodesk.AutoCAD.Customization.MainForm.buttonControlEventHandler(Object sender, ButtonControlEventArgs ea)
   at Autodesk.AutoCAD.Customization.ButtonControl.triggerEvent(ButtonControlAction action)
   at Autodesk.AutoCAD.Customization.ImageSelector.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I was hoping someone at AutoDesk might be able to give me some pointers....

 

I wonder if it makes a difference that MY icons are in a resource DLL?