Primitive Text Object

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

On 27/07/2003 at 22:35, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   7.303 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;

---------
Hi,
I want to change the text string value of a Primitive Text Object. I used the following code.

    
    
    
    
    if(vObj->GetPrimitiveType()==1017) // if TEXT Object  
    {  
       var bc=vObj->GetContainer();  
       bc->SetData(PRIM_TEXT_TEXT, "Change");  
       vObj->SetContainer(bc);  
    }  
    GeEventAdd(DOCUMENT_CHANGED);
    
    
    
    
    GeEventAdd(REDRAW_ALL);  
    

Even though I use GeEventAdd(), I cannot see the new text, still it shows the old text. But from the object manager when I check, it has changed the text with new one. What could be the problem?

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

On 28/07/2003 at 06:00, xxxxxxxx wrote:

did you try vObj->Message(MSG_UPDATE); ?
I´m kind rusty concerning COFFEE but it should work :)

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

On 28/07/2003 at 20:36, xxxxxxxx wrote:

Yes, it works now.
Thanks Samir.