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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Translate the entire conversation x

VB Api & Creo Assembly

spiccirillo
3-Newcomer

VB Api & Creo Assembly

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

6 REPLIES 6

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

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
(To:spiccirillo)

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.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

Wow, I remember long ago when I started using Pro/E you'd get the absolute sharpest shooters with the program when you called the help line. One time a guy I was connected with was someone I'd worked with at a former employer. The good old days, I suppose.

 

Yeah, when I type that option into my config.pro it shows up with the color that indicates it's hidden. I know I used to use it, but probably removed it when warned that it was deprecated, I think. It's been a while.

Yeah! The good old days!

PTC_logo_old.jpg

 

tbraxton
22-Sapphire II
(To:spiccirillo)

Currently I have found that submitting a video of how to replicate the issue along with test models is the most expedient way to get a call opened where they understand what is being asked. If you describe it in writing and it is non-trivial you will likely have to get on a web call with someone, so they understand the issue and what is being asked of them. They are opening new calls in a timely fashion (usually the same business day) but not resolving them quickly. If they have to ask R&D, then expect more than a month to get a meaningful answer.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
Announcements

Top Tags