CadOptions class
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.
The CadOptions type exposes the following members:
Properties
| Property | Description |
|---|---|
| scale_factor | Value higher than 1 enlarges output result; value between 0 and 1 reduces output result. |
| width | The width of the output result (in pixels). |
| height | The height of the output result (in pixels). |
| background_color | Image background color. |
| tiles | The drawing regions to render. |
| render_layouts | Flag if layouts from CAD document should be rendered. |
| layout_name | The name of the specific layout to render. Layout name is case-sensitive. |
| layers | The CAD drawing layers to render. |
| pc_3_file | PC3 - plotter configuration file |
| enable_performance_conversion_mode | 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. |
Methods
| Method | Description |
|---|---|
| for_rendering_by_scale_factor | Initializes an instance of the CadOptions class for rendering by scale factor. |
| for_rendering_by_width | Initializes an instance of the CadOptions class for rendering by width. |
| for_rendering_by_height | Initializes an instance of the CadOptions class for rendering by height. |
| for_rendering_by_width_and_height | Initializes an instance of the CadOptions class for rendering by width and height. |
See Also
- module
groupdocs.viewer.options - class
CadOptions