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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! 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
Top Tags