Calculate optimal scale bar length based on drawing scale Returns length in model units (meters)
Drawing scale factor (e.g., 100 for 1:100)
Maximum length on paper in mm
Calculate optimal scale bar length based on drawing scale Returns length in model units (meters)