Can someone help me with the conversion of SOLIDWORKS file to URDF

I'm using a simulation software called WEBOTS. For that I need to convert the SOLIDWORKS file to URDF and then into PROTO file so that I'll be able to simulate the links. Whenever I import the file into the software, it gets disassembled in WEBOTS. Can anyone help me with this? Thanks a ton in advance.