CloseDocument ?
-
Hi,
c4d.documents.KillDocument(doc) immediately closes a document without any checks
There is no c4d.documents.CloseDocument()
How would you close a document with the normal check and warning for changes that might be wanted to be saved first ?
best, Index
-
Just check it manually:
if currDoc.GetChanged() : c4d.gui.MessageDialog(c4d.plugins.GeLoadString(IDS_MSG_PROJECTCHANGED)) else : c4d.documents.KillDocument(currDoc) # works but ignores change status