LibreCAD / LibreCAD

LibreCAD is a cross-platform 2D CAD program written in C++17. It can read DXF/DWG files and can write DXF/PDF/SVG files. It supports point/line/circle/ellipse/parabola/spline primitives. The user interface is highly customizable, and has dozens of translations.
http://librecad.org/
Other
4.45k stars 1.01k forks source link

Setting linear dimension "DIMSTYLE" via "Dimension" dialog #1867

Open app4soft opened 2 months ago

app4soft commented 2 months ago

Expected behavior

LibreCAD should support all standard DXF dimensions' DIMSTYLE variables.

And there should be an option to set/change default DIMSTYLE variables (e.g., DIMTAD, DIMJUST, etc.) manually for selected dimensions via "Tools > Modify > Properties > Dimension" dialog.

AutoCAD's "DIMSTYLE: Modify" dialog: DIMSTYLE: Modify

Observed behavior

LibreCAD has no option to manually change default DIMTAD and DIMJUST for selected dimensions (via "Properties" or "Attributes"), but automatically switches some of this variables depending on dimensioned length and label text size.

Steps to reproduce or sample file

  1. Create drawing and add linear dimension;
  2. Select dimension(s) and open "Dimension" dialog (by double click or via "Tools > Modify > Properties");
  3. Try change DIMSTYLE variables (DIMTAD, DIMJUST, DIMTOFL, DIMATFIT, etc.) for selected dimension, to invert arrows, change label position, label text size, hide inner dimension line, etc.

Screenshot_2024-08-31_00-44-17

Operating System and LibreCAD version info

All versions and platforms.

Related issues

sand1024 commented 2 months ago

yep, that's a good point. For sure, dimensions support should be extended, and, for example, support of ordinate dimensions in addition to linear also needed.

However, support of all dimension types is not a quick feature to implement so it may require some time.

Anyway, thank you for noting this issue - and it's great that you've also added references there, it will be simpler to implement support.

I think we definitely need to support additional dimensions types.

app4soft commented 2 months ago

For sure, dimensions support should be extended, and, for example, support of ordinate dimensions in addition to linear also needed.

I just updated issue description and added AutoCAD's "DIMENSION: Modify" dialog screenshot.

LibreCAD already has some of DIMSTYLE variables in "Current Drawing Prefernces > Dimensions" (applied to all dimensions in drawing), so adding missing options should be not too hard (as LibreCAD can render some DIMENSIONS features, where there is no option to set it manually, for example, invert dimension arrows direction).

But there is very limited set of options in "Dimension" dialog (if use "Prefernces" on selected dimensions), so customizing DIMSTYLE per each dimension in LibreCAD is almost impossible as for now. I suppose there should be more options (already presented in "Current Drawing Prefernces > Dimensions") added into "Dimension" dialog for selected dimension customizing.

Here is someone screencast on how to customize selected deimension DIMSTYLE in AutoCAD: