Table of Contents

CadFreeSpace

from OpenCAD2D import CadFreeSpace

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

The empty rectangles of a frame (CadSpatial.FreeSpace): four numbers a row, kept as one array so that a frame with thousands of them is one array and no thousands of objects. A row is a rectangle no line or word of the kinds asked about runs through, which cannot be made larger; the rows are the largest first.

Properties and fields

Boxes

.NET

@property
def Boxes(self) -> System.Array[float]

Gets the rectangles, four numbers each: the least X, the least Y, the greatest X and the greatest Y, in the units of the drawing, the largest area first; rectangles of one area by the least Y, then the least X, then the greatest Y, then the greatest X. The array is the table's own: read it, do not change it.

Count

.NET

@property
def Count(self) -> int

Gets the number of rectangles.

Methods

BoxOf

.NET

def BoxOf(self, row: int) -> DisplayBox

Gets a rectangle.