Scripting: static collection 2004-03-09 - By Helge Mathee
Back try not using a collection, cos it'll be referenced.
use an array instead:
var ch_Arr = new Array();
for(var i=0;i<selection.count;i++) { ch_Arr[i] = selection.item(i); }
that'll work. you can access the array afterwards..
cheers,
Helge -- -- Original Message -- -- From: "Christian Rittener" <chrr@(protected)> To: <XSI@(protected)> Sent: Tuesday, March 09, 2004 8:19 PM Subject: Scripting: static collection
> Hello, > > I'm trying to go all OOP, so please be indulgent. > > In Jscript, I'm trying to use ExtractFromComponents while looping through > aselection of geometries and then looping through their respective clusters. > As soon as a new object is created, it becomes selected, screwing up my > outer loop. How do get the selection collection to remain fixed to what it > is at the beginning of the script? I tried copying Selection into a new > collection, with > > ch_coll = new ActiveXObject( "XSI.Collection" ) ; > ch_sel = selection ; > ch_coll = ch_sel ; > > and looping through the second collection, but the same thing happens... ??? > > Christian Rittener > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|