CadInputOptions Class

Represents a set of Cad input options used for document conversion.

Definition

Namespace: GleamTech.DocumentUltimate
Assembly: GleamTech.DocumentUltimate (in GleamTech.DocumentUltimate.dll) Version: 7.1.5
C#
public class CadInputOptions : InputOptions
Inheritance
Object    InputOptions    CadInputOptions

Example

Render as black background but keep foreground colors:

C#
//Black background but foreground colors will be kept same as in the drawing.
//Foreground colors in the drawing are corrected automatically when required 
//so that they are always visible on the set background color.
var inputOptions = new CadInputOptions
{
    RenderBackgroundColor = Color.Black
};

DocumentConverter.Convert(@"c:\SomeFolder\InputFile.dwg", inputOptions, DocumentFormat.Pdf);

Render as black and white:

C#
//Black and white (all foreground colors will be fixed to White because the property is explictly set)
var inputOptions = new CadInputOptions
{
    RenderBackgroundColor = Color.Black,
    RenderForegroundColor = Color.White
};

DocumentConverter.Convert(@"c:\SomeFolder\InputFile.dwg", inputOptions, DocumentFormat.Pdf);

Render as blueprint:

C#
//Blueprint
var inputOptions = new CadInputOptions
{
    RenderBackgroundColor = Color.FromArgb(58, 110, 180),
    RenderForegroundColor = Color.White
};

DocumentConverter.Convert(@"c:\SomeFolder\InputFile.dwg", inputOptions, DocumentFormat.Pdf);

Constructors

CadInputOptionsInitializes a new instance of the CadInputOptions class.
CadInputOptions(DocumentFormat)Initializes a new instance of the CadInputOptions class with a document format.

Properties

FormatGets or sets the format to convert from.
(Inherited from InputOptions)
PasswordGets or sets the password which is used for loading a protected document.
(Inherited from InputOptions)
RenderBackgroundColor Gets or sets the background color of the drawing when it's rendered. The default is white. Default foreground color in the drawing is corrected automatically when required so that it's always visible on the set background color.
RenderForegroundColor Gets or sets the foreground color of the drawing when it's rendered. The default is null, which means foreground colors will be kept same as in the drawing. When set, all foreground colors will be fixed to this same color. For example, you can have a black and white or a blueprint output.

See Also