Jump to content

Force custom pulldown to appear


Small Fish

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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")

Link to comment
Share on other sites

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:))

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...