Table of Contents

Method Overlaps

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Overlaps(CadDocument, CadSpace, CadOverlapOptions, Tolerance)

Finds the entities whose words overlap what is drawn near them. A word is the frame of a text (a TEXT, an MTEXT's words one run of a line at a time so that a gap between columns is no word, a dimension's text), the rectangle its height and the width of its letters make, turned as the text is. It overlaps a line, an arc, a polyline or a hatch's edge that runs through it, a filled area it lies in, and the frame of another word it shares an area with; one that only touches it, or comes within the tolerance of its edge, does not. Two parts of one entity never overlap: a dimension's text is not over its own lines. A row is a pair of entities with the box of every place they meet, however many their parts. With a word frame from (0, 0) to (20, 5) and a line from (10, -10) to (10, 10), the pair is one row whose box runs from (10, 0.001) to (10, 4.999) at a tolerance of 0.001.

public static CadOverlapTable Overlaps(CadDocument document, CadSpace space, CadOverlapOptions options, Tolerance tolerance)

Parameters

document CadDocument

The drawing.

space CadSpace

The space: model space or a layout of the drawing.

options CadOverlapOptions

Which kinds are words, which they are looked at against and which entities the answer is about; null for the defaults.

tolerance Tolerance

How near an edge still counts as touching it: EqualPoint, in the units of the drawing. Pass the tolerance, never a global.

Returns

CadOverlapTable

The pairs, in the order the space draws the entities of the words and then of the others.

Exceptions

ArgumentNullException

Thrown when the document or the space is null.