· Define marker types
Marker types are defined in the file "MarkType.xml" placed in the Litecad.dll directory.
This is the sample contents of the file:
Meaning of the attributes:
<?xml version="1.0" encoding="UTF-8"?>
<marktypes version="0.1" imgdir=".\Markers">
<type id="1" name="Start element" img="Start.png" offset="5,5"/>
<type id="2" name="End element" img="End.png" offset="5,5"/>
<type id="3" name="Information" img="Info.png" offset="5,5"/>
imgdir - directory of marker images
id - type identifier
name - type name, as it will appear in the "Marker Properties" dialog
img - filename of the image that will be displayed for marker
offset - offset of image left-bottom corner from marker position (pixels)
· Adding markers
Command "markadd", typed in the command window called by <Tab> key.
Programmatically - command LC_CMD_MARKADD
During the command user adds markers by point on entities.
To finish the command press <Esc> or right mouse button.
· Edit markers
Place curson on a marker and click right mouse button - the popup menu will appear:
You can delete the marker of edit its properties by dialog.
Drawing's properties used for markers :
||Visibility of markers
||Ability to add markers
||Ability to edit markers
||Switch visibility of markers
||Switch the ability to edit markers
||Save contours file