Settings for Cad. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document’s settings, otherwise the SDK globally when set on SdkSettings.
using Nutrient;The SDK creates this class through factory methods or other SDK objects.
Properties
CanvasBackgroundColor
public Color CanvasBackgroundColor { get; set; }The canvas background color.
Type: Color
EnableLineWeight
public bool EnableLineWeight { get; set; }This flags controls the support of line weight. It is the same command option as AutoCad “Lineweight”.
Type: bool
RenderZoom
public double RenderZoom { get; set; }The zoom level for rendering CAD documents.
Type: double
RenderingLayoutMode
public RenderingLayoutMode RenderingLayoutMode { get; set; }The rendering layout mode that determines how the canvas size and rendering origin are computed.
Type: RenderingLayoutMode
ThumbnailMode
public bool ThumbnailMode { get; set; }Indicates whether thumbnail mode is enabled for CAD rendering.
Type: bool
UnitMode
public UnitMode UnitMode { get; set; }The unit mode for measurement in CAD documents.
Type: UnitMode
Resource management
public void Dispose()CadSettings implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.