# Creating Rectangles

**URL:** <http://forum.qcad.org/t/creating-rectangles/3206>\
**Category:** Creating DXF/DWG items\
**Created:** [March 16, 2017, 3:42pm UTC](http://forum.qcad.org/t/creating-rectangles/3206 "2017-03-16T15:42:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steffo](http://forum.qcad.org/letter_avatar_proxy/v4/letter/s/d78d45/32.png) [@Steffo](http://forum.qcad.org/u/Steffo)\
**Post date:** [March 16, 2017, 3:42pm UTC](http://forum.qcad.org/t/creating-rectangles/3206/1 "2017-03-16T15:42:47Z")

</div>

Hi,

I have to create rectangles like the ones of barcodes. Sadly, I’m not familiar with the dxf format. I looked over the spec, but it is very complicated.  
Can someone give me an example with dxflib in order to create a barcode with i. e. 10 bars?

Thanks in advance.
