Article - CS323327

Getting error from CS260154 with deprecated config.pro option regen_failure_handling (default) no_resolve_mode with Creo VB API and Object TOOLKIT Java

Modified: 17-Dec-2025   


Applies To

  • Creo Parametric 7.0 to 12.4
  • Creo Object TOOLKIT Java
  • Creo Parametric VB API
  • Creo Parametric Web Link

Description

  • Getting error an authorization must be specified with 'allow_deprecated_config' to use the deprecated configuration option. See article CS260154 for more information. with config.pro option regen_failure_handling (default) no_resolve_mode in combination with pfcSolid::Regenerate() 
  • Application fails regeneration despite applying CS259546
  • How to regenerate Solid in Creo Object TOOLKIT Java & VB API
Session session=pfcGlobal.GetProESession();
session.SetConfigOption("regen_failure_handling", "resolve_mode");
        if (model != null) {
            try {
                RegenInstructions in = null;

                in = pfcSolid.RegenInstructions_Create(false, false, null);
                ((Solid) model).Regenerate(in);
                success = true;
            } catch (Throwable t) {
                Log.write("Error regenerating model : " + t);
            }
  • How to call pfcSolid::ExecuteFeatureOps() when resolve_mode configuration option is removed
  • JOTK Application doesn't work if the regen_failure_handling is not set as resolve_mode, but since Creo 7 the option is obsolete
  • ExecuteFeatureOps() throws error XToolkitBadContext in absence of Resolve mode
This is a printer-friendly version of Article 323327 and may be out of date. For the latest version click CS323327