ExampleRectangle

Drawj2d output

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# coordinate arrows (origin)
offset 1 1
pen 0.35
arrow -1 0 8 0
arrow 0 -1 0 8
pen

# Set the scale: length (in mm) of a drawing unit
unitlength 2

# Example
moveto 10 7
rectangle 50 20

# explication
pen gray
label TL NW
moveto 10 37
dimlinerel 50 0 dx
moveto 70 7
dimlinerel 0 20 dy

Related

Wiki: Examples

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.