Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Save Project

    SDK Help
    0
    4
    317
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 25/07/2013 at 00:34, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R13 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I try to save a c4d project using
      SaveDocument(pDoc, fnProjectFile, SAVEDOCUMENTFLAGS_SAVECACHES, FORMAT_C4DEXPORT);
      The project is saved, but the problem is that after calling SaveDocument(...) Cinema still sees the project as modified(in the GUI you will see the name of the project with * after) and if I try to close Cinema4D every time I get the question if I want to save the project or not.
      How can I modify the flag for modified project, so I don't have this situation anymore?

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 25/07/2013 at 03:36, xxxxxxxx wrote:

        SAVEDOCUMENTFLAGS_AUTOSAVE

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 25/07/2013 at 04:09, xxxxxxxx wrote:

          Thanks for the tip.
          I tested and it's not working.

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 25/07/2013 at 07:40, xxxxxxxx wrote:

            According to the SDK documentation, adding this flag:

            "Sets the Autosave mode. Files are not added to the recent file list and the document change star will not be reset."

            Have you tried it without SAVEDOCUMENTFLAGS_SAVECACHES to see if that flag is erroneously interfering with this flag?  Of course, if the document has not been saved at all, it may invoke the change star. You may want to try it with the SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST as well and see if that changes the situation.  The C4D SDK is not bad but it can be a bit temperamental.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post