Solidworks - converting DWG files to mesh(.obj or .ply or .stl)

I have some DWG files which contain walls of old castle some of the vertex are missing so I have to join them manually or found software to generate them automatically Does solid works have this functionality ?

After joining vertex how can I convert walls to meshes?

SolidworksGeneral