-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TechDraw: Smart dimension tool #13525
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Does it need a preselection? |
It works like sketcher tool, you activate it then you have a continuous mode. However it actually currently do not work with preselection. Let me fix that. Note @WandererFan , this introduce 'Tool handlers' class in techdraw which are same as the sketcher tools. This is good to handle tools that have "tool->selection" workflow such as the balloon annotation. When I was doing this PR I noticed baloon annotation is hardcoding things in the QGVPage.cpp, such as setting balloon cursor. I think after this PR merges, balloon can be changed to use the new tool handler. |
c2eed28
to
27cddfb
Compare
I have also integrated arc length now.
|
19eb8aa
to
e2f5491
Compare
If you mean "landmark dimension", I'm not sure if that is widely used. It was an early attempt to mitigate TNP for dimensions. I'd leave it out for now. Would like a proper Area Dimension. The one in the Extension tools is a static annotation that doesn't get updated when the face changes. I don't think it handles holes properly either. I don't have a need for edge length, but some might. |
Note that the chain & ordinate dimensions in the Extension tools (red icons) have issues with proper alignment and updating. Making a proper "dimension group" for related dims is on my todo list and has been for a long time. |
e2f5491
to
4c2cbf4
Compare
Ok, I'm creating an area dimension now then. |
95a3a38
to
4e6e9c9
Compare
@PaddleStroke Arrows pointing in an area should end by a bullet by default. Pointed arrows are only for lines and points. |
c259ee6
to
e957921
Compare
Missing an include for QTimer? Also some warnings about unused variables. |
aa93239
to
9587b3c
Compare
@WandererFan thanks I fixed those. I'll check the CI when its done to make sure there are no more things. @pierreporte that would need (potentially) a substantial amount of additional work. So can you discuss with DWG to make sure every one agree and offer a mockup for the shape. Thanks |
@PaddleStroke This is standard drawing practice, not UI/UX. In Guide du dessinateur industriel (A. Chevalier), there is the following example in the common mistakes section. TechDraw already has an acceptable dot terminal available (it could be a bit smaller though to match arrow heads width). |
can confirm @pierreporte |
9587b3c
to
2456b91
Compare
@PaddleStroke Point and arrow are defined in ISO 129-1 |
Got it its clear enough. Well I'll try to pack this in this PR then. |
@PaddleStroke I think default to single tool as it is also in sketcher is good, if all tools in the group are possible with the new tool. Saves a lot of toolbar space and you still have all tools in the dropdown. |
The default is very easy to change, it's like 2 lines of code to change. And for early stage of the tool I prefer to let as separate to avoid having to deal with haters. When its confirmed to be stable anyone can change the default by a tiny PR. |
I'll let @WandererFan press the button ;) |
270f852
to
3ed366b
Compare
It's a great tool. Will it support thickness in the future (when I press M when adding area annotation, nothing happens)? |
What is thickness? Is there already a thickness dimension tool? |
I mean what pierreporte showed here: #13525 (comment) Currently, it has to be added manually as an annotation. It would be nice to have it as a mode for face selection (in addition to area) but the problem is that the value may vary even for a single face and it might be difficult to compute it. But the mode could only consider faces with constant thickness (3rd dimension). Perhaps I should create a feature request for this. |
@FEA-eng I think it should show the distance at the selected point. This kind of dimension shouldn’t be used for variable thicknesses anyway. It could change value when the point is modified. The point could be attached to a cosmetic point if a precise location is needed. |
Right, the thickness where the user clicks will be sufficient. I made a new request to document this: #14012 |
The default hotkey for this tool should be assigned the same as in Sketcher for the dimensional tool - "D" |
please create new issues and describe the problem there. TIA |
@PaddleStroke TechDraw_Dimension_Pointer.svg and TechDraw_Dimension.svg What is the difference? Same icons but sized differently. Is this nuance difference meaningful? |
@Reqrefusion pointer is the cursor icon which is shown when the tool is active. |
The cursor has a small white cross that acts as the mouse pointer. |
Hello, |
@Cobras62 did you test this, it's fine? |
@maxwxyz : yes it is this version that I tested. But the white cross on the white background is difficult to see. Just look at the animation that presents this tool in the 1.0 releases notes and we realize that the white cross is not obvious :) |
It's true the cross is white as in sketcher.
Actually it's set by a preference I seem to recall.
But yes it should not be white but black as techdraw is white background
…On Tue, May 21, 2024, 22:20 Cobras62 ***@***.***> wrote:
@maxwxyz <https://github.com/maxwxyz> : yes it is this version that I
tested. But the white cross on the white background is difficult to see.
Just look at the animation that presents this tool in the 1.0 releases
notes and we realize that the white cross is not obvious :)
—
Reply to this email directly, view it on GitHub
<#13525 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYO6MNKPD7FLG6QZ7TZEPLZDOUB7AVCNFSM6AAAAABGNWLDRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRTGM3TMOJWGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ob my system it looks dark gray. |
@PaddleStroke : ok thanks for this info :) |
@maxwxyz : A friend who works in a design office has tested it and it's white for him too. We're both running Windows 11. |
I just checked and the color is indeed a preference.
It is currently defined in the shared class ToolHandler, which is shared between sketcher and techdraw. So we need to change this to have separate colors. Please open an issue I'll do this later. |
@PaddleStroke : I've just opened an issue. It's the first time I've done it, I hope I haven't done anything wrong ^^. |
Implement a smart dimension tool similar to Sketcher_Dimension. Fixes #12370
Please test and feedback.
By default it is set to both smart dimension + old tools. See preference in TechDraw/Dimension. If you select 'single tool' then it looks like this :
also improve the 'arc length' tool so that it works with any kind of geometries : Arc of ellipse / bspline ... making ExtensionArcLengthAnnotation kind of useless. Though that tool works with multiple edges but as it does not show where it starts and end that wouldn't be very helpful.
Implement Area dimension. (current tool is balloon not a real dimension)