Hello,
I been using the following function to load my menus on autocad, and now with the new CUI ones, I would like to know if still could work. [I do not have A2006 yet]
(defun pulldownmenu (menu / n vla_menu menugroups get_acad)
(if (and (findfile (strcat menu ".mnu"))
(not (menugroup menu)))
(if (setq
vla_menu
(vla-load
(setq menugroups
(vla-get-menugroups
(setq get_acad (vlax-get-acad-object))))
(findfile (strcat menu ".mnu"))))
(progn
(setq n 1)
(while (< n 24)
(if (menucmd (strcat "p" (itoa n) ".1=?"))
(setq n (+ n 1))
(progn
(menucmd (strcat "p" (itoa n) (strcat "=+" menu ".pop1")))
(setq n 25))))))))
I normally place a call of the above function (pulldownmenu) and when my filename.vlx files are loaded that function will load the pulldown menu.
But, what would happen now with the new CUI?.... are still the functions used to load menus programatically will work with the CUI?
Thanks in advance.
Luis.