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

Publish Only Drawing files

Highlighted
Level 1

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

Re: Publish Only Drawing files

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

Re: Publish Only Drawing files

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;

}

}

Re: Publish Only Drawing files

Yes. It is a better solution.