CadSettings

public final class CadSettings

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.

Functions

Link copied to clipboard
The canvas background color.
Link copied to clipboard
public final CadDrawingUnits getDefaultUnits()
The units of a drawing that states none, a fallback.
Link copied to clipboard
public final boolean getEnableLineWeight()
This flags controls the support of line weight.
Link copied to clipboard
public final CadDrawingUnits getForcedUnits()
The units every drawing is read in, whatever units it states: an override for drawings that state the wrong units.
Link copied to clipboard
public final CadRenderedSpace getRenderedSpace()
Which space of a drawing is rendered: model space, paper space, or the one with more visible content.
Link copied to clipboard
public final RenderingLayoutMode getRenderingLayoutMode()
The rendering layout mode that determines how the canvas size and rendering origin are computed.
Link copied to clipboard
public final double getRenderZoom()
The zoom level for rendering CAD documents.
Link copied to clipboard
public final Array<String> getShxFontFolders()
Folders searched for the SHX fonts that text styles use, before the AutoCAD and DWG TrueView font folders of the machine.
Link copied to clipboard
public final boolean getThumbnailMode()
Indicates whether thumbnail mode is enabled for CAD rendering.
Link copied to clipboard
public final UnitMode getUnitMode()
Not used: the renderer reads each drawing in its own units.
Link copied to clipboard
public final void setCanvasBackgroundColor(Color value)
The canvas background color.
Link copied to clipboard
public final void setDefaultUnits(CadDrawingUnits value)
The units of a drawing that states none, a fallback.
Link copied to clipboard
public final void setEnableLineWeight(boolean value)
This flags controls the support of line weight.
Link copied to clipboard
public final void setForcedUnits(CadDrawingUnits value)
The units every drawing is read in, whatever units it states: an override for drawings that state the wrong units.
Link copied to clipboard
public final void setRenderedSpace(CadRenderedSpace value)
Which space of a drawing is rendered: model space, paper space, or the one with more visible content.
Link copied to clipboard
public final void setRenderingLayoutMode(RenderingLayoutMode value)
The rendering layout mode that determines how the canvas size and rendering origin are computed.
Link copied to clipboard
public final void setRenderZoom(double value)
The zoom level for rendering CAD documents.
Link copied to clipboard
public final void setShxFontFolders(Array<String> value)
Folders searched for the SHX fonts that text styles use, before the AutoCAD and DWG TrueView font folders of the machine.
Link copied to clipboard
public final void setThumbnailMode(boolean value)
Indicates whether thumbnail mode is enabled for CAD rendering.
Link copied to clipboard
public final void setUnitMode(UnitMode value)
Not used: the renderer reads each drawing in its own units.