Looks like it'll keep the same GUID as when exported as long as it's unique in the scene. If you have two references of a refmodel in a scene, the contents of the second model will get new GUIDs.
On Tue, Jun 4, 2013 at 5:41 PM, Alan Fregtman <[email protected]>wrote: > How about with refmodels? I know ObjectID sometimes changes with > refmodels. Does this ObjectGUID suffer the same fate? > > > > On Tue, Jun 4, 2013 at 11:52 AM, Ciaran Moloney > <[email protected]>wrote: > >> Hi, >> did you try XSIUtils.DataRepository.GetIdentifier() passing the >> siObjectGUID argument? >> I've used this to keep track of ICE nodes without relying on name >> strings. It's persistent between sessions and is preserved when models are >> exported. >> Works like a charm. >> The only problem is that it's possibly a bit tricky to get a pointer back >> to the object, since you need to know what you're looking for. I use >> Application.FindObjects() >> to get a collection of objects of this class, then check for the ObjectGUID >> I'm looking for. >> >> Ciaran >> >> >> On Tue, Jun 4, 2013 at 12:49 PM, Michal Doniec <[email protected]> wrote: >> >>> Hi, >>> >>> Is there any obvious way I am missing which would allow me to identify >>> objects in the scene, but not by name? >>> Something like ObjectID, but persistent between scene saves and loads. I >>> can generate UUID or something similar using "ObjectAdded" event and store >>> custom property but I'd rather avoid it. >>> >>> I want to be able to track objects regardless if they were renamed or >>> not. >>> >>> -- >>> ---------- >>> Michal >>> http://uk.linkedin.com/in/mdoniec >>> >> >> >

