Jump to content

Recommended Posts

Posted

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

Posted

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"

Posted

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.

Posted

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!?

Posted

im not sure if menuname is case sensitive, but have a check also. got to run now...'-)

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