cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

how can we get/ fetch the active workspace through customization.

AR_9920456
14-Alexandrite

how can we get/ fetch the active workspace through customization.

Version: Windchill 12.1

 

Use Case: I wanted to add some BOM into workspace, iam unable to get the active workspace. I did by hardcoding the workspace oid


Description:

i collated the BOM and i need to get the active workspace, 

I don't know how to get the active workspace, as of now i am hardcoding the workspace oid 

  wt.epm.workspaces.EPMWorkspace workspace = (wt.epm.workspaces.EPMWorkspace) referenceFactory
                .getReference("OR:wt.epm.workspaces.EPMWorkspace:1150900").getObject();
 
i wanted to  dynamically fetch the active workspace instead of hardcoding the workspace OID, i need to retrieve the active workspace for the current user session. 
1 REPLY 1

Hi @AR_9920456 

I am not sure if you can get Active workspace from the server side because active workspace information is part of workgroup manager function.

Yes Creo has also WGM.

If you open Windchill just by explorer can you see active workspace?

 

PetrH

Announcements

Top Tags