How do I read drawing extents

Hi,I have a dxf file with the below extents in the header section.
How do I read them using dxflib ?

$LIMMIN
10
-122.3180704378
20
47.4300256966
9
$LIMMAX
10
-122.3078004390
20
47.4643399154

The DXF parser calls the setVariableVector, setVariableString, setVariableInt or setVariableDouble functions of your DL_CreationInterface implementation for each such header variable that is found.

This is my header section in dxf file

0
SECTION
2
HEADER
9
$ACADVER
1
AC1009
9
$LUNITS
70
2
9
$LIMMIN
10
-122.3180704378
20
47.4300256966
9
$LIMMAX
10
-122.3078004390
20
47.4643399154
9
$EXTMIN
10
-122.3180704378
20
47.4300256966
9
$EXTMAX
10
-122.3078004390
20
47.4643399154
999


After using the following function int example dxflib_test shipped with dxflib ,it gives

Key#$ACADVER ,Value#AC1009 , Code# 1

void Test_CreationClass::setVariableString(const char*key , const char*value, int code)
{

	 printf("\n\n\n\t Key#%s ,Value#%s , Code# %d\n",key,value, code
);

	
   
	// printAttributes();

}

Is there a way to get values from $LIMMIN and $LIMMAX

For $LIMMIN / $LIMMAX you are not looking for a string but vector (setVariableVector).

Thank you :smiley: .I got the dxf boundaries now.

void Test_CreationClass::setVariableVector(const char* key,double v1, double v2, double v3, int code)
{
printf("\n\n\n\t Key#%s ,v1#%f , v2#%f,v3#%f\n",key,v1, v2,v3,code);

}