int srid = 28992; // default rd new
int sln = br.getLineNumber();
log.debug(">Enter at line: " + sln);
DXFCodeValuePair cvp = null;
DXFGroupCode gc = null;
boolean doLoop = true;
while (doLoop) {
cvp = new DXFCodeValuePair();
try {
gc = cvp.read(br);
} catch (DXFParseException ex) {
throw new IOException("DXF parse error" + ex.getLocalizedMessage());
} catch (EOFException e) {
doLoop = false;
break;
}
switch (gc) {
case TYPE:
String type = cvp.getStringValue();
if (type.equals(ENDSEC)) {
doLoop = false;
break;
}
break;
case VARIABLE_NAME:
String variableName = cvp.getStringValue();
double x = 0,
y = 0;
int tfillmode = 0;
String tversion = null;
boolean doLoop2 = true;
while (doLoop2) {
cvp = new DXFCodeValuePair();
try {
gc = cvp.read(br);
} catch (DXFParseException ex) {
throw new IOException("DXF parse error" + ex.getLocalizedMessage());
} catch (EOFException e) {
doLoop2 = false;
doLoop = false;
break;
}
switch (gc) {
case TYPE:
type = cvp.getStringValue();
if (type.equals(ENDSEC)) {
doLoop = false;
doLoop2 = false;
break;
}
break;
case VARIABLE_NAME:
doLoop2 = false;
br.reset();
break;
case X_1:
x = cvp.getDoubleValue();
break;
case Y_1:
y = cvp.getDoubleValue();
break;
case TEXT:
tversion = cvp.getStringValue();
break;
case INT_1:
tfillmode = cvp.getShortValue();
break;
default:
}
}
if (variableName.equals($LIMMIN)) {