CadSettings
Merged view of CadSettings, combining immutable defaults, SDK overrides, and document overrides. Property writes automatically target the appropriate level (document if available, otherwise SDK).
from nutrient import CadSettingsMethods
set_canvas_background_color
def set_canvas_background_color(self, value: Color) -> NoneSets the CanvasBackgroundColor property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | Color | The value to set for the CanvasBackgroundColor property. |
set_enable_line_weight
def set_enable_line_weight(self, value: bool) -> NoneSets the EnableLineWeight property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the EnableLineWeight property. |
set_rendering_layout_mode
def set_rendering_layout_mode(self, value: RenderingLayoutMode) -> NoneSets the RenderingLayoutMode property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | RenderingLayoutMode | The value to set for the RenderingLayoutMode property. |
set_render_zoom
def set_render_zoom(self, value: float) -> NoneSets the RenderZoom property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | float | The value to set for the RenderZoom property. |
set_thumbnail_mode
def set_thumbnail_mode(self, value: bool) -> NoneSets the ThumbnailMode property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the ThumbnailMode property. |
set_unit_mode
def set_unit_mode(self, value: UnitMode) -> NoneSets the UnitMode property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | UnitMode | The value to set for the UnitMode property. |
Properties
canvas_background_color
@propertydef canvas_background_color(self) -> ColorGets the CanvasBackgroundColor property.
Type: Color
Read-only property.
enable_line_weight
@propertydef enable_line_weight(self) -> boolGets the EnableLineWeight property.
Type: bool
Read-only property.
rendering_layout_mode
@propertydef rendering_layout_mode(self) -> RenderingLayoutModeGets the RenderingLayoutMode property.
Type: RenderingLayoutMode
Read-only property.
render_zoom
@propertydef render_zoom(self) -> floatGets the RenderZoom property.
Type: float
Read-only property.
thumbnail_mode
@propertydef thumbnail_mode(self) -> boolGets the ThumbnailMode property.
Type: bool
Read-only property.
unit_mode
@propertydef unit_mode(self) -> UnitModeGets the UnitMode property.
Type: UnitMode
Read-only property.