AnsweredAssumed Answered

Edm.tlb file and PDMWorks Enterprise 2008 Type Library

Question asked by James Head on Jan 12, 2012
Latest reply on Jan 18, 2012 by James Head

"The “SolidWorks Enterprise PDM Programmer’s Reference Guide” on the second topic under “Overview”, “Stand-alone applications in Visual Basic” says that we need to use Add Reference from the Project menu in Visual Basic to add “PDMWorks Enterprise 2008 Type Library” under the COM tab. We don’t have this listed under our COM tab so we’ve tried the further instructions that “SolidWorks Enterprise PDM Programmer’s Reference Guide” mentions and used the Browse tab to locate and select the Edm.tlb file however the “PDMWorks Enterprise 2008 Type Library” still doesn’t appear in the COM list.

If I copy the example program into a VB program I have 9 errors listed as shown below:

Error 1 'Private Sub Button1_Click(sender As Object, e As System.EventArgs)' has multiple definitions with identical signatures. C:\Documents and Settings\James.Head\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb 3 17 WindowsApplication1
Error 2 Statement cannot appear within a method body. End of method assumed. C:\Documents and Settings\James.Head\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb 8 5 WindowsApplication1
Error 3 Type 'EdmVault5' is not defined. C:\Documents and Settings\James.Head\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb 12 22 WindowsApplication1
Error 4 Type 'EdmVault5' is not defined. C:\Documents and Settings\James.Head\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb 13 21 WindowsApplication1
Error 5 Type 'IEdmFile5' is not defined. C:\Documents and Settings\James.Head\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb 18 21 WindowsApplication1
Error 6 Type 'IEdmFolder5' is not defined. C:\Documents and Settings\James.Head\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb 19 23 WindowsApplication1
Error 7 Type 'IEdmPos5' is not defined. C:\Documents and Settings\James.Head\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb 23 20 WindowsApplication1
Error 8 'End Sub' must be preceded by a matching 'Sub'. C:\Documents and Settings\James.Head\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb 58 5 WindowsApplication1
Error 9 'End Class' must be preceded by a matching 'Class'. C:\Documents and Settings\James.Head\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb 59 1 WindowsApplication1


I guess this shows that the “PDMWorks Enterprise 2008 Type Library” isn’t available still despite my following the instructions to browse and select the Edm.tlb file."

How do I add this library?  We're using Visual Studio 2010 and Solidworks EnterprisePDM 2010 SP3.

Outcomes