Skip to main content
4-Participant
January 25, 2023
Solved

Help on deprecated Windchill API

  • January 25, 2023
  • 1 reply
  • 1572 views

Hello,

 

I'm working on deprecated API and some on the information on the javadoc is missing.

Could you please tell me how to replace this following deprecated Windchill API :

wt.effectivity.EffectivityHolder

wt.prefs.PreferenceHelper

wt.prefs.WTPreferences

 

Kind regards,

 

 

 

 

 

 

Best answer by avillanueva

Agree with @HelesicPetr, the JavaDoc is missing a lot of information on classes and API. I can tell that in 11.1, WTPreference is marked deprecated but the information is still listed. PTC can remove that at any time in future versions but if it exists at all, likely that it is untouched and an older API write up still applies. Check it with your IDE to be sure. My first step on upgrading versions is to look for these things but I find PTC rarely removes them. WTPreference is still documented in the Customizer's guide of 12.0.2.0 if that tells you anything.

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
January 25, 2023

Hello @Ely_64 

Good question. I would contact directly PTC support to get an answer. 

 

I use deprecated API a lot with PTC products. If the method is removed in new version I usually find another way how to replace the removed function but it does not happen very often.

 

PetrH 

PetrH
avillanueva
23-Emerald I
23-Emerald I
January 25, 2023

Agree with @HelesicPetr, the JavaDoc is missing a lot of information on classes and API. I can tell that in 11.1, WTPreference is marked deprecated but the information is still listed. PTC can remove that at any time in future versions but if it exists at all, likely that it is untouched and an older API write up still applies. Check it with your IDE to be sure. My first step on upgrading versions is to look for these things but I find PTC rarely removes them. WTPreference is still documented in the Customizer's guide of 12.0.2.0 if that tells you anything.

Ely_644-ParticipantAuthor
4-Participant
January 25, 2023

Thanks a lot for your answers ! @HelesicPetr @avillanueva 

 

Elea