RE : Re: C++ Convert a CStringArray to CRefArray

Date : Fri, 18 Apr 2008 09:19:13 -0400 (EDT)
To : XSI(at)Softimage.COM
From : dominic bélanger <lowtunes1(at)yahoo.ca>
Subject : RE : Re: C++ Convert a CStringArray to CRefArray
hi thanks for your reply , this is a part of my code im using the CStatus cref.set
like this  but when im running my plug, xsi said <<"Mybject.myobject" can not be added to the group>> it seems he not find my obj in my scene but everything is there i made a test with the jscript dictionary getobject(Mybject.myobject" ) ans everything is fine ; i dont know wath im doing wrong thanks
 
Group MyPartition = MyNewPartition[0];//get the new created partition
CRef PMember;
 
for (LONG CSA =0;CSA < PReadMembers.GetCount();CSA++) //PMyMembers is a CStringArray of element took from a XML document
{ //and all object ares in my current scene.
           PMember.Set(PReadMembers[CSA]); //Put My SCtring to a CRef .Set()
            MyPartition.AddMember(PMember); //Add this obj to my new partition
}


Christopher Crouzet <christopher.crouzet(at)gmail.com> a écrit :
As you can guess by it's name, CRefArray is a collection of CRef
objects that you can add/remove from.
In the documentation, you can see that there is a method in the CRef
class to get what you need : 'CRef::Set(CString& in_str)'


On 17/04/2008, Dominic Belanger wrote:
> hi , i need to Convert a CStringArray to CRefArray , i have collected a
> members list from a xml file , now i have to pass this array to
> .addMembers(CRefArray)
>
> if anyone have an idea . .. Thanks
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi

&##32;


Découvrez les styles qui font sensation sur Yahoo! Québec Avatars

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.