Table of Contents

Method WithPartners

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

WithPartners(CadDocument, IEnumerable<string>)

Gets the handles given with, for each viewport clipped by an entity among them, that entity, and for each entity that clips a viewport among them, that viewport, as AutoCAD takes the two for one object when either is picked ("2 found"): those given, then the partners in ordinal order of their handles, each once.

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

Parameters

document CadDocument

The document.

handles IEnumerable<string>

The handles picked.

Returns

IReadOnlyList<string>

The handles with their partners.

Exceptions

ArgumentNullException

Thrown when the document or the handles are null.