private void Draw(double[] Xcoord, double[] Ycoord) { ElemStyle eStyle; Contour Cell; Cell = new Contour(); eStyle = new ElemStyle { PatColor = 255, BorderStyle = 0, BorderWidth = 1 }; Cell.Fill(4, ref Xcoord[0], ref Ycoord[0]); //Element.SetContour(Cell); //Element.ElemStyle = eStyle; ActiveLayer.AddContour(Cell, eStyle, 0, 0); //ActiveLayer.AddElementEx(Element,-1,1); //ElementId = Element.Key; //ElementKeys elementKeys //elementKeys = ActiveLayer.ElementKeys; }