Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi, I want to automatically generate pdf and dxf file from drw file while publishing it on Windchill. Is there any way to solve this because for now, I do it manually.
Solved! Go to Solution.
Yes, very common and fairly straight forward to do. Start here:
Snippet from my publish rules (that do this same thing) is here:
Yes, very common and fairly straight forward to do. Start here:
Snippet from my publish rules (that do this same thing) is here:
Is that enough? I can't check it right now if it works.
<?xml version="1.0" encoding="UTF-8"?>
<rules xmlns="http://www.ptc.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ptc.com PublishRulesSchema.xsd"
evaluate-rules-on-republish="true">
<authoring-application name="PROE">
<additional-files name="standard_files">
<file output-prefix="pdf" default="true" type="pdf" display-label="PDF"/>
<file output-prefix="dxf" default="true" type="dxf" display-label="DXF" />
</additional-files>
<condition name="ibawith value">
<and>
<attribute name="epmdoc_docType" value="Drawing"/>
<attribute name="epmdoc_lifeCycleState" value="In Work"/>
</and>
</condition>
</authoring-application>
</rules>