OcadIndexBlocks ReadIndexBlocks(int firstBlock) { OcadIndexBlocks ib = new OcadIndexBlocks(); ib.Read(reader, firstBlock, version); return ib; }
void ReadAndCreateObjects(OcadIndexBlocks b) { for (int i = 0; i < b.indexes.Length; ++i) { if (b.indexes[i].Sym != 0 && (version <= 8 || b.indexes[i].Status == 1)) { OcadObject obj = new OcadObject(); reader.BaseStream.Seek(b.indexes[i].Pos, SeekOrigin.Begin); obj.Read(reader, version); CreateObject(obj); } } }