Skip to main content
1-Visitor
September 27, 2022
Question

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

  • September 27, 2022
  • 2 replies
  • 1758 views

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.

2 replies

24-Ruby III
September 27, 2022

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 

1-Visitor
September 27, 2022

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.

 

24-Ruby III
September 27, 2022

@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. 

24-Ruby III
September 27, 2022