2D to 3D

If is possible to use API for .Net to build 2D dwg layers combine to 3D model, if could be, is there any sample code for my urgent project, I will very thank you.@

SolidworksApi macros