.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is possible to disabled de function Save ?

3 REPLIES 3
Reply
Message 1 of 4
AubelecBE
483 Views, 3 Replies

Is possible to disabled de function Save ?

Hi all, after a bindXref i save the dwg in a path 'Archive' but if the file already exist i demand the user if i cant erase the dwg in archive before write my dwg. I want to force the user to close the dwg without save if the reponse is 'No'. (The function have BindXref so the dwg do not save this). Is possible ? No save only for this dwg not the other already open (I not know how to use event so.. and my DLL is not loading on the launch of autocad) Thanks
3 REPLIES 3
Message 2 of 4

If I understand the question correctly, then:

 

How to disable the “Save As” dialog

 

Also you can use Document.PushDbmod() before any changes in dwg-file and Document.PopDbmod() after all changes if "No" is entering.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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

Message 3 of 4

tanks for reply. I want to disable All Save Command but i dont block Save As.
Message 4 of 4

OK. What about clear system variable DBMOD ? In that case you can continue using command _SAVEAS. Other way is disable/redefine commands _QSAVE, _SAVE

 

Veto a particular command in AutoCAD

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost