public bool MoveNext()
 {
     if (_instanceEnumerator.MoveNext()) //can we get an instance
     {
         IXbimInstance c = _instanceEnumerator.Current;
         if (c.IsLoaded)
         {
             _current = ((XbimInstance)c).Entity;
         }
         else
         {
             _current = _instances.CreateEntity(_model, (XbimInstanceHandle)c);
         }
         return(true);
     }
     else
     {
         return(false);
     }
 }
 public XbimInstanceHandle(IXbimInstance item)
 {
     _entityLabel = Math.Abs(item.EntityLabel);
     _fileOffset  = item.FileOffset;
     _entityType  = item.EntityType;
 }