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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Publish Only Drawing files

ptc-4528441
1-Newbie

Publish Only Drawing files

Hello All,

One of our customer requirement is they want to publish only drawing upon checkin.

Publisher has to check if its .drw file then publish ,if its assembly (.asm or .prt )dont publish.

All .asm and .prt files they want to publish it manually.

Because they are having very big assembly.

Please suggest me how to configure the publisher??

Regards

Lingashetty

3 REPLIES 3
ngiacom
14-Alexandrite
(To:ptc-4528441)

Disable the publish at checkin and customize a POST_WORKSPACE_CHECKIN service to publish only drawings.

You can create a filter so that it only publishes the drawings. I had the same requirement when i was at a customer years ago. I don't have the rest of the configuration that calls this class, i believe it's just one of the wvs.properties that sets the method that you would use to validate the data.

I think these are the properties in wvs.properties, and you would specify the class and method name. Try it in the first one, it's been years since i did this.

publish.service.filterepmdocumentpublishmethod=

publish.service.filterpublishmethod=

package ext.wvs;

import wt.epm.EPMDocument;

import wt.epm.EPMDocumentType;

import com.ptc.windchill.cadx.common.CADDocTypes;

public class DrawingFilter

{

public static boolean isDrawing(EPMDocument epmdocument)

{

if (epmdocument != null && (epmdocument instanceof EPMDocument))

{

EPMDocumentType epmdocumenttype = epmdocument.getDocType();

System.out.println("filterEPMDocumentPublish isDrawing : " + epmdocumenttype.getStringValue());

return epmdocumenttype == EPMDocumentType.toEPMDocumentType("CADDRAWING");

}

else

return false;

}

}

ngiacom
14-Alexandrite
(To:sdrzewiczewski)

Yes. It is a better solution.

Top Tags