This program contains a way to add dimensions to drawing entites. It creates drawings in SVG format. A DXF can be parsed and simultaneously a SVG file can be generated with dimensions.
GreatDevelopers/dimensionize
Algorithms to implement dimensions to CAD entities