
===============================================================================

create folder "repsave" in folder: <WT_HOME>\codebase\wtcore\jsp

<WT_HOME>\codebase\wtcore\jsp\repsave

then copy REPSAVEAS.jsp to that "repsave" folder:

<WT_HOME>\codebase\wtcore\jsp\repsave\REPSAVEAS.jsp

===============================================================================

Add content to 

<WT_HOME>\src\com\ptc\windchill\enterprise\wvs\WVSactionsResource.rbInfo

append with:

repsave.REPSAVEAS.title.value=Download PDF or PLT
repsave.REPSAVEAS.icon.value=download.gif
repsave.REPSAVEAS.tooltip.value=Download PDF or PLT
repsave.REPSAVEAS.description.value=Download PDF or PLT
repsave.REPSAVEAS.moreurlinfo.value=height=400,width=700

Then from windchill shell: <WT_HOME>

ResourceBuild com.ptc.windchill.enterprise.wvs.WVSactionsResource

===============================================================================

Copy Content below & paste to: 

<WT_HOME>\codebase\config\actions\custom-actionModels.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE actionmodels SYSTEM "actionmodels.dtd">
<actionmodels>
   <model name="epmdocuments details page actions" menufor="wt.epm.EPMDocument">
      <action name="view"                     type="note"/>
      <action name="view"                     type="object"/>
      <action name="OPENINPROE"               type="pdmObject"/>
      <action name="OPENINCADTOOL"            type="pdmObject"/>
      <action name="OPENINARBORTEXT"          type="epmdocument"/>
      <action name="openProductView"          type="wvs"/>
      <action name="separator"                type="separator"/> 
      <action name="listRepresentations"      type="wvs"/>  
      <action name="separator"                type="separator"/>
      <action name="PLACEHOLDER"              type="pdmObject"/>     
      <action name="REPLACEMISSDEP"           type="pdmObject"/>     
      <action name="separator"                type="separator"/>         
      <action name="WFDOWNLOAD"               type="epmdocument"/>
      <action name="SBAddToPrj"               type="sandbox"/>     
      <action name="addToBaselineSingle"      type="baseline"/>      
      <action name="separator"                type="separator"/>           
      <action name="WFCHECKOUT"               type="epmdocument"/>
      <action name="BOMNOTECHECKOUT"          type="pdmObject"/>      
      <action name="WFCHECKIN"                type="pdmObject"/>
      <action name="BOMNOTECHECKIN"           type="pdmObject"/>      
      <action name="BOMNOTECANCELCHECKOUT"    type="pdmObject"/>
      <action name="WFUPLOAD"                 type="pdmObject"/>
      <action name="WFCANCELCHECKOUT"         type="pdmObject"/>
      <action name="edit"                     type="note"/>
      <action name="MULTIEDITATTR"            type="pdmObject"/>
      <action name="EDITATTACHMENTS"          type="pdmObject"/>
      <action name="REVISEITEMS"              type="pdmObject"/>
      <action name="enableTemplate"           type="note"/>
      <action name="disableTemplate"          type="note"/>
      <action name="separator"                type="separator"/>
      <action name="WFSAVEAS"                 type="pdmObject"/>
      <action name="REPSAVEAS"                type="repsave"/>   <!-- RepSave -->
      <action name="ManageSecurity"           type="accessPermission"/>
      <action name="CONTAINERMOVE"            type="pdmObject"/>
      <action name="MULTIRENAME"              type="pdmObject"/>
      <action name="MULTI_OBJ_DELETE"         type="pdmObject"/>
      <action name="MULTI_OBJ_DELETE_DETAILS" type="pdmObject"/>
      <action name="export"                   type="object"/>
      <action name="WSEXPORT"                 type="pdmObject"/>
      <action name="AUTOASSOCIATE"            type="pdmObject"/>
      <action name="Associate"                type="pdmObject"/>
      <action name="DISASSOCIATE"             type="pdmObject"/>
      <action name="separator"                type="separator"/>      
      <action name="pdmCheckInApply"          type="object"/>
      <action name="SBSendToPdm"              type="sandbox"/> 
      <action name="sandboxUndoCheckoutDetails"       type="object"/>                      
      <action name="sandboxUndoCheckout"      type="object"/>
      <action name="sandboxCheckoutShare"     type="object"/>
      <action name="removeShare"              type="object"/>
      <action name="separator"                type="separator"/>
      <action name="create"                   type="problemReport"/>
      <action name="create"                   type="changeRequest"/>
      <action name="create"                   type="variance"/>
      <action name="create"                   type="changeNotice"/>
      <action name="SETSTATE"                 type="pdmObject"/>
      <action name="CREATEPROMOTIONNOTICE"    type="pdmObject"/>
      <action name="separator"                type="separator"/>
      <action name="route"                    type="workflow"/>
      <action name="createSubscription"       type="subscription"/>
      <action name="separator"                type="separator"/>
      <action name="copy"                     type="object"/>
      <action name="separator"                type="separator"/>
      <action name="wtObjCompare"             type="ocmp"/>
      <action name="separator"                type="separator"/>
      <action name="EDA_COMPARE"              type="EDAcompare"/>
      <action name="ecadValidate"             type="ecadcompare"/>
      <action name="ecadOpenConfiguration"    type="ecadcompare"/>
      <action name="separator"                type="separator"/>
      <action name="addToPackageSingle"       type="wpbaseline"/>
      <action name="bookmarkIt"               type="bookmark"/>  
      <action name="reassignLC"               type="lifecycle"/>
      <action name="resetTeam"                type="team"/>	<!-- Reset Team -->
   </model>
</actionmodels>

Or just insert <model name="~> to </model> if you already have content in 
custom-actionModels.xml

Or just insert line below:

      <action name="REPSAVEAS"             type="repsave"/>   <!-- RepSave -->

if you already use:

<model name="epmdocuments details page actions" menufor="wt.epm.EPMDocument">

I placed below "Save As",
      <action name="WFSAVEAS"                 type="pdmObject"/>

But it can be placed where yo find appropriate.

===============================================================================

Copy Content below & paste to: 

<WT_HOME>\codebase\config\actions\custom-actions.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE listofactions SYSTEM "actions.dtd">
<listofactions>
	<objecttype name="repsave" class="wt.epm.EPMDocument" resourceBundle="com.ptc.windchill.enterprise.wvs.WVSactionsResource">
		<action name="REPSAVEAS">
			<description>Download PDF or PLT</description>
			<command windowType="popup"  url="wtcore/jsp/repsave/REPSAVEAS.jsp"/>
		</action>
	</objecttype>
</listofactions>

or just insert below content if you have existing content in your custom-actions.xml

	<objecttype name="repsave" class="wt.epm.EPMDocument" resourceBundle="com.ptc.windchill.enterprise.wvs.WVSactionsResource">
		<action name="REPSAVEAS">
			<description>Download PDF or PLT</description>
			<command windowType="popup"  url="wtcore/jsp/repsave/REPSAVEAS.jsp"/>
		</action>
	</objecttype>

===============================================================================

copy java & classes:

dlRep_main.java, dlRep_main.class, dlRep.java, dlRep.class

to:

<WT_HOME>\codebase\ext

dlRep is for actions jsp
dlRep_main is for command line

command line from windchill shell is:

java ext.dlRep_main <download folder> <number search string> <content type>

java ext.dlRep_main C:\TEMP % pdf

% to run all epmdoc drw's

===============================================================================


