Small Fish Posted June 17, 2010 Share Posted June 17, 2010 Hi In my code I have a simple line that loads a custom cuix : (if (=(atof (getvar "acadver"))18.0) (command "_cuiload" "U:\\CAD\\Acad Customisation\\custom.cuix"); );if This works fine, the custom toolbars will always show, however the custom pull down menu will not. I usually have to manually unload the custom.cuix then reload. Then the pulldown will appear. What is causing this? Is there a way to force the pulldown menu to appear when I use 'cuiload' in the above code? Quote Link to comment Share on other sites More sharing options...
TimSpangler Posted June 17, 2010 Share Posted June 17, 2010 Look in the help for "menucmd" This should be what you are looking for. Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 17, 2010 Share Posted June 17, 2010 If a menu (mnu/cui/cuix) is loaded through code, the pulldowns have to be loaded manually with MenuCMD (or vla equivalent), as Tim said. Quote Link to comment Share on other sites More sharing options...
Small Fish Posted June 17, 2010 Author Share Posted June 17, 2010 Thanks - I had a look at it. I can not get it to work. Perhaps my syntax is incorrect? If my custom menu is called "mymenu" and the pulldown is called "My Tools" then why doesn't the pulldown appear at the 3rd position? (given that the cuix called "mymenu" is already loaded) (menucmd "P3=mymenu.My Tools") Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 17, 2010 Share Posted June 17, 2010 http://www.cadtutor.net/forum/showthread.php?p=272252&highlight=menuload#post272252 Quote Link to comment Share on other sites More sharing options...
Small Fish Posted June 18, 2010 Author Share Posted June 18, 2010 thanks Alan once again. That works just the way it should - so far. have a good weekend (....I guess that's the day after tommorrow for you:)) Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 18, 2010 Share Posted June 18, 2010 thanks Alan once again. That works just the way it should - so far. have a good weekend (....I guess that's the day after tommorrow for you:)) You're welcome. Nah, my weekend started at 5:00pm today (we don't work on Friday). Quote Link to comment Share on other sites More sharing options...
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.