VB_API problems
Hi everybody,
i wrote an application on ProE/WF4 vbapi that worked well.
I passed to Creo and i got a big surprise: i cannot connect to any session of creo via VB!!!!
I'm using VS2010 and Creo Elements Pro M080 on Windows 7 and XP SP3, i registered all the variables as said in the "manual" but nothing works.
I post my code
(old version WORKING in WF4, NOT WORKING in Creo)
Dim asynconn As New CCpfcAsyncConnection
Dim conn As IpfcAsyncConnection
Dim session As IpfcBaseSession
conn = asynconn.Connect("", "", ".", 5)
session = conn.Session
(directly from PTC manual, still NOT WORKING in CREO)
Dim connection As IpfcAsyncConnection
Dim classAsyncConnection As New CCpfcAsyncConnection
connection = classAsyncConnection.Connect(DBNull.Value, DBNull.Value, DBNull.Value, DBNull.Value)
Dim session As IpfcBaseSession
session = connection.Session
Also the examples in the VB_API folder in Creo do not work.
I need to reach the active session to open a model, selected in an external menu and i need to retrieve the name of the model actually in session.
Does anybody have the same problem? Wayouts?
Tks
Osvaldo Carpina
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

