Jump to content

Custom menu doesn't load automatically


MarcoW

Recommended Posts

Hi,

 

I feel like :x...

 

I made several (5) menu's, they are all working correctly. With menuload, then browse and then load they are made active in Acad. All working nice and when shutting down / restart Acad it's all good.

 

Now I thought let's put 'm, together. And again it works all nice, just need to load 1 menu instead of 5. Easy...

 

The only problem is when shutting down / restarting Acad: I need to load my custom menu manually. I mean, when given the command menubar my custom menu is visible in the list. I just have to unload and then browse an load it again.

 

As if during the startup tha custom menu is not fully relaoded...

 

Ayone got an answer where to adjust this? Tnx for the help.

 

 

add 12.22 pm: I lost the expreee menu now, it is normally loaded when loading acad.cui but now it don't work again. Hmmff... seem to be a bad sunday.. Where to find the express mene?

Link to comment
Share on other sites

If you're referring to the pulldown menus loading on startup, there is a limit of 24 (maybe 25), although you can manually load more.

Link to comment
Share on other sites

this is a snippet of what i have in the acaddoc.lsp at work to load our custom menus.

 

 (if
 (and
  (not (menugroup "CES-Custom"))
  (findfile "S:\\CADD Standards\\CES Custom CUI\\CES-Custom.cui")
 );and
    (command "_.menuload" "S:\\CADD Standards\\CES Custom CUI\\CES-Custom.cui")
);if
(and
 (menugroup "CES-Custom")
 (menucmd "p30=+CES-Custom.POP1")
);and

Link to comment
Share on other sites

I found the Expresstools menu under:

 

C:\Documents and Settings\User\Application Data\Autodesk\AutoCAD 2007\R17.0\enu\Support\acetmain.cui

 

Just to share.

 

@Alanjt: My menu's are ".mnu" files, lets say "test.mnu".

Would this be the code for me then?

 

(if

(and

(not (menugroup "test"))

(findfile "c:test.cui")

);and

(command "_.menuload" "c:test.cui")

);if

(and

(menugroup "test")

(menucmd "p30=+test.POP1")

);and

 

It looks like a part of something bigger... how would the code be when only used for my question?

Link to comment
Share on other sites

  • 1 year later...

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