An example how to convert a SolidWorks part to 3DXML:
import win32com.client app=win32com.client.Dispatch("SldWorks.Application") doc=app.OpenDoc("c:\\Testpart.SLDPRT", 1) doc.SaveAs2("c:\\Testpart.3dxml", 0, True, False)
Automation of Applications with Python for Windows – The Script Collection
An example how to convert a SolidWorks part to 3DXML:
import win32com.client app=win32com.client.Dispatch("SldWorks.Application") doc=app.OpenDoc("c:\\Testpart.SLDPRT", 1) doc.SaveAs2("c:\\Testpart.3dxml", 0, True, False)