Exemplo n.º 1
0
        public List<Style> GetStyleLibrary()
        {
            if (null == dxf) throw new Exception("Dxf file has not been set.");
             List<Style> styleList = new List<Style>();

             foreach (var lineType in dxf.LineTypes)
             {
            Style aStyle = new Style();
            //aStyle = Style.cvrtIntToStyle(lineType.)
            styleList.Add(aStyle);
             }

             return styleList;
        }
Exemplo n.º 2
0
 private static Style cvrt_IntToStyle(int i)
 {
     Style aStyle = new Style();
      switch (i)
      {
     case 0:
        break;
     case 1:
        aStyle.StyleDoubleValues = new DoubleCollection() { 12, 4 };
        break;
     case 2:
        aStyle.StyleDoubleValues = new DoubleCollection() { 7, 4 };
        break;
     case 3:
        aStyle.StyleDoubleValues = new DoubleCollection() { 2, 2 };
        break;
     default:
        break;
      }
      return aStyle;
 }