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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

issue with connecting to Creo parametric session. Application is throwing Automation error.

SK_10425554
1-Visitor

issue with connecting to Creo parametric session. Application is throwing Automation error.

I am using Creo Parametric Release 6.0 and Datecode6.0.3.0

Toolkit - VB API is used to build an application to change the dimensions of a Creo model. The application connects with an existing Creo Session, opens the Creo model from given Working Directory and edits the dimensions.
We are facing difficulty in connecting with Creo in the first place.

Dim con As pfcls.IpfcAsyncConnection
Dim Casync As New pfcls.CCpfcAsyncConnection

Set Casync = New pfcls.CCpfcAsyncConnection
Set con = Casync.Connect("", "", "", 1)

Finding a Automation Error in the .Connect() line of code.

This error does not occur in my laptop but in other employee's laptop besides them having the same System version and Creo version as me.

Here are the errors that I faced
Automation Error. The server threw an exception.
pfcException:XtoolkitNotFound

We are facing difficulty in connecting with Creo in the first place.

Dim con As pfcls.IpfcAsyncConnection
Dim Casync As New pfcls.CCpfcAsyncConnection

Set Casync = New pfcls.CCpfcAsyncConnection
Set con = Casync.Connect("", "", "", 1)

Finding a Automation Error in the .Connect() line of code.

This error does not occur in my laptop but in other employee's laptop besides them having the same System version and Creo version as me.

Sometimes even the Creo Parametric Session and window Closes automatically though there is no line of code which mentions to close Creo.

4 REPLIES 4

Have a look at the solution here - "Calling on IpfcAsyncConnection.Connect() fails with error: "System.Runtime.InteropServices.COMException (0x80020009): pfcException::XToolkitNotFound"": https://www.ptc.com/en/support/article/cs225432 

bro i install creo 9.0.0.0 student edition i installed sucessfully but when i open it shutdown and it shows because it could not run the quality agent,which is required in this edition and error is 0x06000012.

 


@SS_10383486 wrote:

bro i install creo 9.0.0.0 student edition i installed sucessfully but when i open it shutdown and it shows because it could not run the quality agent,which is required in this edition and error is 0x06000012.

 


Hi,

please read discussions mentioned in search results

https://community.ptc.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&q=0x06000012. 


Martin Hanák

Hi,

please read https://www.ptc.com/en/support/article/CS321596 document.


Martin Hanák
Announcements


Top Tags