Table of Contents

Method Set

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Set(CadDocument, IReadOnlyCollection<string>, string, string)

Sets one property of entities.

public static CadEditResult Set(CadDocument document, IReadOnlyCollection<string> handles, string label, string value)

Parameters

document CadDocument

The document.

handles IReadOnlyCollection<string>

The handles of the entities; null or empty for the drawing's current settings.

label string

The row's label, as Describe(CadDocument, CadSpace, IReadOnlyCollection<string>) gives it: "Layer", "Start X", "Radius".

value string

The text typed.

Returns

CadEditResult

What came of it; refused with the reason, nothing written, for a value that cannot be taken, a row that cannot be set, or an entity on a locked layer.

Exceptions

ArgumentNullException

Thrown when the document, the label or the value is null.