cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Pro/E VBA newbie

kimndave9
1-Visitor

Pro/E VBA newbie

(If this is a duplicate, please ignore - I didn't see the original in the Forum.)



I get the following Compile Error "Argument not optional." What argument is it missing?


Sub async_test()


Dim asyncConnection As IpfcAsyncConnection
Dim cAC As CCpfcAsyncConnection
Dim session As IpfcBaseSession
Dim descModel As IpfcModelDescriptor
Dim descModelCreate As CCpfcModelDescriptor
Dim model As IpfcModel

Dim sessionid As IpfcConnectionId

Set sessionid = New CCpfcConnectionId

Set cAC = IpfcAsyncConnection

Set sessionid = CCpfcAsyncConnection.GetConnectionId()

Set asyncConnection = cAC.ConnectById(sessionid) <<<<<--Highlights ".ConnectById" including the leading dot.

Set session = asyncConnection.session


End Sub

0 REPLIES 0
Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags