  | | | Changing an instances master | Changing an instances master 2004-04-30 - By kim aldis
Back I'm running it as a jscript function, just the one. I'll let you know if it breaks at all.
> -- --Original Message-- -- > From: owner-xsi@(protected) > [mailto:owner-xsi@(protected)] On Behalf Of Graham D Clark > Sent: 30 April 2004 11:47 > To: XSI@(protected) > Subject: RE: Changing an instances master > > Cheers Kim, glad its works for you :) > > Switching groups works better I found than the method of > match transforms and move hierarcy over to new instantiate, > as nothing to copy over if branch propegation etc is used on > child objects of the orginal instance model. > > the 2 functions, > One to make an instance group if it doen't exist in new > master. The instance group is not the basic group. > -one cheap and dirty way is to make an instance of the new > masster model then delete the instance. > -oddly if I include this in the same function as the switch > group below it sometimes fails, I guess perhaps due to the > instance group ports not being reset, maybe? Or maybe it's a > vbs thing ;) And one to remove the intance model from the old > master group and put it into the newmassters instance group. > -just this function is required if the new master model > already has an instance group > > Sorry yes the collection is uneccessary, I just left the > collection as I stripped the code out of a larger tool I made > for prepping reference models and was avoiding Selection. > There's likely a much better way to do that...? > > I'm sure something more efficient can be done with ports, I > need this too so I'll look at it next week. > > -- ---- ---- ---- ---- ---- -- > http://www.grahamdclark.com > 2nd hand TD > > > > > -- --Original Message-- -- > > From: owner-xsi@(protected) > > [mailto:owner-xsi@(protected)] On Behalf Of kim aldis > > Sent: April 29, 2004 9:00 PM > > To: XSI@(protected) > > Subject: RE: Changing an instances master > > > > > > Works like a dream. I ported to Jscript and crammed the 2 functions > > into one. > > > > Just curious, Grahame; why the 2 functions and why bother with the > > collection? It seemed unnecessary. > > > > > -- --Original Message-- -- > > > From: owner-xsi@(protected) > > > [mailto:owner-xsi@(protected)] On Behalf Of Sam Cuttriss > > > Sent: 29 April 2004 17:59 > > > To: XSI@(protected) > > > Subject: Re: Changing an instances master > > > > > > wow, thats nice graham. > > > thanks > > > --- > > > Unsubscribe? Mail Majordomo@(protected) with the > following text in > > > body: > > > unsubscribe xsi > > > > > > > > > > > > > > > > > --- > > Unsubscribe? Mail Majordomo@(protected) with the > following text in > > body: > > unsubscribe xsi > > > > > > > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following > text in body: > unsubscribe xsi > >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |