chockalingam:
I am not able to get the model ref in call back function
The signature of your callback function...
int callBackFunc (ElementRef, void *callbackArg, ScanCriteriaP scP);
To get the model reference curently being scanned...
DgnModelRefP modelRef = mdlScanCriteria_getModel (scP);