CadScaleListRequest
from OpenCAD2D import CadScaleListRequest
class CadScaleListRequest(System.Object) ยท CadScaleListRequest in the .NET reference
AutoCAD's Edit Drawing Scales of SCALELISTEDIT, as data its command and the window share: the drawing's list of scales (ACAD_SCALELIST) in its order, which the dialog changes as it likes, and the default list Reset puts back. OK writes the list as it is then into the drawing as one undo step: the scales taken out deleted, the ones changed renamed and given their units, the new ones added and every one put in its place; Cancel writes nothing.
Properties and fields
Action
@property
def Action(self) -> CadDialogAction
@Action.setter
def Action(self, value: CadDialogAction) -> None
Gets or sets what the dialog was closed with: OK writes CadScaleListRequest.Scales; Cancel until set.
Defaults
@property
def Defaults(self) -> System.Collections.Generic.IReadOnlyList[CadScaleListRow]
Gets the default list Reset puts back, as AutoCAD 2021's: the metric scales 1:1 to 100:1 (17), or, in a drawing in imperial units (MEASUREMENT 0, or none in its header, as AutoCAD reads it), 1:1 and the imperial ones 1/128" = 1'-0" to 1'-0" = 1'-0" (17).
Document
@property
def Document(self) -> CadDocument
Gets the document.
ImperialDefaults
@property
def ImperialDefaults(self) -> System.Collections.Generic.IReadOnlyList[CadScaleListRow]
Gets the list Reset's Imperial scales puts back: 1:1 and 1/128" = 1'-0" to 1'-0" = 1'-0" (17 scales).
MetricAndImperialDefaults
@property
def MetricAndImperialDefaults(self) -> System.Collections.Generic.IReadOnlyList[CadScaleListRow]
Gets the list Reset's Metric and Imperial scales puts back: the 17 metric scales, then the 16 imperial ones that are not 1:1 (33 scales).
MetricDefaults
@property
def MetricDefaults(self) -> System.Collections.Generic.IReadOnlyList[CadScaleListRow]
Gets the list Reset's Metric scales puts back: 1:1 to 100:1 (17 scales).
Scales
@property
def Scales(self) -> System.Collections.Generic.IReadOnlyList[CadScaleListRow]
@Scales.setter
def Scales(self, value: System.Collections.Generic.IReadOnlyList[CadScaleListRow] | None) -> None
Gets or sets the scales in their order: the drawing's when the dialog opens, the dialog's on OK.