// initialize polylines
DXFPolyline[] pl = new DXFPolyline[style.getDXFMLineStyleLElementCount()];
for (int x = 0; x < pl.length; x++) {
DXFMLineStyleElement se = style.getDXFMLineStyleLElement(x);
pl[x] = new DXFPolyline();
pl[x].setDXFDocument(mline.getDXFDocument());
pl[x].setLineType(se.getLineType());
pl[x].setColor(se.getLineColor());
if (mline.isClosed()) {
pl[x].setFlags(1);
}
}