GeDialog::Command()

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

On 13/02/2008 at 04:31, xxxxxxxx wrote:

User Information:
Cinema 4D Version:    
Platform:      
Language(s) :

---------
Hi again,
i got a little problem with this function. One of my buttons controlled by this function will allocate an Object and insert it in the document: I use

    
    
    doc->InsertObject(spline,NULL,NULL);[\CODE] where doc is the Basedocument. Any ideas how i can get the document object?
    
    
    
    
    Source is like this:
    
    
    
    
    [CODE]
    
    
    GeDialogMod::Command(LONG id, const BaseContainer& msg)  
    {  
       switch(id)  
       {  
           case BUTTON:  
           {  
               BaseObject* object1 = BaseObject::Alloc(Ocylinder);  
               BaseDocument *document1 = ?????;  
               document1->InsertObject(op,NULL,NULL);  
           }  
       }  
    }

The only object i gave over to the CommandFunction is id and msg and i don't see a function to get the BaseDocument ....

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

On 13/02/2008 at 06:48, xxxxxxxx wrote:

You can use GetActiveDocument() to get the currently active document.

cheers,
Matthias

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

On 13/02/2008 at 11:55, xxxxxxxx wrote:

You got an walkthrough for this, right ??? *g*