Hello, List. Newbie question about Selection.Item with C# I was wondering how i would pick a object from Selection, as below. Anyone give a tip.
I want to public bool Execute( Context in_ctxt ) { Log("Execute called"); XSIApplication si = GetXSI(); Selection oSel = si.Selection; // Getting a first one of Selection X3DObject oneObj = (X3DObject)oSel.get_Item[0]; //Error line Log(oneObj.FullName); // Iterating a list of Selection foreach (X3DObject obj in oSel) { Log(obj.FullName); } return true; }. Thanks Kang p.s : Sorry my bad English. -- *Byungchul Kang* | MBC CG TEAM [http://imbc.com] http://cgndev.com