mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 21:12:57 -05:00
The scripting reference gives unitScaleRatio as the ratio, as a percentage, by which the output is scaled, from 0 to 1000. exportFile passed it to the DXF writer as drawing units per unit, so 100 wrote the drawing 100 times too large and 1 wrote it at full size. - The value is divided by 100 before it reaches the DXF writer, and a value left out still writes at full size (100). - A value below 0.0001, which the writer's smallest scale cannot represent, throws a range error at the script instead of an error about the DXF scale from the writer. - docs/mcp.md describes the percentage and the default of 100. The option was added in #9266.