Method GetOverlaps
GetOverlaps(string, IEnumerable<string>, IEnumerable<string>, IEnumerable<string>, double)
Finds the entities whose words overlap what is drawn near them, as the app's spatial query does: a word is the frame of
a text (a TEXT, an MTEXT's runs, a dimension's words) turned as the text is, and it overlaps a line, an arc, a polyline or
a hatch that runs through it, a filled area it lies in, and the frame of another word it shares an area with; what only
touches it within the tolerance does not, nor a part of its own entity. A kind is the DXF name of an entity,
TEXT, MTEXT, DIMENSION, MULTILEADER, LINE, INSERT.
public CadRemoteOverlaps GetOverlaps(string layout, IEnumerable<string> words, IEnumerable<string> over, IEnumerable<string> handles, double tolerance)
Parameters
layoutstringThe name of a layout, or null or empty for model space.
wordsIEnumerable<string>The kinds whose words are looked at; null for TEXT, MTEXT, DIMENSION and MULTILEADER.
overIEnumerable<string>The kinds the words are looked at against; null for every kind.
handlesIEnumerable<string>The handles the answer is about: only pairs in which one of them stands are given; null for every pair.
tolerancedoubleHow near an edge still counts as touching it, in drawing units; 0.001 is the library's.
Returns
- CadRemoteOverlaps
The pairs, in the order the space draws the entities.
Exceptions
- CadRemoteException
Thrown when the drawing is closed or has no layout of that name.