How to Use?

System Requirements:

OS:Compatible with XP, Vista, Win7, Win8, Win10
RAM: 1024MB or greater, executable program takes 27Mb, loaded with a drawing file will take more RAM depends on the size of drawing file.
HD: 40MB free hard drive spaces to install

DWG to PDF Control Component

DWG2PDF-X, a control component allows you to convert dwg to pdf, dxf to pdf, dwf to pdf directly, no AutoCAD required.

Steps to use this control

Step 1

Please download the 32bit/64bit version program

DWG2PDF-X(32 bit/64 bit)

Step 2

Please unzip the program to the destination folder


Step 3 Register the control on your system

Please go to the program folder and double click the file reg.bat to register the DWGTOPDFX.dll or DWGTOPDFX64.dll on your system.

If you are running Win7/Win8/Win10 and the reg.bat file won't work, please click start button>>All programs>>Accessories, then find the "Command Prompt " and right click it to choose "Run as Administrator" option to open the command prompt window, then try to use the command regsvr32 to register the DWGTOPDFX.dll or DWGTOPDFX64.dll.

Step 4 Give it a try

Prior try out the Control Component program with your own application, please try to give it a very first test with the example code enclosed within the free trial package, please make sure it will work as expected and then try out with your own program.

Help For Developers

Width

specifing the output PDF file width , unit is millimeter

Property Let Width As Double

No parameters

Height

specifing the output PDF file Height , unit is millimeter.

Property Let Height As Double

No parameters

ColorMode

Set the background color  of the PDF file.

Property Let ColorMode As Long

No parameters

Set Colormode Value as AutoCAD colorindex.

InputFile

specifing the input drawing file that want to be conveted.

Property Let InputFile As String

No parameters

DPI

Set PDF DPI (dots per inch ) value, the default value is 100.

Property Let DPI As Long

No parameters

Example

VB script example:

Dim obj
Set obj= CreateObject("DWGTOPDFX.ConvertPDF")

obj.Width = 250 'uint is mm
obj.Height = 150 'uint is mm
obj.ColorMode = 1 '1--white&black 0--256color mode

Obj.DPI = 300

Obj.OutWithTTF = 1 '1--Convert ttf to searchable 0--Convert ttf to shape

obj.AddFontPath "D:\Program Files\AutoCAD 2005\Fonts"
obj.InputFile = "E:\tempaa\44650-39b.dwg"
obj.PsPath = "C:\Windows\system32\PS\lib;C:\Windows\system32\PS\fonts"
obj.Convert "E:\tempaa\44650-39b1.pdf"

PenWidth

specifing the pen width of the color, unit is millimetre.

Property Get/Let PenWidth(nPenWidth As Long) As Double
Example

VB script example:

Dim obj
Set obj= CreateObject("DWGTOPDFX.ConvertPDF")

obj.Width = 250 'uint is mm
obj.Height = 150 'uint is mm
obj.ColorMode = 1 '1--white&black 0--256color mode

obj.AddFontPath "D:\Program Files\AutoCAD 2005\Fonts"
obj.InputFile = "E:\tempaa\44650-39b.dwg"

obj.PenWidth(1) = .1 'set line width, unit in mm
obj.PenWidth(2) = .1 'set line width, unit in mm
obj.PenWidth(3) = .1 'set line width, unit in mm
obj.PenWidth(4) = .1 'set line width, unit in mm
obj.PenWidth(5) = .1 'set line width, unit in mm

obj.PsPath = "C:\Windows\system32\PS\lib;C:\Windows\system32\PS\fonts"
obj.Convert "E:\tempaa\44650-39b1.pdf"

PsPath

specified the ps path.

Property Let PsPath As String

No parameters

Must setting PsPath before using convert method.

AddFontPath

Add a directory to the folder list in which DWG2PDFX searches for shx font file.

Sub AddFontPath(szFontPath As String)
Example

VB script example:

Dim obj
Set obj= CreateObject("DWGTOPDFX.ConvertPDF")

obj.Width = 250 'uint is mm
obj.Height = 150 'uint is mm
obj.ColorMode = 1 '1--white&black 0--256color mode

obj.AddFontPath "D:\Program Files\AutoCAD 2005\Fonts"
obj.InputFile = "E:\tempaa\44650-39b.dwg"

