The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.
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