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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

VB API: IpfcAsyncConnection.End() crashes Creo.

pcaceres
1-Visitor

VB API: IpfcAsyncConnection.End() crashes Creo.

Good day.

I am working with the VB API in C# with Visual Studio 2015 and so far I have been successful in starting a new AsyncConnection, loading some models, adding a couple Action Listeners, etc.

However, I have never been able to properly end a connection:

Every time I call IpfcAsyncConnection.End() . the Creo Parametric session simply crashes, and I have to force close it.

This seems so simple but I can't get it to work. I have tried closing windows, disconecting first, etc.

Has anyone experienced the same? Any sugestions?

Thanks,

Pedro.

3 REPLIES 3

Hi,

  IpfcAsyncConnectiion.End() - Command will force close all the process related to the Creo.

Use the following commands for Asynchronous application with COM connection


1. To start Creo

    CCpfcAsyncConnection.Start()

2. To Connect with existing session

    CCpfcAsyncConnection.Connect()

3. To continue with Connected session

    CCpfcAsyncConnection.GetActiveConnection()

4. To Stop / Disconnect the Current session

   IpfcAsyncConnection.Disconnect()

5. To End the Creo session

   IpfcAsyncConnection.End()

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"

Can you some example code how to load model in asyn model?

 

I have been trying to code but every time it returns nothing.

Please help.

Announcements


Top Tags