Table of Contents

Method Run

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Run(CadDocument, string, CadMakeArgs)

Makes one of the edits listed in the remarks.

public static IReadOnlyList<string> Run(CadDocument document, string what, CadMakeArgs args)

Parameters

document CadDocument

The drawing.

what string

The edit.

args CadMakeArgs

Its arguments.

Returns

IReadOnlyList<string>

What the edit gives back, as the remarks say.

Exceptions

ArgumentNullException

Thrown when an argument of the call is null.

ArgumentException

Thrown when the edit is unknown or an argument is missing or wrong.

InvalidOperationException

Thrown when the drawing refuses the edit (a locked layer, a name taken); nothing is changed.