THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/02/2011 at 14:20, xxxxxxxx wrote:
Hi,
if one wants to acess an object using Userdata an the referenceobject becomes removed, the link to the object still exists. If this is not as it ia supposed to be, see it as kind of a Bugreport. ;)
I had a few problems then, because the Object didn't exist in the document, but it's still in the Userdata.
Even the BaseList2D.IsAlive() method did not help, it returned True always.
But i could find a Workaround:
def IsAlive(op) :
if not op.GetDocument() : return False
return True
Cheers, nux