Table of Contents

Method List

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

List(CadDocument, IReadOnlyList<string>)

Runs LIST on some entities in a command session of its own and gives the lines it writes, as AutoCAD's LIST writes them: the kind and layer, the space, the handle and the shape of each entity (the length and angle of a line, the centre and radius of a circle, the corners of a polyline). The drawing's own command line, its selection and its undo list are not touched: a line from (0, 0) to (300, 400) lists "Length = 500.0000".

public static IReadOnlyList<string> List(CadDocument document, IReadOnlyList<string> handles)

Parameters

document CadDocument

The drawing.

handles IReadOnlyList<string>

The handles of the entities, in the order to list them; one the drawing has not is refused.

Returns

IReadOnlyList<string>

The lines, none for no handles.

Exceptions

ArgumentNullException

Thrown when the document or the handles are null.

ArgumentException

Thrown when a handle is not an entity of the drawing.