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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Publishing the 'As Stored' Configuration from Workflow code

iwebb
2-Guest

Publishing the 'As Stored' Configuration from Workflow code

I am trying to use the following code to publish the 'As Stored' configuration of ProE files (Winchill 10.1 M030):-

int configSpec = <value>;

PublishConfigSpec publishConfigSpec = new PublishConfigSpec();
publishConfigSpec.setConfigSpec(configSpec);
publishConfigSpec.activateConfigSpec();
Publish.doPublish(
false,
true,
doc,
publishConfigSpec.getEPMActiveNavigationCriteria(),
publishConfigSpec.getPartActiveNavigationCriteria(),
true,
"Rep: "+doc.getNumber(),
"Description",
publishConfigSpec.getStructureType(),
null);

The ConfigSpec Integer parameter was set to 1 when I found this code - this publishes the 'Latest' configuration.

I have tried the following values with these results:-

configSpec = 0; Latest
configSpec = 1; Latest
configSpec = 2; Lifecycle: In Work
configSpec = 3; Latest
configSpec = 4; Effectivity: <date>
configSpec = 5; Latest
configSpec = 6; Latest
configSpec = 7; Latest
configSpec = 8; Latest
configSpec = 9; Latest
configSpec = 10; Latest

configSpec = -1; Latest

Any ideas what value I should use for 'As Stored' Configuration ?

0 REPLIES 0
Announcements

Top Tags