Small Fish Posted December 1, 2009 Posted December 1, 2009 How can a load a partial cui using code? The code I have below only loads the toolbars but not the associated pull down menu. thanks! (command "cuiload" "C:\\CAD\\Acad Customisation\\company cui\\mycui.cui") or (vla-load (vla-Item (vla-get-MenuGroups (vlax-get-Acad-Object)) "C:\\CAD\\Acad Customisation\\company cui\\mycui.cui")) Quote
wizman Posted December 1, 2009 Posted December 1, 2009 Hi Small Fish: Here's a similar thread: http://www.cadtutor.net/forum/showthread.php?t=26379 Quote
Small Fish Posted December 1, 2009 Author Posted December 1, 2009 Thanks Wizman - yes I did see that thread previously. If you are referring to your code, I can not get it to work - I am not sure how to edit it at : (setq cui_database (list "mycui" ;<<< MENUGROUP "C:\\CAD\\Acad Customisation\\company cui\\mycui.cui" ;<<<PATH & CUI FILENAME "mycui" ;<<< MENUNAME ) ;_ end_list ) This is assuming my cui and the pulldown are called "mycui" Quote
wizman Posted December 1, 2009 Posted December 1, 2009 your path is ok, that leaves us to 2 possible errors which could be menugroup or menuname, try loading your partial cui manually, then check menuname in tools>customize>interface. It may have a "&" sign. Check also menugroup by issuing menuload. Quote
Small Fish Posted December 1, 2009 Author Posted December 1, 2009 Okay I have it working now - however this code also has the same problem as my original question ie - It will load the toolbars but not the pulldown menu. However if I load manually ie "cuiload" then point to the partil menu then 'load' it works fine! Strange eh!? Quote
wizman Posted December 1, 2009 Posted December 1, 2009 im not sure if menuname is case sensitive, but have a check also. got to run now...'-) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.