obj.PenWidth(1) = .1 'set line width, unit in mm
obj.PenWidth(2) = .1 'set line width, unit in mm
obj.PenWidth(3) = .1 'set line width, unit in mm
obj.PenWidth(4) = .1 'set line width, unit in mm
obj.PenWidth(5) = .1 'set line width, unit in mm

obj.PsPath = "C:\Windows\system32\PS\lib;C:\Windows\system32\PS\fonts"
obj.Convert "E:\tempaa\44650-39b1.pdf"

ViewCount

Get the drawing's layout count.

Property Get ViewCount As Long

No parameters

Use Viewcount after the method InputFile.

Example

VB script example:

Dim objImage
Set objImage = CreateObject("DWGTOPDFX.ConvertPDF")

objImage.Width = 1024
objImage.Height = 768
'objImage.Background = 0
objImage.InputFile = "d:\aa.dwg" '"8th floor furniture.dwg"

objImage.Convert "e:\testa.pdf"

For I=1 to objImage.ViewCount
strViewName = objImage.ViewName(I)

strOutput = strViewName&".pdf" 'output file name, include path
objImage.ConvertView strOutput, strViewName
Next
If Err.Number < 0 Then
MsgBox Err.Description
End If

ViewName

Get layout name by layout index.

Property Get ViewName(nIndex As Long) As String

Use Viewcount after the method InputFile.

Convert

Convert the drawing merge all layout into a single PDF file.

Sub Convert(szoutFile As String)
ConvertView

Convert specified layout in the drawing to PDF file.

Sub ConvertView(szOutputFileName As String, view)

Use convertView after the method InputFile.

FAQ:

 
     VBS runtime error, how to do?
     dll registration failed, how to fix it?
     Will this software work with 64 bit computer?

 
     How to convert ttf to searchable text in the pdf?
     Do you offer customized service?

 
     How to update the product?
     How to download the old program?

 
     How do I complete activation or registration?
     What shall I do, if the registration code is invalid?
     How do I retrieve the registration code of the latest version for reinstall?
     How do I get a new registration code with my upgrade?
     What to do if I fail to download/install the product on PC?
     How to transfer my license to a new PC?
     How to uninstall your program?
     Do I need to buy an additional seat to use this both at home and at work?

 
     What is your policy on refunds?
     What is your policy on Licenses?
     What is your Upgrade Policy?
     What is a "1-Year Free update"?
     If I purchased a single-user license, can I use the program on another computer?
     Can I get technical support for my Free Trial?
     What does download protection service mean?
     Can I try your products before I buy them?
     Is my purchase on your Website secure?
     Where can I find a safe discount program for your products?
     After I submit a ticket, how long before Support replies to me?
     Can I get your products on CD?

 
     How do I get an invoice or receipt?
     How to change license email if there is typo when I place the order?
     Can I cancel my order after placing it?
     If I buy the wrong product by mistake, can I exchange it?
     How will you tell me if my order was processed?
     Why I haven't received the refund yet?
     Do you charge VAT on my purchase?
     How do I get a refund of taxes paid?
     How do I pay for my purchase with my credit card or bank card?
     Why was the website price and what I paid different?
     How do I fix a "double charge"?
     What ways can I pay for my purchase?
     How to get a refund of Download Protection Service separately?

Reference:

System Requirements:

OS:Compatible with XP, Vista, Win7, Win8, Win10
RAM: 1024MB or greater, executable program takes 27Mb, loaded with a drawing file will take more RAM depends on the size of drawing file.
HD: 40MB free hard drive spaces to install

Technical Support:

Free technical support is available to all customers, any question please contact: info@autodwg.com.

Update:

You’ll enjoy one year free update service since you buy the software. After expiry, you can continue using the software but no more updates will be available unless you purchase.

You may also be interested in these items:

PDF to DWG Converter

Help you convert PDF file into DWG, DXF file. high quality, ease of use.

Learn More>>

DWGSee DWG Viewer

A lite and fast dwg viewer, browse, view, redline, print DWG, DXF, DWF files.

Learn More>>

DWG to PDF Converter

Convert DWG and DXF files to PDF files directly without need of AutoCAD.

>Learn More>>