I get that it's passing arguments to the active process. Maybe someone could explain to me what this line of code is actually doing: so the file type should not be the issue. I double-checked, and I can open the drawing in edrawings. I deleted the /t from the code and now it's telling me that it's an unsupported file type. Dim Process As New Process() 'Dim pathToExecutable As String = "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe" 'Dim sReport = "C:\Temp\FB00028D01.pdf" Dim pathToExecutable As String = "C:\Program Files\Common Files\eDrawings2009\EModelViewer.exe" Dim sReport = "C:\Documents and Settings\cseay\Desktop\FB00028D01.SLDDRW" Dim TheDefaultPrinter = "PDFCreator" = False = pathToExecutable = "/t """ + sReport + """ """ + TheDefaultPrinter + """" = "Print" = True = ProcessWindowStyle.Hidden Process.Start() 'Process.Close() Process.WaitForExit(10000) Process.CloseMainWindow() Process.Dispose() Process = Nothing T C:\Documents and Settings\cseay\Desktop\FB0 0028D01.SL DDRW PDFCreator was not found. When I run this code, it opens up eDrawings and then tells me this: and I commented out the original lines that worked with pdf's I've managed to find examples for doing this with printing pdf's and office documents, and I've tried to tweak these around to work with edrawings, but it won't work for me. Specify the location for saving the eDrawings files.ĭisplays information about the eDrawings for Autodesk Inventor applications, including the version.How can I use the Process.Start method in VB.NET to open a file in eDrawings and Print to a specified printer?. You can then view the eDrawings file using the eDrawings Viewer.Ĭonverts multiple CAD files to eDrawings files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |