Quantcast
Viewing all articles
Browse latest Browse all 14319

Problems with loading cuix from bundle when user is not administrator

Hi all,

 

We are using .cuix file which gives access to tools in custom .arx file in AutoCAD 2012/2013. We load the menu using the .bundle mechanism and the plug-in - using button from the menu. If the user is Administrator (or executes AutoCAD as Administrator)  the menu, toolbars and ribbons are loaded correctly and the user can load and unload the application (lisp function in .mnl file is used for that), but if the user is not an administrator either the menu, toolbars and ribbons are not correctly loaded or they are loaded, but the user can not load the application.

We have found that a probable cause for this behaviour is that AutoCAD tries to create/renew the .mnr file when first loading a .cuix file and since the user has no administrator rights this can't be done in the "C:\Program Files\Autodesk\ApplicationPlugins" folder where the bundle is and AutoCAD creates the .mnr file in its own support folder ("C:\Users\<User>\AppData\Roaming\Autodesk\AutoCAD 2012\R18.2\...\Support\") together with a copy of the .cuix file and changes the path for loading the .cuix file to this location. Since the .mnl file containing the function for loading/unloading is not copied with the .cuix file the application can not be loaded.

 

The user has to delete the created files under the support path of AutoCAD, unload the .cuix file and then reload it from the correct location to resolve the problem. Restarting AutoCAD leads to the same problem.

 

Does someone else have the same problem? Is there a way to prevent this behavior other then running AutoCAD as administrator (that is not always an option)?

Any thoughts on the matter are appreciated.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 14319

Trending Articles