Type: Composite Entity

class ArcDimension

Arc is defined by start- and endpoint on arc and the centerpoint, or by three points lying on the arc if acr3points is True. Measured length goes from start- to endpoint. The dimension line goes through the dimlinepos.

ArcDimension.__init__(pos, center, start, end, arc3points=False, dimstyle='Default', layer=None, roundval=None)
  • pos – location as (x, y) tuple of dimension line, line goes through this point
  • center – center point of arc
  • start – start point of arc
  • end – end point of arc
  • arc3points (bool) – if True arc is defined by three points on the arc (center, start, end)
  • dimstyle (str) – dimstyle name, ‘Default’ - style is the default value
  • layer (str) – dimension line layer, override the default value of dimstyle
  • roundval (int) – count of decimal places


import dxfwrite
from dxfwrite import DXFEngine as dxf

# Dimlines are separated from the core library.
# Dimension lines will not generated by the DXFEngine.
from dxfwrite.dimlines import dimstyles, ArcDimension

# create a new drawing
dwg = dxf.drawing('dimlines.dxf')

# dimensionline setup:
# add block and layer definition to drawing

# define new dimstyles, for predefined ticks see'dots2', tick="DIMTICK_DOT", tickfactor=.5)

dwg.add(ArcDimension(pos=(23, 5), center=(20, 0), start=(25, 0),
                     end=(25, 5), dimstyle='dots2'))