CadOptions

CadOptions class

Contains options for rendering CAD drawings. For more information and code examples, see the Render CAD drawings and models as HTML, PDF, and image files and Specify rendering options for CAD files.

public class CadOptions

Properties

Name Description
BackgroundColor { get; set; } Image background color.
EnablePerformanceConversionMode { get; set; } Setting this flag to true enables a special performance-oriented conversion mode for all formats within CAD family — in this mode the conversion speed is much faster, but the quality of the resultant documents is signifiantly worser. By default is disabled (false) — the quality of the resultant documents is the best possible at the expense of performance.
Height { get; } The height of the output result (in pixels).
Layers { get; set; } The CAD drawing layers to render.
LayoutName { get; set; } The name of the specific layout to render. Layout name is case-sensitive.
Pc3File { get; set; } PC3 - plotter configuration file
RenderLayouts { get; set; } Flag if layouts from CAD document should be rendered.
ScaleFactor { get; } Value higher than 1 enlarges output result; value between 0 and 1 reduces output result.
Tiles { get; set; } The drawing regions to render.
Width { get; } The width of the output result (in pixels).

Methods

Name Description
static ForRenderingByHeight(int) Initializes an instance of the CadOptions class for rendering by height.
static ForRenderingByScaleFactor(float) Initializes an instance of the CadOptions class for rendering by scale factor.
static ForRenderingByWidth(int) Initializes an instance of the CadOptions class for rendering by width.
static ForRenderingByWidthAndHeight(int, int) Initializes an instance of the CadOptions class for rendering by width and height.

See Also