Share

Viewport.StandardScale Property

Description

This function returns the scale of a viewport by using a standard scale defined by the StdScaleType enumeration. Possible values are:

Name Usage Name Usage
CustomScale Scale is not a standard scaleScale1To1 1:1
Scale1To128inAnd1ft 1/128"= 1'Scale1To64inchAnd1ft 1/64"= 1'
Scale1To32inchAnd1ft 1/32"= 1'Scale1To16inchAnd1ft 1/16"= 1'
StdScale3To32InchIs1ft 3/32"= 1'Scale1To8inchAnd1ft 1/8" = 1'
StdScale3To16InchIs1ft 3/16"= 1'Scale1To4inchAnd1ft 1/4" = 1'
StdScale3To8InchIs1ft 3/8" = 1'Scale1To2InchIs1ft 1/2" = 1'
StdScale3To4InchIs1ft 3/4" = 1'StdScale1InchIs1ft 1"= 1'
Scale3inIs1ft 3"= 1'Scale6inIs1ft 6"= 1'
Scale1ftIs1ft 1'= 1'Scale1To2 1:2
Scale1To4 1:4Scale1To8 1:8
Scale1To10 1:10Scale1To16 1:16
Scale1To20 1:20Scale1To30 1:30
Scale1To30 1:40Scale1To50 1:50
Scale1To100 1:100Scale2To1 2:1
Scale4To1 4:1Scale8To1 8:1
Scale10To1 10:1Scale100To1 100:1
Scale1000To1 1000:1

If you accesses StandardScale on a viewport whose scale doesn't match any of the standard scales, the CustomScale is returned.

Visual Basic

Public Property StandardScale() As Autodesk.AutoCAD.DatabaseServices.StandardScaleType

C#

public Autodesk.AutoCAD.DatabaseServices.StandardScaleType StandardScale;

Conditions

Read / Write

Links

Viewport Class, Autodesk.AutoCAD.DatabaseServices Namespace

Was this information helpful?