Skip to main content
8-Gravel
March 29, 2021
Question

JLink in Creo 7.0.3.0

  • March 29, 2021
  • 2 replies
  • 2430 views

I have an async JLink application that has been running OK for many years.

Now I am testing it with Creo 7 and any 'ExecuteFeatureOps' fail with 'XToolkitBadContext'.

I have tried the new RegenInstructions option 'SetResolveModeRegen(true)' but it still throws the error.

Has anybody any ideas?

2 replies

20-Turquoise
March 29, 2021

You will need to open a case with PTC tech support to get a "magic number" to use with the allow_deprecated_config config option. Once you have this you can then use the regen_failure_handling config option, which is still needed, when using jlink ExecuteFeatureOps.

 

You will have to get an updated "magic number" when you start using Creo Parametric 8 because this number changes with releases.

 

See article  CS260154: https://www.ptc.com/en/support/article/CS260154

 

PTC apparently did not think this change thru.

 
 
24-Ruby III
March 29, 2021

@SidneyHepplethw wrote:

I have an async JLink application that has been running OK for many years.

Now I am testing it with Creo 7 and any 'ExecuteFeatureOps' fail with 'XToolkitBadContext'.

I have tried the new RegenInstructions option 'SetResolveModeRegen(true)' but it still throws the error.

Has anybody any ideas?


Hi,

CS323992 contains following information ... Creo Parametric 7.0.2.0 onwards, to use the resolve mode, set pfcSolid.RegenInstructions.SetResolveModeRegen(true) and pass that RegenInstructions object to pfcSolid.Solid.Regenerate().

If you use this procedure and it does not work, then prepare testing application and send it to PTC Support.

24-Ruby III
March 29, 2021

Also read  CS323327.