Jump to content

Recommended Posts

Posted

Hello to all,

can you help me with pulldownmenus?

I am makeing pop menu, inserting in menu bar, but can not save the menu.

 

(setq currmenu (vla-item
     (vla-get-menugroups (vlax-get-acad-object))
      "My-menu"
   )
)
 (vla-save currmenu acMenuFileCompiled)
 (vla-save currmenu acMenuFileSource)

 

in row (vla-save currmenu acMenuFileCompiled)

I am receiving nil?

Where is the problem?

Posted

I found this after a quick look in the Dev help:

 

object.Save MenuFileType

 

Object

MenuGroup

The object this method applies to.

Note This method has no effect for menu groups.

Posted

Thank you Lee Mac,

Where is my eyes?!

So in this case:

1. If you access menugroups via Vlisp every time the routine must build menu , submenus, toolbars, icons, and so on.

2. There is no options to save already builded menu in *.cui file.

Posted

I'm afraid I don't have much experience in this area of customisation... hopefully someone with more knowledge can stop by :)

Posted

Hi Lee,

for one week work of menus my conclusions are:

1. in *mnu file (older than *.cui) in sections ***POP - CAN NOT assign bmps or icnons for each command (row).

2. in *mnu file (older than *.cui) in sections ***TOOLBARS - CAN assign bmps or icnons for each command (row) - because it is button :) .

 

The best way it to do -> use cui editor from autocad after that with cuitomnu.vlx to convert of *.mnu (if need)

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