MenuGroups.Item(0).Save doesn't work

MenuGroups.Item(0).Save doesn't work

Amremad
Collaborator Collaborator
514 Views
1 Reply
Message 1 of 2

MenuGroups.Item(0).Save doesn't work

Amremad
Collaborator
Collaborator

why

 

ThisDrawing.Application.MenuGroups.Item(0).Save acMenuFileCompiled

ThisDrawing.Application.MenuGroups.Item(0).Save acMenuFileSource

 

doesn't work , no effect

 

i need the menu that i created it in the first time load every time by autocad .. so how can i do this?

0 Likes
515 Views
1 Reply
Reply (1)
Message 2 of 2

Alexander.Rivilis
Mentor
Mentor

@Anonymous_world wrote:

why

 

ThisDrawing.Application.MenuGroups.Item(0).Save acMenuFileCompiled

ThisDrawing.Application.MenuGroups.Item(0).Save acMenuFileSource

 

doesn't work , no effect

 

i need the menu that i created it in the first time load every time by autocad .. so how can i do this?


Since AutoCAD 2006 method save of Menugroup is deprecated:

From AutoCAD ActiveX Reference:

object.Save MenuFileType 
Object
MenuGroup
The object this method applies to. 

Note This method has no effect for menu groups.

 

So you can not save created on the fly menu with AutoCAD ActiveX Interface. You can do it only with AutoCAD .NET API

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes