Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

CATIA V5 (R21) save multiple drawing sheets in one PDF

Status
Not open for further replies.

Oxy2

Aerospace
Mar 21, 2022
1
0
0
FR
Hi

I use one sheet to define titleblocks and templates ("formats_standard" in exemple below :
Exemple_zkzshn.jpg


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 ;)
 
Status
Not open for further replies.
Back
Top