Skip to main content
1-Visitor
Jul 21, 2022 11:53 AM UTC
Solved

Errors using Creo Parametric VB API in HEEDS

I am using Creo Parametric Release 5.0 and Datecode5.0.6.0

I'm trying to connect HEEDS with Creo Parametric, and this requires registering with the HEEDS VB API (which I've done with admin rights and launching ...creo/5.0.6/Creo 5.0.6.0/Parametric/bin/vb_api_register.bat). When I use HEEDS to test the Creo Parametric API Registration, it fails with this message:

Info: K:\PROD\wnt\heeds\2021.2\MDO\ver2021.2\win64\solver\..\portals\Creo\Default\HEEDS_CreoParametric_Interface.exe input args:
1: testapi
2: creocmd
3: k:\prod\wnt\creo\5.0.6\creo 5.0.6.0\parametric\bin\parametric.bat
Info: ---------------------
Info: creoCmd=K:\prod\wnt\creo\5.0.6\Creo 5.0.6.0\Parametric\bin\parametric.bat
Info: PRO_COMM_MSG_EXE=K:\prod\wnt\creo\5.0.6\Creo 5.0.6.0\Common Files\x86e_win64\obj\pro_comm_msg.exe
A Retrieving the COM class factory for component with CLSID {456E0110-2031-3907-AFE5-9201C97A915E} failed due to the following error: 80040154. exception was thrown.
The call stack at the time of the exception was:
at HEEDS_CreoParametric_Interface.Module1.start(String& conIdExt)
at HEEDS_CreoParametric_Interface.Module1.Main()
Program has ended.


Here are the errors that I faced
A Retrieving the COM class factory for component with CLSID {456E0110-2031-3907-AFE5-9201C97A915E} failed due to the following error: 80040154. exception was thrown.

1-Visitor
Jul 29, 2022 1:38 PM UTC

Hi remy,

 

I was able to meet up with HEEDS support. They were very helpful. The issue has been resolved as it stemmed from HEEDS.

 

For those interested, here is the solution that was applied on the HEEDS side. 

 

At my company we have Creo installed at in a non-standard location (i.e., not on C:\). Because of this, HEEDS was not able to determine the version of Creo it was connecting to, and thus defaulted to using the Creo 8.0 interfacing scripts. To circumvent this issue, I was able to manually override the version that HEEDS defaulted to (Creo 8.0), to instead use the appropriate interfacing scripts (in my case, Creo 5.0). To do this, I modified the HEEDS "Execution command" under the Creo Parametric Analysis Portal from:

"%HEEDS_ROOT%\..\portals\Creo\%CREO_VER%\HEEDS_CreoParametric_Interface.exe"

to:

"%HEEDS_ROOT%\..\portals\Creo\Creo 5\Default\HEEDS_CreoParametric_Interface.exe"

 

Thanks,

-Marc

 

6 replies

17-Peridot
Jul 22, 2022 7:01 AM UTC

Try this

Translate
1-Visitor
Jul 26, 2022 1:33 PM UTC

Hi ysinitsyn,

 

Unfortunately, I do not have a previous version of Creo Parametric. This is the only version that I have installed on my company laptop. 

 

I have set the environment variable PRO_COMM_MSG_EXE to the path of pro_comm_msg.exe in current version of Creo Parametric with no luck.

 

Thanks,

-Marc

Translate
17-Peridot
Jul 29, 2022 8:13 AM UTC

1. Open any model in Creo

2. Run a file MessageBox.js (double click by file). If Windows will ask, then select Windows script host

 

a. If you'll see a message box with model name, then you setup VB API correct and problem in third party application.

b. If you'll see any error, then you have problem in Creo setup to work with VB API.

Translate
21-Topaz I
Jul 29, 2022 7:53 AM UTC

Hi 

If you mean Simcenter HEEDS, then I recommend you file a ticket at their desk.

Unless someone else from the community has come accross your issue.

Translate
MR_103717371-VisitorAuthorAnswer
1-Visitor
Jul 29, 2022 1:38 PM UTC

Hi remy,

 

I was able to meet up with HEEDS support. They were very helpful. The issue has been resolved as it stemmed from HEEDS.

 

For those interested, here is the solution that was applied on the HEEDS side. 

 

At my company we have Creo installed at in a non-standard location (i.e., not on C:\). Because of this, HEEDS was not able to determine the version of Creo it was connecting to, and thus defaulted to using the Creo 8.0 interfacing scripts. To circumvent this issue, I was able to manually override the version that HEEDS defaulted to (Creo 8.0), to instead use the appropriate interfacing scripts (in my case, Creo 5.0). To do this, I modified the HEEDS "Execution command" under the Creo Parametric Analysis Portal from:

"%HEEDS_ROOT%\..\portals\Creo\%CREO_VER%\HEEDS_CreoParametric_Interface.exe"

to:

"%HEEDS_ROOT%\..\portals\Creo\Creo 5\Default\HEEDS_CreoParametric_Interface.exe"

 

Thanks,

-Marc

 

Translate
21-Topaz I
Jul 29, 2022 1:40 PM UTC

Well done. 

Remember to tag your post as the solution to close the thread.

Translate