while (i.hasNext()) {
DXFEntity e = (DXFEntity) i.next();
if (DXFConstants.ENTITY_TYPE_LINE.equals(e.getType())) {
DXFLine line = (DXFLine) e;
first = new DXFVertex(line.getEndPoint());
pline.addVertex(first);
} else if (DXFConstants.ENTITY_TYPE_POLYLINE.equals(e.getType()) ||
DXFConstants.ENTITY_TYPE_LWPOLYLINE.equals(e.getType())) {
DXFPolyline pl = (DXFPolyline) e;
double bulge = pl.getVertex(0).getBulge();