Skip to main content
1-Visitor
December 17, 2015
Question

VB API: IpfcAsyncConnection.End() crashes Creo.

  • December 17, 2015
  • 2 replies
  • 3227 views

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.

2 replies

16-Pearl
January 31, 2017

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()

1-Visitor
May 13, 2019
Moved to unique thread as this thread is quite dated.
1-Visitor
September 30, 2020

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.