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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

VB Creo Connection

hsb7
13-Aquamarine

VB Creo Connection

Hi,

As I've understood CCpfcAsyncConnection.Connect() connects to existing Creo session with 4 variables and CCpfcAsyncConnection.ConnectById() connects with ID which have been used previously.

 

CCpfcAsyncConnection.Start() is a time consuming process, because it takes more time to open Creo and connect each time.

 

For the process I'm running i.e., Model renaming, regenerating and pdf generation (few simple processes), I'm only able to run the program 3 to 4 times. After that either the connection methods do not work. They both give errors. Every time I've to restart the system(PC) to start the process again.

 

So I was wondering if anyone has encountered this error and any solutions for it?

 

Thanks in advance.

2 REPLIES 2
remy
21-Topaz I
(To:hsb7)

To help troubleshoot:

 

First thing first: what error is thrown by what function? 

 

Second did when you say "run the program 3 to 4 times" does it mean your application is looping or do you restart the application manually? to clear this out, build a simple project from an example shipped with Creo (refrain from coding anything else than the provided) and test this out to see if the issue related with your code or Creo itself.

 

Finally as this ever worked before in a previous version? 

 

 

hsb7
13-Aquamarine
(To:remy)

1. Error is thrown by function to Connect to Creo

shown in attached pic.

 

CreoConnectionError.jpg

 

2. I'm restarting the application manually. I'm checking the method suggested by you.

 

Thanks

Announcements


Top Tags