Bug 156549 - New CAD features for cable design
Summary: New CAD features for cable design
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: VectorGraphic DoAsMacro
  Show dependency treegraph
 
Reported: 2023-07-31 10:20 UTC by Enrico Cora
Modified: 2023-09-27 15:55 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Cora 2023-07-31 10:20:55 UTC
Description:
For cable design
Is it possible add useful CAD features like ?
1) Measures of lenghts for continuos and connected lines or arch (like polilines in Autocad I draw and then I can have the total lenght)
2) Assign a descricptive name (as a bookmark for a group and this group has associated proprierties such the lenght as indicated at point (1))
3) Create an automatic BOM table report for all elements created at point 2
4) For each group named (point 2) can be setted a specific that impact on all sub-parts of group : 
   4.1) Color
   4.2) Line thickness
   4.3) Line Style 
   4.4) Layer assigned xxxx
   4.5) Group visibility ON/OFF
   4.6) Group printable ON/OFF


Actual Results:
Each single line need to be measured using quote method, there isn't an automatic method to measure concatenated lines or arch. So I need tho loose more time to measures step by step each line

Expected Results:
Automatic measures for elements such lines or arch concatenated or grouped


Reproducible: Always


User Profile Reset: No

Additional Info:
New feature as lenght for lines+archs
Comment 1 Stéphane Guillou (stragu) 2023-08-30 09:26:42 UTC
Thanks for the report.

There are quite a few requests in here, and it is easier to have a single feature request per ticket.
But I'll try to answer:

(In reply to Enrico Cora from comment #0)
> Description:
> For cable design
> Is it possible add useful CAD features like ?

There are dedicated CAD programs like https://librecad.org/, maybe they are more suited for the time being?
In any case:

> 1) Measures of lenghts for continuos and connected lines or arch (like
> polilines in Autocad I draw and then I can have the total lenght)

We have Dimension Lines currently, but that works for single lines and is not ideal to use if the user only wants to retrieve the length of one (multi)selection.

Related question: https://ask.libreoffice.org/t/how-to-calculate-the-length-of-an-curve-in-libreoffice-draw-like-in-coreldraw/63780
With an answer suggesting the extension https://extensions.libreoffice.org/en/extensions/show/cadlo (which might cover other issues you have)

Maybe this is already covered by bug 90027? I could imagine some info in the statusbar, but maybe a dedicated "Object stats" dialog could contain a variety of numbers, just like we have text document stats.

> 2) Assign a descricptive name (as a bookmark for a group and this group has
> associated proprierties such the lenght as indicated at point (1))

You can assign a name to objects and groups in the Navigator or with right-click > Name...

> 3) Create an automatic BOM table report for all elements created at point 2

I think this is out of scope for Draw and should be only available in dedicated CAD software or through extensions like CADLO.

> 4) For each group named (point 2) can be setted a specific that impact on
> all sub-parts of group : 
>    4.1) Color
>    4.2) Line thickness
>    4.3) Line Style 
>    4.4) Layer assigned xxxx
>    4.5) Group visibility ON/OFF
>    4.6) Group printable ON/OFF

It is possible to change line style, colour, etc. for the whole group, and to move it at once to a different layer with drag-and-drop onto the tab (see also bug 122587 for improvements to layers management).
Visibility and printability is currently only at layer level, so that's the current workaround, but there are requests to extend such properties to objects, see e.g. bug 89831.

In conclusion, in my opinion, I think what you ask for is either out of scope or already covered in other reports.
Am I missing something? In any case, to be actionable, you should create more specific bug reports instead of a whishlist.
Comment 2 Heiko Tietze 2023-09-04 13:18:06 UTC
In addition to comment 1: "Position & Size" in the Properties sidebar shows the dimension of the surrounding box if you select multiple objects or for the group. 

What exactly is missing?
Comment 3 Regina Henschel 2023-09-04 14:01:06 UTC
There exist the methods getLength() and getEdgeLength() for our internal  B2DPolygon class. I think, Enrico wants such tool in the UI.

The list of points is available in the API for all polyline, polygon and curve objects. The total edge length can be determined using macros. If you only want to get the length in an info box, that is simple. More difficult and complex would be to produce an object in the drawing, that adapt itself to changes in the drawing. I don't know whether that is possible with macros.

https://opengrok.libreoffice.org/xref/core/basegfx/source/polygon/b2dpolygontools.cxx
https://opengrok.libreoffice.org/xref/core/include/basegfx/polygon/b2dpolygontools.hxx
Comment 4 Heiko Tietze 2023-09-27 05:08:52 UTC
From the UI POV I think adding the length at the statusbar (eg. "Bezier curve selected (2.34cm)" could be an option. However, given that this request is part of a larger somewhat specialized workflow/request I suggest to realize this per macro. =>WF

If the total length would be required more often we may keep the ticket.
Comment 5 Stéphane Guillou (stragu) 2023-09-27 15:55:44 UTC
OK, let's close as "won't fix", but if you have input Enrico, please have a look at the linked reports and comment there.

If you think those don't cover something specific you are after, and you still think it is justified, please open a new report (but remember to stick to one issue per report).

Thank you!