CallCommand(12144); [Group] doesnt work

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

On 09/06/2009 at 14:24, xxxxxxxx wrote:

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

---------
Hi there,

i have read thru the different threads here concerning joining objects. but dont get it to work.

what i am doing is loading a document :
BaseDocument* doc2 = LoadDocument(fileName,0L, NULL);
and after selecting some objects via
doc- >SetActiveObject(child, SELECTION_ADD);
i want to connect them with
CallCommand(12144);

i also tried to use SendModelingCommand MCOMMAND_JOIN, but that needs to have a group of subobjects, too, which i dont have in my base scene and CallCommand(100004772); doesnt work, too. the objects remain ungrouped.

any ideas, hints??

thanks and cheers,
Ello

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

On 12/06/2009 at 01:31, xxxxxxxx wrote:

anyone? i still had no success with this. must be something general i guess, but i just have no idea where to look

cheers,
ello

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

On 12/06/2009 at 15:47, xxxxxxxx wrote:

I did further tests but still cant get it.

this should connect all objects in the document (at least from my understanding) but doesnt work:

> <code>
>
>> `

                                   CallCommand(100004748);   
\>  CallCommand(100004766);  
\>  CallCommand(12144);  
\>  

`
>
> </code>

and this should create a group from all objects:
> <code>
>
>> `

  
\>  CallCommand(100004748);   
\>  CallCommand(100004766);  
\>  CallCommand(100004772);  
\>  

`
>
> </code>

anyone??

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

On 13/06/2009 at 03:06, xxxxxxxx wrote:

ok, i found out that i first had to ensure that the document was active. now i group all objects, select the parent and CallCommand(12144), but all i get is a polygonobject with no polygons??

anyone have an idea what could cause this?

thanks in advance,
ello

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

On 13/06/2009 at 05:09, xxxxxxxx wrote:

i did it now with SendModelingCommand MCOMMAND_JOIN, but i still like to know why CallCommand(12144) doesnt do it?

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

On 15/06/2009 at 08:07, xxxxxxxx wrote:

Connect only works with polygon objects and editable splines.

cheers,
Matthias