Skip to main content
7-Bedrock
July 31, 2023
Solved

Adding custom action on Workspace GUI

  • July 31, 2023
  • 1 reply
  • 5347 views

I want to add custom action on a windchill workspace GUI , if any body done then please share the details. 

 

 

 

 

 

 

 

 

Best answer by HelesicPetr

Hi @SA_9497989 

There is no way without editing the WsMenuBarHelper.... (or I've never found it in my notes I wrote that WsMenuBarHelper is not extendable...)

You need a  better decompilator.

 

PS> the class is in a wncWeb.jar so you need to remove the class from that jar file and located it in codebase folder or update it in the file..

as I said, Changing the ws menu is not supported and is too complicated. 

 

PetrH

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
July 31, 2023

Hi @SA_9497989 

Workspace customization UI is not supported but it does not mean you can not do it.

 

I just can say it is hardcoded and very very complicated. I did it several times, but it is time consuming process. 

here is an article  CS15567 that describes APIs used in Workspace. You can rewrite them and add own function. 

 

com.ptc.windchill.uwgm.cadx.ws.WorkspaceActionsUrlLinkResource

com.ptc.windchill.uwgm.cadx.ws.MselUrlLinkResource

 

I change an another class where I just add a custom menu function

com.ptc.windchill.uwgm.cadx.ws.WsMenuBarHelper

this api can not be extended so you need to rewrite it and every new version do the customization again. 

 

PetrH

PetrH
7-Bedrock
July 31, 2023

Thanks for your suggestion , How this page Actions are loading , what is the ActionModel name ? 

HelesicPetr
22-Sapphire II
22-Sapphire II
July 31, 2023

Hi @SA_9497989 

There is not the actionModel name because it does not exists. The menu is defined in a java class .

As I mentioned earlier it is the com.ptc.windchill.uwgm.cadx.ws.WsMenuBarHelper class

 

PetrH

PetrH