//-------------------------------------------------------------------------------------------------------------------------------------------
CADViewX.ToolBarVisible
Show/Hide toolbox
Conditionals: boolean True, False
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.LayoutsBarVisible
Switch to Show/Hide Toolbox with Layouts combobox
Conditionals: boolean True, False
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.Color
Image parent control color
Conditionals: integer 0..16777215 of RGB pallete
Black = 0; 
...
Red = 255; (0xFF)
...
Green = 65280; (0xFF00)
...
Blue = 16711680; (0xFF0000)
...
White = 16777215; (0xFFFFFF)
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.BackGroundColor
Image background color
Conditionals: integer 0..16777215 of RGB pallete
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.DefaultColor
Default Color for elements with Default (white) AutoCAD DXF/DWG color.
Description
DefaultColor sets the color for elements which have white color in AutoCAD DXF/DWG - this color is default for all elements and it is white in AutoCAD model mode and black in AutoCAD layouts. It is black when printing from AutoCAD. 
Default value for DefaultColor property is clBlack but you can change it to another value - for example to clWhite and if BackgroundColor property is setted to clBlack when CADViewX will draw DXF/DWG as AutoCAD setted model mode.
Conditionals: integer 0..16777215 of RGB pallete
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.IsWithoutBorder
Set IsWithoutBorder to True to draw the drawing without added empty space (borders).
Description
This property must be set before calling of LoadFile method. If IsWithoutBorder is True then ImageWidth and ImageHeight are counted basing on difference between max and min dimensions of the drawing. If IsWithoutBorder is False then ImageWidth and ImageHeight is increased on 1/8 of its initial values.
Default value is False.
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.DrawMode
Indicates the current color mode.
Description
Specifies the appearance of colors.
0 - Normal (Drawing uses default color and background image color);
1 - Black (Drawing uses default color and black background image color);
2 - Gray (Drawing uses gray default color and background image color).

//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.LoadFile(FileName As String)
Load image from file
Conditionals: full pathname of file
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.LayoutsCount
Count layouts of CAD file, readonly
Conditionals: integer
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.LayoutIndex
Load  drawing layout by integer number
Conditionals: integer 0 ..  LayoutsCount - 1
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.DXFImage.Converter.Layouts[Index As Integer] As ILayout
Interface of Layouts object
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.DXFImage.Converter.Layouts[Index As Integer].Name As String
Name of layout by index
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.ScaleImage(Abs As Boolean, Coef As Double, X As Long, Y As Long) As Long
Call ScaleImage to change the scale of picture. 
Abs:

	True  sizes of the image are determined basing on the real sizes of the drawing multiplied on the Coef
 parameter

	False  The Coef parameter is the scaling factor multiplier. I.e. if Coef > 1, then scaling factor increase; if Coef < 1, then scaling factor decrease.

The X and Y parameters is the base point of scaling transformation.
//-------------------------------------------------------------------------------------------------------------------------------------------

Contains the width of the HPGL or HPGL/2 drawing in 0.01 millimeter units.

CADViewX.MMWidth As Long;

Description

MMWidth is used for a more accurate reading of the horizontal size of the graphic. The Width property is difference between max and min dimensions of the drawing but the MMWidth property usually is the result of a special HPGL command. 
//-------------------------------------------------------------------------------------------------------------------------------------------

Contains the height of the HPGL or HPGL/2 drawing in 0.01 millimeter units.

CADViewX.MMHeight As Long

Description

MMHeight is used for a more accurate reading of the horizontal size of the graphic. The Height property is difference between max and min dimensions of the drawing but the MMHeight property usually is the result of a special HPGL command. 
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.Millimetres As Boolean 

Description
If Millimeters is True then default drawing units for CAD file are in millimeters else in inches.
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.UseSHXFonts As Boolean
Description
If UseSHXFonts is True drawing units for CAD file by using AutoCAD SHX fonts
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.SHXSearchPaths As String
Description
SHXSearchPaths - include paths for *.SHX font searching
Example:
SHXSearchPaths = "E:\Program Files\AutoCAD 2002\support;E:\Program Files\AutoCAD 2002\fonts;E:\Program Files\AutoCAD 2005\fonts;"
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.DefaultSHXPath As String
Description
DefaultSHXPath - include path to *.SHX font
Example:
DefaultSHXPath = "E:\Program Files\AutoCAD 2005\fonts"
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.DefaultSHXFont As String
Description
DefaultSHXFont - include file name *.SHX font
Example:
DefaultSHXFont = "txt.shx"
//-------------------------------------------------------------------------------------------------------------------------------------------

Export CAD drawing to Windows Enhanced metafile 
CADViewX.ExportToMetafile(FileName As String, AWidth As Long, AHeight As Long);
Description
Export all supported CAD drawings (DWG/DXF/HPGL) to Windows Enhanced metafile. ExportToMetafile sets the size of the metafile from AWidth (width of the metafile) and AHeight (height of the metafile) parameters.
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.Printer[Index As Long] As String
Description
Path to printer by index
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.PrinterCount As Long
Description
Count of printers
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.PrinterIndex As Long
Description
Count of printers
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.PrintImage
Description
Printing default image
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.PaperOrientation As Long
Description
Image orientation on a paper for printing
Conditionals:
0 - Portrait;
1 - Lendscape.
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.DoToolButtonClick (tbPrintPreview)
Description
Printing default image with preview tool form
//-------------------------------------------------------------------------------------------------------------------------------------------

Save image to file
CADViewX.SaveToFile(FileName As String)
Description
Save file to one of formats: *.bmp, *.jpg, *.gif, *.wmf, *.emf, *.dxf
To get more optionality use SaveToFileEx
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.SaveToFileEx(FileName As String, Confirm As Boolean, ShowSizeDialog As Boolean)
Description
Save image to file with Confirm to override (if Confirm = True), and showing Size Dialog (if ShowSizeDialog = True)
//-------------------------------------------------------------------------------------------------------------------------------------------

CADViewX.AxBorderStyle
Description
Specify boder of CADViewX Control.
Conditionals:
0 - afbNone
1 - afbSingle
2 - afbSunken
3 - afbRaised
//-------------------------------------------------------------------------------------------------------------------------------------------
