Skip to main content
1-Visitor
January 24, 2012
Solved

generate PDF from drawings and store in Windchill

  • January 24, 2012
  • 2 replies
  • 28503 views

Hi,

I have a range of drawings that I have stored on Windchill. How do I genereate PDF files of these drawings? And is there a way of storing them/ exporting them to an external location outside of Windchill?

Is this something that is done within Creo or Windchill?

Thnaks.

Best answer by

William,

A CAD Worker can be configured which can convert your drawings in PDF format. Later a Post Publish deligate can be written to make a wt.document of this PDF file. This makes PDF management most efficient in Windchill.

Apart from Creo and Windchill you will need a ProductView (CreoView) Adaptor - which talks with creo on one end and with Windchill on the other. Check ProductView adaptor installation and configuration guide for more deatils on installing the CAD Worker.

Cheers,

Vaibhav

2 replies

16-Pearl
January 26, 2012

Hi,

We have a customization that does what you want it to do.

Contat me if you are interested.

Regards

Bryan

16-Pearl
March 16, 2012

Hi,

you can use the publisher to create pdf's of your drawings by selecting the pdf option in the visualtion area.

to export them to a drive you will need a customization.

Answer
March 19, 2012

William,

A CAD Worker can be configured which can convert your drawings in PDF format. Later a Post Publish deligate can be written to make a wt.document of this PDF file. This makes PDF management most efficient in Windchill.

Apart from Creo and Windchill you will need a ProductView (CreoView) Adaptor - which talks with creo on one end and with Windchill on the other. Check ProductView adaptor installation and configuration guide for more deatils on installing the CAD Worker.

Cheers,

Vaibhav

1-Visitor
January 11, 2017

I have been trying to do something similar to this.  Our business process depends on the output of STEP and parasolid files from our model files.  I am trying to make them more accessible by putting them into their own WTDocument during the publish phase.  I have written the following publishing rule xml.  The file passes validation and loads into the WC system.  On publish it is creating the Step and Parasolid and attaching them as representations.  Id does not seem to be performing the post-publishing operations and creating the WTDocument.  I am not seeing any error/log information of failure.  Could someone please look at the XML and see if I am missing a trigger statement somewhere?  Thank you.

<?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="SOLIDWORKS">

   <additional-files name="standard_files">

          <!-- only default='true' files will be generated at this time -->

          <file display-label="STEP" type="step" default="true" output-prefix="step" />

          <file display-label="PARASOLID" type="Parasolid" default="true" output-prefix="Parasolid" />

     </additional-files>

      <param-set name="Share with WTDocument">

        <post-publish name="delegate">com.ptc.wvs.server.publish.AdditionalFilesPostPublishDelegate</post-publish>

        <post-publish name="name">{ADDITIONAL_FILE_PRIMARY_EXTENSION}_FOR_{EPM_NAME}</post-publish>

        <post-publish name="folder">/Design</post-publish>

        <post-publish name="type">com.mtc.MCADAdditionalFiles</post-publish>

        <post-publish name="number">{EPM_NUMBER}-{ADDITIONAL_FILE_PRIMARY_EXTENSION}</post-publish>

      </param-set>

      <publish on="checkin" display-label="Additional Files" additional-files="standard_files" param-set="Share with WTDocument"/>

      <publish on="create-representation" display-label="Additional Files" additional-files="standard_files" param-set="Share with WTDocument"/>

   <publish on="schedule" display-label="Additional Files" additional-files="standard_files" param-set="Share with WTDocument"/>

  </authoring-application>

</rules>

UPDATE:

     I added a manual option to run the post publish and I am seeing an error that says

Post Publishing Succeeded with Warnings
Warning: No additional files match the regular expression in the post publish parameter set
23-Emerald IV
January 11, 2017

You might try removing the "param-set" piece and just verify that the additional files are generated correctly (and attached to the primary representation.)  Once you're sure that's working you can fix the post-publish delegate.

1-Visitor
January 11, 2017

sorry should have been more clear.  I started from that direction and the files are being created.  Even with the above code I can go to the view you depict in your image and I see the relevant files.  Then I click Post Publish and get the error.