Method Fits
Fits(string, double, double, double, double, double, IEnumerable<string>, double, double)
Asks the app whether a candidate place is free: nothing of the kinds asked about runs through it or comes within the margin of it.
public bool Fits(string layout, double x, double y, double width, double height, double rotation, IEnumerable<string> kinds, double margin, double tolerance)
Parameters
layoutstringThe name of a layout, or null or empty for model space.
xdoubleThe X of the candidate's first corner.
ydoubleThe Y of the candidate's first corner.
widthdoubleThe width, above nought.
heightdoubleThe height, above nought.
rotationdoubleThe angle the width runs at, in radians.
kindsIEnumerable<string>The DXF names of the entities that take room; null for every kind.
margindoubleThe clear room to leave, nought or more.
tolerancedoubleHow little still counts as touching, in drawing units; 0.001 is the library's.
Returns
- bool
True where nothing is in the way.
Exceptions
- CadRemoteException
Thrown when the drawing is closed, has no layout of that name, or the candidate or margin is not usable.