- Status Closed
- Percent Complete
- Task Type Bug Report
- Category ECMAScript
-
Assigned To
Andrew - Operating System All
- Severity Low
- Priority Very Low
- Reported Version 3.7.7
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Attached to Project: QCAD Bugtracker
Opened by Peter - 04.02.2015
Last edited by Andrew - 04.02.2015
Opened by Peter - 04.02.2015
Last edited by Andrew - 04.02.2015
FS#1178 - scripting definition point and vertical DIMs
A regression? In my script I draw stacked dims (depth d):
var c = RVector.getAverage(a, b); // Zentrum der Messung var dim = new RDimRotatedData(); dim.setExtensionPoint1(a); dim.setExtensionPoint2(b); c.x = a.x + d * 50 + ( d > 0 ? 50 : -50 ); dim.setDefinitionPoint(c); dim.setRotation(Math.PI / 2);
Curiosly, this would work in 3.7.5 but fail in 3.7.7: the DefinitionPoint would be ignored then, but only in vertical ones, not in horizontal ones!
More curiously still: The DIM gets drawn right as soon as I move the setRotation call before the setDefinitionPoint call!
PS: the debugger proved very helpful again :)
setDefinitionPoint automatically 'corrects' the definition point to be at one end point of the dimension line. This is indeed new but improves user experience when drawing dimensions and later using drag and drop to change the dimension line position.
The call to setDefinitionPoint should be the last call to set up the dimension.