Reply

batch .NET program to convert Solid Edge files to PDF

[ Edited ]

 

In Solid Edge ST2 we can save directly a PDF file manually with "Save As". To do that Solid Edge ST2 uses a special printer called: "Solid Edge Velocity PS Printer 2.0".  I need a batch program: could you suggest me the .NET code to convert in PDF the current drawing?

 

Posted by: francesco marcheluzzo
Post date: 2/10/2010 3:51:11 AM

3 REPLIES

RE: batch .NET program to convert Solid Edge files to PDF

[ Edited ]

Hi francesco,

 

saving the current draft file as pdf is quite simple:

 

...

Dim dftDoc As SolidEdgeDraft.DraftDocument = Nothing

dftDoc = CType(seApp.ActiveDocument, SolidEdgeDraft.DraftDocument)

dftDoc.SaveAs(pdfPathName)

...

 

 

Posted by: Wolfgang Kunert
Post date: 2/10/2010 6:38:11 AM

RE: batch .NET program to convert Solid Edge files to PDF

[ Edited ]

 

Perfect, thanks a lot!

 

Posted by: francesco marcheluzzo
Post date: 2/11/2010 10:17:09 PM

Re: RE: batch .NET program to convert Solid Edge files to PDF

[ Edited ]

SolidEdgeDev wrote:

Hi Francesco,

 

saving the current draft file as pdf is quite simple:

 

...

Dim dftDoc As SolidEdgeDraft.DraftDocument = Nothing

dftDoc = CType(seApp.ActiveDocument, SolidEdgeDraft.DraftDocument)

dftDoc.SaveAs (pdfpathname)

...

 

 

Posted by: Wolfgang Kunert
Post date: 2/10/2010 6:38:11 AM


Thank you,Wolfgang

The code for batch conversion of Solid Edge files to PDF is of great help.