An object that is sued to print one or more Draft files.
Imports System.IO Imports System.Runtime.InteropServices Module Example <STAThread()> _ Sub Main() Dim objApplication As SolidEdgeFramework.Application = Nothing Dim objDraftPrintUtility As SolidEdgeDraft.DraftPrintUtility = Nothing Try OleMessageFilter.Register() objApplication = Marshal.GetActiveObject("SolidEdge.Application") objDraftPrintUtility = objApplication.GetDraftPrintUtility() Catch ex As Exception Console.WriteLine(ex.Message) Finally OleMessageFilter.Revoke() End Try End Sub End Module
using System.IO; using System.Runtime.InteropServices; internal static class Example { [STAThread()] public static void Main() { SolidEdgeFramework.Application objApplication = null; SolidEdgeDraft.DraftPrintUtility objDraftPrintUtility = null; try { OleMessageFilter.Register(); objApplication = (SolidEdgeFramework.Application)Marshal.GetActiveObject("SolidEdge.Application"); objDraftPrintUtility = objApplication.GetDraftPrintUtility(); } catch (Exception ex) { Console.WriteLine(ex.Message); } finally { OleMessageFilter.Revoke(); } } }