Oxy2
Aerospace
- Mar 21, 2022
- 1
Hi
I use one sheet to define titleblocks and templates ("formats_standard" in exemple below :
When i export my drawing into PDF (using "Save multisheet document in a single vectorial file" in tools options) i must use a tool to cut this sheet
So I'd like use a VBA macro (if it's possible) to exclude this sheet when I export to pdf.
My code base
Missing sheet management...
Thank you for the help
I use one sheet to define titleblocks and templates ("formats_standard" in exemple below :

When i export my drawing into PDF (using "Save multisheet document in a single vectorial file" in tools options) i must use a tool to cut this sheet
So I'd like use a VBA macro (if it's possible) to exclude this sheet when I export to pdf.
My code base
Code:
Sub Pdf()
Set drawingDocument1 = CATIA.ActiveDocument
Dim sName As String
sName = Left(CATIA.ActiveDocument.Name, InStr(1, CATIA.ActiveDocument.Name, ".CATDrawing") - 1)
Dim sPath As String
sPath = CATIA.ActiveDocument.Path & "\" & sName & ".pdf"
drawingDocument1.ExportData sPath, "pdf"
End Sub
Missing sheet management...
Thank you for the help