Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    BaseDocument

    SDK Help
    0
    3
    75
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 28/11/2006 at 03:15, xxxxxxxx wrote:

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

      ---------
      Hi,
      how do i define a BaseDocument corectly.
      My code doesn't work
      BaseDocument *doc;
      BaseMaterial *ma = doc->GetFirstMaterial();
      Thx

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 28/11/2006 at 03:57, xxxxxxxx wrote:

        BaseDocument *doc = GetActiveDocument();

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 28/11/2006 at 04:23, xxxxxxxx wrote:

          Not sure what you trying to achieve. If you want to create a new empty document you have to use the Alloc() and Free() functions.

          Use Alloc() to create the document.

            
          BaseDocument *mydoc = BaseDocument::Alloc();  
          

          Use Free() to destroy to document.

            
          BaseDocument::Free(mydoc);  
          

          You can also use the scope based AutoAlloc template class.

            
          AutoAlloc<BaseDocument> mydoc;  
          

          cheers,
          Matthias

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