Batch convert .dwg to .3dm

Hi, I was wondering, does anyone have a recommended method/ script to batch convert .dwg files and save them as .3dm? The files contain curves and hatches only and I need to convert them in order to be able to process (i.e. to read) the files using Grasshopper.