Skip to main content
3-Newcomer
February 2, 2026
Question

VB Api & Creo Assembly

  • February 2, 2026
  • 1 reply
  • 434 views

I am using Creo Parametric Release 9.0 and Datecode9.0.9.0

With CREO 4.0 we developed a script for sustitution of failed components in assembly. With CREO 9.0 this script returns the following message in std.out:
"Attempted use of deprecated config option 'regen_failure_handling' was blocked." even if in config.pro the option regen_failure_handling no_resolve_mode doesn't returns error in the configuration interface.
In document CS260154 I've read that an authorization code is needed to make the VBA script working.
For the future we are working on a different solution, but at present we are in need of help. Can you help us?
Thank you.

Here are the errors that I faced
Attempted use of deprecated config option 'regen_failure_handling' was blocked

1 reply

21-Topaz II
February 2, 2026

I've never done VB or other scripting like this, but did you try to take out the code that is calling for this "regen_failure_handling" setting? I seem to remember that when we switched to Creo 9 from Creo 4, the way regeneration failures was are handled was no longer a nightmare of forced fixing like it used to be.

Probably the authorization code is not specific to this option, but something that lets someone use any of the deprecated options. Deprecation appears to be a final elimination of the option, whereas they usually make options "hidden" if they're going to still allow them but  only if you can find them.

Do you have the code that was used in Creo 4 and are you able to edit it, use the edited code, etc.?

3-Newcomer
February 2, 2026

Hi Ken, thank you for your reply.

In Creo 9.0 the option "regen_failure_handling" is hidden (no errors in configuration interface), but deprecated (to use it you need an authorization code).

The default value is "no_resolve_mode", so I removed the lines calling that option from the script, but I obtain the following error: 

System.Runtime.InteropServices.COMException: 'pfcExceptions::XToolkitBadContext'

 

So I deduced there's no way to proceed but obtaining the authorization code.

 

Just an information, I'm a former PTC Application Engineer, so I almost never used PTC Support, but I remember that there were a free toll phone number to obtain immediate support and a system to open cases via web obtaining a tracking number. Now the best I obtained is publishing a post in the users community. 

How can I open a support case and get a tracking number from PTC Support?

 

Thank you in advance.

tbraxton
22-Sapphire II
22-Sapphire II
February 2, 2026

https://support.ptc.com/apps/case_logger_viewer/cs/auth/ssl/log 

 

Make sure to read the prompts and open a case and not post to the community when presented with the option to do so.