I have been trying to check in files to PDMWorks Workgroup and I can not get it to work in reliable way. I have tried with vba, VSTA, addin and nothing helps. For me the problem occures when check-in is done via API and I try to quit SW -> SW crashes. For other users it just depends on its own mood, all kinds of "trying to write to write protected memory" and such a problems occures. For example this does work for check-in, but crashes SW when trying to close it:
Dim Connection As IPDMWConnection
Sub main()
Dim CurrentDoc As IPDMWDocument
Set Connection = CreateObject("PDMWorks.PDMWConnection")
Connection.Login "pdmwadmin", "pdmwadmin", "server"
Set CurrentDoc = Connection.CheckIn("C:\\Part1.sldprt", "test", "1000", "Description", "Explanation", Default, "", "DEV", True, Nothing)
Set CurrentDoc = Nothing
Connection.Logout
Set Connection = Nothing
End Sub
Any ideas what I`m doing wrong?
SolidworksApi macros