Retrieve objects Home

LiteCAD drawing contains a named objects as a layer, linetype, text style, etc. and a graphics objects, as a line, polyline, arc, text, etc.
There are several functions intended to find required object.

Retrieve named objects

Function Meaning
lcDrwGetFirstObject
lcDrwGetNextObject
Used to sequentially retrieve all objects
lcDrwGetObjectByName Retrieves an object by its name
lcDrwGetObjectByID
lcDrwGetObjectByIDH
Retrieves a named object by its identifier


Retrieve graphic objects

Function Meaning
lcDrwGetEntByID
lcDrwGetEntByIDH
Retrieves an entity by its identifier
lcDrwGetEntByKey Retrieves a graphic object by its key value
lcWndGetEntByID
lcWndGetEntByIDH
Retrieves an entity by its identifier
lcWndGetEntByKey Retrieves a graphic object by its key value
lcBlockGetFirstEnt
lcBlockGetNextEnt
lcBlockGetLastEnt
lcBlockGetPrevEnt
Used to sequentially retrieve all entities from a block
lcBlockGetEntByID
lcBlockGetEntByIDH
Retrieves an entity by its identifier
lcBlockGetEntByKey Retrieves an entity by its key value
lcBlockGetFirstSel
lcBlockGetNextSel
Used to sequentially retrieve all selected entities from a block

   Locate by position
lcWndGetEntByPoint Gets one entity at specified position (window coordinates)
lcWndGetEntByPoint2 Gets one entity at specified position (drawing coordinates)
lcWndGetEntsByPoint Gets an array of entities at specified position (window coordinates)
lcWndGetEntsByRect Gets an array of entities by specified rectangle (drawing coordinates)
lcWndGetEntity Returns a handle to entity in the array

   Retrieve simple polylines of graphic object
lcExpEntity Explode entity to inner buffer
lcExpGetPline Get a polyline from inner buffer
lcExpGetVertex Get coordinates of polyline vertex