Example #1
0
        /// <summary>
        /// Read a history record and extract the references for the antecedent objects.
        /// </summary>
        private bool ReadHistory(Rhino.DocObjects.ReplayHistoryData replay, ref List <Guid> ids, ref double radius1, ref double radius2, ref int capIndex)
        {
            if (HISTORY_VERSION != replay.HistoryVersion)
            {
                return(false);
            }
            foreach (Guid g in ids)
            {
                Guid id;
                replay.TryGetGuid(0, out id);
            }

            //if (null == objrefs)
            //    return false;

            if (!replay.TryGetDouble(1, out radius1))
            {
                return(false);
            }

            if (!replay.TryGetDouble(2, out radius2))
            {
                return(false);
            }

            if (!replay.TryGetInt(3, out capIndex))
            {
                return(false);
            }

            return(true);
        }