Clipping rectangles Home

Clipping rectangles are used to clip rectangular parts of main drawing (Model space). The part can be saved as a bitmap or a file.
There are functions:

Function Meaning
lcCRectsClear Removes all clipping rectangles from a drawing
lcCRectsDelete Removes one clipping rectangles from a drawing
lcCRectsAdd Adds new clipping rectangle into a drawing
lcCRectsDivide Adds several clipping rectangles into a drawing by dividing the drawing's area
lcCRectsGetFirst
lcCRectsGetNext
Used to sequentially retrieve clipping rectangles
lcCRectsGetWithID Retrieves a clipping rectangle by its identifier
lcCRectsActive Makes active specified rectangle
lcCRectsGetActive Retrieves active rectangle
lcCRectsSave Saves contents into a file
lcCRectsBitmap Saves contents as a raster image

Clipping rectangle has the following properties:

Property Type Access Meaning
LC_PROP_CRECT_ID int RW Identifier
LC_PROP_CRECT_NAME float RW Name
LC_PROP_CRECT_X float RW Center X
LC_PROP_CRECT_Y float RW Center Y
LC_PROP_CRECT_W float RW Width
LC_PROP_CRECT_H float RW Height
LC_PROP_CRECT_ANGLE float RW Rotation angle
LC_PROP_CRECT_LEN float R Perimeter
LC_PROP_CRECT_AREA float R Area

Window properties to control Clipping rectangles:

Property Type Access Meaning
LC_PROP_WND_CRECTS_EDIT bool RW "Edit Clipping Rectangles" mode
LC_PROP_WND_CRECTS_VISIBLE bool RW Display clipping rectangles when LC_PROP_WND_CRECTS_EDIT is false


LC_CMD_CLIPRECTS - Command to call dialog "Clipping Rectangles"

In LiteCAD.exe - menu "Tools / Clipping Rectangles..."