I recently upgraded my 2007 SP 2.2 installation of PDMWorksand Solidworks to 2008 SP 01.1 to try out using the new SaveAsPDFfunction for a PDMWDocument object available in the 2008 PDMWorksAPI. When I try to call SaveAsPDF on any given drawing document inmy vault, I receive the following runtime error and no file issaved:
"An unknown filesystem error occurred. (50)"
I can call other functions using the API, including the originalSaveAs function using the same drawing file in the vault as I'musing for my calls to SaveAsPDF.
Pseudocode of my workflow is as follows:
-----------------------------------------------
docName = "rocket.slddrw"
docRev = "A-1"
folder = "C:\Documents and Settings\user\Desktop\TestPDF\"
Login to PDMWorks server
If Login successful
document = GetSpecificDocument(docName , docRev)
If document != null
saveResult = document.SaveAsPDF(folder)
End If
Logout
End If
-----------------------------------------------
Does anyone have any ideas as to what might cause this error? Isthere setup required in PDMWorks before I can use the new SaveAsPDFfunction?SolidworksApi macros






"An unknown filesystem error occurred. (50)"
I can call other functions using the API, including the originalSaveAs function using the same drawing file in the vault as I'musing for my calls to SaveAsPDF.
Pseudocode of my workflow is as follows:
-----------------------------------------------
docName = "rocket.slddrw"
docRev = "A-1"
folder = "C:\Documents and Settings\user\Desktop\TestPDF\"
Login to PDMWorks server
If Login successful
document = GetSpecificDocument(docName , docRev)
If document != null
saveResult = document.SaveAsPDF(folder)
End If
Logout
End If
-----------------------------------------------
Does anyone have any ideas as to what might cause this error? Isthere setup required in PDMWorks before I can use the new SaveAsPDFfunction?SolidworksApi macros