Table of Contents

Method Real

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Real(string, double, Func<double>, Action<double>)

Makes a real number above nought the app keeps, as POLARANG: asked "Enter new value for POLARANG <90>:", shown to as few places as it needs; nought or less refused with "Value must be positive and nonzero.", one above most with "Value must be at most 360.", and asked again; set at once, no step of undo.

public static CadSystemVariable Real(string name, double most, Func<double> get, Action<double> set)

Parameters

name string

The name.

most double

The greatest value taken, 360 for an angle in degrees.

get Func<double>

Reads the value.

set Action<double>

Sets a value taken.

Returns

CadSystemVariable

The variable.

Exceptions

ArgumentNullException

Thrown when either delegate is null.

ArgumentException

Thrown when the name is empty or has a space.