/**
* @param args
*/
public static void main(String[] args) {
try {
DXFParser parser = (DXFParser) ParserBuilder.createDefaultParser();
//test
DXFStreamFilter filter = new DXFStreamLayerFilter();
Map<String,String> p = new HashMap<String,String>();
p.put("layers.include", args[0]);
filter.setProperties(p);
parser.addDXFStreamFilter(filter);
parser.parse(args[1]);
DXFDocument doc = parser.getDocument();
//do something with the doc
doc.getClass();
} catch (Exception e) {
e.printStackTrace();