' Value of %APPDATA% variable should be received using Environment.GetFolderPath ' Use Universal Document Converter API to change settings of converterd document ' Load profile located in folder "%APPDATA%\UDC Profiles". ItfPrinter = objUDC.Printers(" Universal Document Converter") Private Sub PrintACADToPDF(ByVal strFilePath As String)ĭim nBACKGROUNDPLOT, nFILEDIA, nCMDDIA As Long Dim objUDC As UDC.IUDCĭim objACADApp As Object Dim itfDrawing As Object Dim itfLayout As Object Dim itfActiveSpace As Object Dim AppDataPath As String Dim ProfilePath As String ' Universal Document Converter Type Library ' 5) In Add Reference window go to COM tab and double click into ' 4) In Visual Basic main menu press Project->Add Reference. ![]() ![]() ' 3) Open your project in Microsoft Visual Basic.NET ' 2) Universal Document Converter 5.2 or above should be installed, too ' 1) Autodesk AutoCAD 2000 or above should be installed and activated on your PC VB.NET AutoCAD to PDF converter code example: '.
0 Comments
Leave a Reply. |