Esempio n. 1
0
 public DXFEntity CreateEntity()
 {
     DXFEntity E;
     switch (FValue)
     {
         case "ENDSEC":
             return null;
         case "ENDBLK":
             return null;
         case "ENDTAB":
             return null;
         case "LINE":
             E = new DXFLine();
             break;
         case "SECTION":
             E = new DXFSection();
             break;
         case "BLOCK":
             E = new DXFBlock();
             break;
         case "INSERT":
             E = new DXFInsert();
             break;
         case "TABLE":
             E = new DXFTable();
             break;
         case "CIRCLE":
             E = new DXFCircle();
             break;
         case "LAYER":
             E = new DXFLayer();
             break;
         case "TEXT":
             E = new DXFText();
             break;
         case "MTEXT":
             E = new DXFMText();
             break;
         case "ARC":
             E = new DXFArc();
             break;
         case "ELLIPSE":
             E = new DXFEllipse();
             break;
         default:
             E = new DXFEntity();
             break;
     }
     E.Converter = this;
     return E;
 }
Esempio n. 2
0
 public void LoadFromFile(string FileName)
 {
     FMain = new DXFSection();
     FMain.Converter = this;
     if (FStream == null)
     {
         FStream = new StreamReader(FileName);
     }
     FMain.Complex = true;
     FMain.ReadState();
 }