I amextremely new to Solidworks products so forgive the "verybasic" question. I cannot get a valid connection to PDMWorks andneed some help. Here is what I've done:
1. I have PDMWorks running on a machine called DEV-SOLIDWORKS andhad created two users: admin and rodney. This was installed usingdefaults.
2. On my local machine, I created a view to the "vault" onDEV-SOLIDWORKS. (vault_setup.gif)
3. I can then access the vault in windows explorer ... appears tobe no issues. (vault_access.gif & vault_view.gif)
4. When trying to access the vault in code however, I get anexception raised (An unknown network error occurred. (40)). I'veeven installed SolidWorks and dev studio on the PDMWorks box in anattempt to isolate network traffic to the local machine but havereceived the same results. I have tried administrator as well asadmin and Rodney for the login
Here is the code when run from the DEV-SOLIDWORKS machine(localhost):
SolidworksApi macros



1. I have PDMWorks running on a machine called DEV-SOLIDWORKS andhad created two users: admin and rodney. This was installed usingdefaults.
2. On my local machine, I created a view to the "vault" onDEV-SOLIDWORKS. (vault_setup.gif)
3. I can then access the vault in windows explorer ... appears tobe no issues. (vault_access.gif & vault_view.gif)
4. When trying to access the vault in code however, I get anexception raised (An unknown network error occurred. (40)). I'veeven installed SolidWorks and dev studio on the PDMWorks box in anattempt to isolate network traffic to the local machine but havereceived the same results. I have tried administrator as well asadmin and Rodney for the login
Here is the code when run from the DEV-SOLIDWORKS machine(localhost):
Imports Pdmworks
Imports System.Windows.Forms
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles MyBase.Load
Try
Dim conn As PDMWorks.PDMWConnection
conn = CreateObject("PDMWorks.PDMWConnection")
conn.Login("admin", "admin", "localhost")<-- blows right here
conn.Logout()
conn = Nothing
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
SolidworksApi macros
