Skip to main content
1-Visitor
August 5, 2024
Question

Windchill 12.0 Java API for LWCCommands

  • August 5, 2024
  • 1 reply
  • 569 views

I have below code snap for Windchill 11.0 it is working but when i try to check with 12.0 the  LWCCommands class is not available deprecated is there any alternate? I am trying to access getTypeAttributes method for below code.

 

import com.ptc.core.lwc.client.commands.LWCCommands;

 

LWCTypeDefinition lwcObj = (LWCTypeDefinition) persistables[0];

ArrayList<AttributeDefinitionReadView> typeList = LWCCommands
.getTypeAttributes("OR:" + lwcObj.toString());

 

-Any help or suggestions will really help me.

-Regards,

WC_User

1 reply

Catalina
Community Moderator
August 8, 2024

Hi @KU_10897245,

Thank you for your question!

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.

 

Thanks,

Catalina | PTC Community Moderator