Macro for exporting CATdrawing to pdf

José Pereira

Macro for exporting CATdrawing to pdf

Hi guys,

As I make many 2D drawing it would be a big save of time to run a macro that saves the document and automatically export to the same folder the .pdf file.

The only language I have available is VBScript.

Thanks for your help.

Phil Harrison

RE: Macro for exporting CATdrawing to pdf
(in response to José Pereira)

Jose, even I can do that!

You will just use the lines:

  Set drawingDocument1 = CATIA.ActiveDocument

   drawingDocument1.ExportData mdoc, "pdf"

where mdoc is the path\filename of the output file

Phil Harrison

COE V6 Certified Professional

COE President 1996-2005

José Pereira

RE: Macro for exporting CATdrawing to pdf
(in response to Phil Harrison)

Hi Phil,

Thanks for your attention but I want to use the activedocument's name and the path to export the .pdf.

How can I do that?