QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category QCAD (main)
  • Assigned To
    andrew
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 3.27.6
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by CVH - 31.07.2022
Last edited by andrew - 17.08.2022

FS#2385 - ScriptItems are inserted with the unit setting for a new drawing instead that of the target drawing

Tested on a Win7 32bit and a Win10 64bit system.

With App.Prefs defaults for new drawings set to mm, mm, metric.
Inserting a ‘CubeCuttingOut’ with the default size 10 into a drawing in inch results in size 0.39370079” what is indeed 10mm.

One would expect it to be sized 10 units of the target drawing.

Recently reported by Husky concerning the QCAD Utilities by MikeJ.
https://qcad.org/rsforum/viewtopic.php?f=30&t=9429&start=15#p38045

ScriptItems are first created on a new (offline) document.
QCAD will then adapt the size with unit conversion.
Then it will scale, rotate, flip according the ‘Insert Script’ tool options.

This is fully predictable for standard library items where the source is a dxf file with a defined unit and no unit conversion would occur if the library source unit was ‘None’.

I then assume that this can be fixed with setting the new RDocument in InsertScriptItem.prototype.beginEvent its unit to ‘None’.
Not knowing what the intended behavior should be for any other case, source or usage ...

Regards,
CVH

Closed by  andrew
17.08.2022 11:33
Reason for closing:  Fixed
CVH commented on 06.08.2022 04:08

Anderw,
The proposed fix is functional.
Please refer to:
https://qcad.org/rsforum/viewtopic.php?f=30&t=9466

Regards,
CVH

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing