Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

How to create Workspace using API

$
0
0

Hi Friends,

 

I am trying to create a Workspace in ProjectLink but using the follwing API but when I execute it throws me the error :

 

Error:

INFO  : wt.system.err Administrator - (wt.inf.container.containerResource/26) wt.inf.container.ClassicContainerNotFoundException: Context not found: "Windchill PDM"

 

Code:

WTPart part = getPart("xxxxxxx");

 

EPMWorkspace workspace = wt.epm.workspaces.EPMWorkspace.newEPMWorkspace("NewWorkSpace", SessionHelper.getPrincipal(),FolderHelper.getFolder(part) , WTPartConfigSpec.newWTPartConfigSpec(),EPMDocConfigSpec.newEPMDocConfigSpec() );

PersistenceHelper.manager.save( workspace );

 

can anyone help me how I can achieve this


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>