Method Set
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Set(DxfDatabase, string, int)
Sets CANNOSCALE and, where autoScale is above nought, gives the annotative objects of model space the
scale: with 1 those on layers that are on, thawed and not locked, with 2 those on layers that are on and thawed (locked
ones too), with 3 those on layers that are not locked (off and frozen ones too), and with 4 all of them. An object
that cannot be shown at the scale (a kind the presenter lays out at one scale only) is left, and one shown at it already.
public static int Set(DxfDatabase database, string name, int autoScale)
Parameters
databaseDxfDatabaseThe drawing.
namestringThe name of a scale of the drawing's list.
autoScaleintThe value of ANNOAUTOSCALE.
Returns
- int
How many objects were given the scale.
Exceptions
- ArgumentNullException
Thrown when the drawing or the name is null.