Code Samples
Home
Create simple entities
Create polylines
Create regular polygons
Create tangent lines
Create fillet arcs
Create a hatch (1)
Create a hatch (2)
Create an entity with filling
Create a text entity filled with lines
Create entities with semi-transparent filling
Create texts with different styles
Create texts with various alignment
Create arc texts
Create multiline text with stacked characters
Create Windows-rendered text
Create dimensions
Create raster image (from a file)
Create raster image (set pixels)
Create raster image (from array of pixels in a memory)
Create raster image (from DIB in a memory)
Create barcodes
Create shape entity (1)
Create shape entity (2)
Create shape entity (3)
Create shape entity from polylines
Create shape entity with hatch filling
Create shape entity with hatch filling 2
Create shape entity from selected entities
Create shape entity from marked entities
Create "road plan" object
Create a block (1)
Create a block (2)
Create a block from selected entities
Create a block from entities of defined layer
Create a block with "ByBlock" color
Add blocks from other files
Add many blocks from external file (1)
Add many blocks from external file (2)
Create a block with attributes
Add more attributes into a block
Modify attributes in block references (1)
Modify attributes in block references (2)
Retrieve block attributes (1)
Retrieve block attributes (2)
Retrieve block attributes (3)
Find the intersection points of entities
Create a drawing and save it into a file
Save and load a drawing using memory buffer
Read coordinates of lines and polylines
Retrieve coordinates of Point entities (1)
Retrieve coordinates of Point entities (2)
Retrieve polyline vertices
Retrieve vertices of entity's outlines (circle)
Retrieve vertices of entity's outlines (text)
Retrieve vertices of entity's hatch lines (barcode)
Retrieve vertices of entity's hatch lines (shape)
Retrieve outlines of hatch entity
Retrieve boundary entities of hatch entity
Retrieve position on entity by given distance
Retrieve position on entity by mouse click
Retrieve position on polyline by given distance
Retrieve position on polyline by mouse click
Retrieve position on RPlan entity by mouse click
Load a drawing file and retrieve coordinates of Point entities
Convert a drawing file into raster image file
Save window view into raster image file
Save window view into raster image in a memory
Save active block into raster image file
Resample raster image
Scale raster image
Camera view
Custom commands
Get one entity by "MouseLBDown" event
Get several entities by "MouseLBDown" event (lcWndGetEntsByRect)
Get several entities by "MouseLBDown" event (lcWndGetEntsByPoint)
Get polyline vertex by "MouseLBDown" event
Get polyline segment by "MouseLBDown" event
Using command LC_CMD_INSERT without dialog
Enumerate layers
Delete entities by layer
Linewidth demo
Print drawing's extents at paper's center
Order of layers and entities by layers
Split entities
Break entity on 2 parts
Break circle on 4 arcs
Break 2 intersected circles
Align entities
Read & write entity's extra data
Enumerate entities inside of a shape
Create TIN object
Create TIN object from points file
Create TIN object with color filling
Get intersection points of TIN and line
Get isolines points of TIN object