Table of Contents

CadFreeSpaceOptions

from OpenCAD2D import CadFreeSpaceOptions

class CadFreeSpaceOptions(System.Object) ยท CadFreeSpaceOptions in the .NET reference

What CadSpatial.FreeSpace and CadSpatial.Fits count as in the way: the kinds of entity whose drawn parts take room, and how much clear room to leave round them.

Constructors

__init__

def __init__(self) -> None

Properties and fields

Kinds

.NET

@property
def Kinds(self) -> System.Collections.Generic.IReadOnlyCollection[str] | None
@Kinds.setter
def Kinds(self, value: System.Collections.Generic.IReadOnlyCollection[str] | None) -> None

Gets or sets the kinds of entity that take room, as the DXF names of CadOverlapOptions.Words give them (TEXT, MTEXT, DIMENSION, LINE, INSERT, MLEADER too); null for every kind. What an INSERT draws, a block's lines and words, is of the kind INSERT.

Margin

.NET

@property
def Margin(self) -> float
@Margin.setter
def Margin(self, value: float) -> None

Gets or sets the clear room left round what takes room, in millimetres, at least nought: a free rectangle stands that far from every line and word, and a candidate that fits is that far from them. Nought is the tolerance's: a thing that only touches another fits beside it.

MinHeight

.NET

@property
def MinHeight(self) -> float
@MinHeight.setter
def MinHeight(self, value: float) -> None

Gets or sets the least height of a free rectangle, as CadFreeSpaceOptions.MinWidth is the least width.

MinWidth

.NET

@property
def MinWidth(self) -> float
@MinWidth.setter
def MinWidth(self, value: float) -> None

Gets or sets the least width of a free rectangle CadSpatial.FreeSpace gives, at least nought. A rectangle narrower than the thing to place is of no use, and in a crowded frame there are thousands of them: with the width and height of the thing given, only the rectangles it could stand in are found. Not used by CadSpatial.Fits.