Selection Tag

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

On 08/11/2004 at 19:55, xxxxxxxx wrote:

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

---------
Hi,
I am trying to insert a polygon selection tag in an object. I tried like this which is not working. Any guidelines for me?

    
    
    
    
             BaseSelect* newbs;   
             SelectionTag* tag;  
             newbs = tag->GetBaseSelect();   
             newbs->Select(5);   
             BaseContainer data = tag->GetData();   
             data.SetString(POLYSELECTIONTAG_NAME, "NewTag");  
             obj->InsertTag(tag); 
    
    
    

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

On 08/11/2004 at 21:20, xxxxxxxx wrote:

FYI: I came to know that we should use Alloc() function for proper result. After I inserted Alloc when I create Tag and BaseSelect, it works fine. But still trying to find out how to change the tag name...

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

On 09/11/2004 at 05:01, xxxxxxxx wrote:

tag->SetName();