You will need to write a parser to parse the DXF/DWG for layer, color,entity type, linetype, X,Y locations, size etc etc etc. I wrote a dedicated DXF reader a number of years ago (VB4!!!). It was designed just to read circles and it was a PAIN!!. Handling all possible entity types could be a real nightmare. Not to mention Autodesk tries to ensure each version cannot be read by another version (criminal as far as I'm concerned), so be prepared for a great deal of "version" maintenance.