Skip to main content
14-Alexandrite
July 25, 2025
Solved

Prohibit publishing for a specific context

  • July 25, 2025
  • 1 reply
  • 349 views

Version: Windchill 12.1

 

Use Case: On my Windchill server there are multiple product contexts, but in one of them people are working with solidworks. Is there a way to prohibit publishing only in that specific context?


Description:

The goal is to prevent multiple failed jobs on the WVS job monitor and keep the queue free of unnecessary files.
Also I don't have a solidworks license available to make a worker for these files.

The only way I could find was to prohibit single files, so once a day I take a look at the WVS job monitor, filter for that solidworks context, make a prohibit rule, and delete it all.

To configure a SolidWorks worker later on, I'm going to need to delete prohibition rules one by one or clean the table on DB.

There's no clear identification on the DB table, and there are some rules that I don't want to remove.

Best answer by mmeadows-3

Why not exclude objects by file extension?
https://www.ptc.com/en/support/article/CS39455
https://www.ptc.com/en/support/article/CS135047

<Property name="publish.service.filterpublishmethod" overridable="true"
targetFile="codebase/WEB-INF/conf/wvs.properties"
value="com.ptc.wvs.server.publish.EpmDocumentPublishFilters/filterPublish"/>
<Property name="publish.service.filterepmdocumentpublishmethod" overridable="true"
targetFile="codebase/WEB-INF/conf/wvs.properties"
value="com.ptc.wvs.server.publish.EpmDocumentPublishFilters/filterEPMDocumentPublish"/>
<Property name="publish.cadfileextensionfilter" overridable="true"
targetFile="codebase/WEB-INF/conf/wvs.properties"
value="ASM PRT DRW"/>

1 reply

16-Pearl
July 25, 2025

Why not exclude objects by file extension?
https://www.ptc.com/en/support/article/CS39455
https://www.ptc.com/en/support/article/CS135047

<Property name="publish.service.filterpublishmethod" overridable="true"
targetFile="codebase/WEB-INF/conf/wvs.properties"
value="com.ptc.wvs.server.publish.EpmDocumentPublishFilters/filterPublish"/>
<Property name="publish.service.filterepmdocumentpublishmethod" overridable="true"
targetFile="codebase/WEB-INF/conf/wvs.properties"
value="com.ptc.wvs.server.publish.EpmDocumentPublishFilters/filterEPMDocumentPublish"/>
<Property name="publish.cadfileextensionfilter" overridable="true"
targetFile="codebase/WEB-INF/conf/wvs.properties"
value="ASM PRT DRW"/>