Inheritance: Entity
示例#1
0
 protected override Property ReadSonClass(Property prop)
 {
     switch (prop.Value)
     {
         case "BLOCK":
             var block = new BLOCK(DXFData, prop);
             BLOCKList.Add(block);
             return block.ReadProperties();
         case "ENDBLK":
             var endblk = new ENDBLK(DXFData, prop);
             ENDBLKList.Add(endblk);
             return endblk.ReadProperties();
         default:
             return base.ReadSonClass(prop);
     }
 }
示例#2
0
        protected override Property ReadSonClass(Property prop)
        {
            switch (prop.Value)
            {
            case "BLOCK":
                var block = new BLOCK(DXFData, prop);
                BLOCKList.Add(block);
                return(block.ReadProperties());

            case "ENDBLK":
                var endblk = new ENDBLK(DXFData, prop);
                ENDBLKList.Add(endblk);
                return(endblk.ReadProperties());

            default:
                return(base.ReadSonClass(prop));
            }
        }