Files
vectorcraft/docs
dotCooCoo 1922ba20c9 Scripts: ExportOptionsAutoCAD.unitScaleRatio is a percentage
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.
2026-12-02 17:27:06 -08:00
..