| Article | 70002715 |
| Type | Wish |
| Product | WebJS |
| Date Added | 6/17/2025 12:00:00 AM |
| Fixed | 11.4.4 (6/17/2025 12:00:00 AM) |
| Submitted by | Brendan Fry |
Summary
More options for TextVerJust property of vdDimesion We want to add new option values for TextVerJust of vdDimension So the text to be drawn below the dimension line or to be drawn Left or right of the dimension line when is on Vertical quadrant between 45 - 135 and 225 - 315 degrees
Solution
In version 11.4.4 new values was added for vdcanvas.scriptCommand.dimvar 'TEXTVERJUST'
it can be one of the
ABOVE : The text is above the dimension's line.
CENTER :The text is inside the dimension's line.
BELOW :Places the dimension text below the dimension line.
LEFT :Places the dimension text align left for vertical dimension lines between 45 to 135 and 225 to 315 degrees.
RIGHT :Places the dimension text align right for vertical dimension lines between 45 to 135 and 225 to 315 degrees.
Example
vdcanvas.scriptCommand.dimvar('BLK', '');
vdcanvas.scriptCommand.dimvar('TEXTVERJUST', 'LEFT'); //ABOVE -or- CENTER -or- BELOW -or- LEFT -or- RIGHT
vdcanvas.scriptCommand.dim([[0, 0, 0], vdgeo.pointPolar([0, 0, 0], vdgeo.DegreesToRadians(50), 3), [0, 0, 0]]);
vdcanvas.scriptCommand.dim([[0, 0, 0], vdgeo.pointPolar([0, 0, 0], vdgeo.DegreesToRadians(110), 3), [0, 0, 0]]);
vdcanvas.scriptCommand.dim([[0, 0, 0], vdgeo.pointPolar([0, 0, 0], vdgeo.DegreesToRadians(240), 3), [0, 0, 0]]);
vdcanvas.scriptCommand.dim([[0, 0, 0], vdgeo.pointPolar([0, 0, 0], vdgeo.DegreesToRadians(300), 3), [0, 0, 0]]);
vdcanvas.UpdateLayout(null, true);
setTimeout(vdcanvas.redraw);
