nanoLogika / ACadSvg

C# library to convert AutoCAD drawings from DWG to SVG. AutoCAD files are read using ACadSharp.
GNU Lesser General Public License v3.0
8 stars 2 forks source link

Lineweight scaling #34

Closed mme1950 closed 9 months ago

mme1950 commented 9 months ago

Lineweight is specified by enum values ranging from 5 to 210 representing hundredths of millimeters defined in WCS. To assign a reasonable stroke-witdth this value must be scaled. We did not find a suitable setting in the document header.

The scale factor should depend on the model-space extent. This, however, is not good enaugh considereing the DWG samples we have. Thus a scale factor specified in the conversion options is to be used.

Strategy: