Import dimensions from sketch to Techdraw views

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Shalmeneser
Veteran
Posts: 9593
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Import dimensions from sketch to Techdraw views

Post by Shalmeneser »

abdullah wrote: Fri Nov 19, 2021 6:41 pm The idea I got from the power users that actually do blueprints (I do not do blueprints myself) is that good sketching practices lead to constraints in places that one would not put when creating a blueprint. They suggested that it was best to get a projection in TechDraw and create the dimensions that are necessary there.
+1
I think dimensions in Sketcher and TechDraw do not aim the same purpose.
domad
Veteran
Posts: 2096
Joined: Mon Jun 22, 2020 12:16 pm

Re: Import dimensions from sketch to Techdraw views

Post by domad »

Shalmeneser wrote: Fri Nov 19, 2021 8:45 pm +1
I think dimensions in Sketcher and TechDraw do not aim the same purpose.
+1
... I agree !
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: Import dimensions from sketch to Techdraw views

Post by chrisb »

abdullah wrote: Fri Nov 19, 2021 6:41 pmgood sketching practices lead to constraints in places that one would not put when creating a blueprint. They suggested that it was best to get a projection in TechDraw and create the dimensions that are necessary there.
+1, very well said.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
-alex-
Veteran
Posts: 1860
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: Import dimensions from sketch to Techdraw views

Post by -alex- »

Thanks Abdullah for your long reply, IMHO this feature deserves a great attention because it could be a very powerful feature, furthermore as FreeCAD is concerned (due to TNP and OCC HLR issues).
Disclaimer: here below I'm going to talk about constraints, I mean about dimensional constraints (= dimensions) only, not about geometrical ones.
Disclaimer2: my english is not so good, forgive me if some replies are a bit rough and not sharp enough.

abdullah wrote: Fri Nov 19, 2021 6:41 pm I can understand (and have discussed) a feature of reusing the constraints of the sketcher to create TechDraw dimensions. The idea I got from the power users that actually do blueprints (I do not do blueprints myself) is that good sketching practices lead to constraints in places that one would not put when creating a blueprint. They suggested that it was best to get a projection in TechDraw and create the dimensions that are necessary there.
Ok, however I consider myself as well as a power user, I made tons of blueprints in my career by using parametric CAD software, and I used a lot this powerful feature to import dimensional constraints from sketches to drawing views thanks to some big CAD software.
I worked with some experimented draftsmen (my colleges), however some of them didn't used this kind of workflow, actually because they didn't know or didn't fully understood the power of it. After my explanations they changed their opinion then saved time and pain.


Last year I had to do a blueprint for one room of my house. I found rather effortless to click an edge and get a dimension. This makes it even harder for me to understand why such feature would be desirable, if the information is not directly reusable.
You're right, it's rather effortless to click an edge and get a dimension in Techdraw WB, but at one condition: do not modify the 3D model anymore once a time you start the drawing, because of both toponaming issue and OCC HLR algorithm instability. Otherwise a lot of TD dimensions will be broken then you'll have to do the job again, and again, and again, at every topological changes of your model. This is a major issue IMO.
That's not only tedious, it's furthermore dangerous: because if TD dimensions are broken or skip from elements to others, maybe you'll even don't notice. Hence your blueprint could be messy or wrong (wrong values of dimensions, wrong placement, etc...).
ATM Techdraw dimensions are attached to elements (vertex, edges) from HLR algorithm it leads to a huge instability if some changes occur in upstream because this accumulates the maximum of topological instability :
upstream_to_downstream_instability.png
upstream_to_downstream_instability.png (26.11 KiB) Viewed 2510 times

@realthunder has fixed the toponaming issue in his branch, and that's so cool! However, even if this algo would be merged someday in master branch, it will not fix the HLR algo instability AFAIK.

Sketches are very upstream objects, hence very reliable, that's why IMO it would be very reliable to import dimensions from those upstream objects to TD views very downstream objects. It would be a very strong way to shortcut any topological issues.

Now, what it is shown in the first post is some kind of projection over one sketch. So the constraints are not TechDraw dimensions, but sketcher dimensions. It appears to be intended to show how to build a solid from a constrained sketch, or to show how one should constraint one sketch to create a solid.
Please don't mind too much about the picture of my 1st post, it was just a way to illustrate a little bit the meaning of my request. It was a way to say: "hey guys, it is not necessary to add all the dimensions in Techdraw because dimensions already exists in sketches".
If you imagine such a solid which is projected in Techdraw, with imported dimensions as this, "duplicated" from sketcher, the job would be done, and that's it :) The user could add dimensions step by step, sketch by sketch in the appropriate TD view.

Then I read the exchange with wandererfan, where the focus is on a "free floating dimension". I am not sure I follow this part. I do not understand what the purpose of this may be. I do not see how this would substantially speed up the creation of blueprints. But, I do not know much about blueprints.
That means the dimensions would be imported in appropriate projected views by the user by selected the right sketch and the related view (TBD).
In addition it would be also possible to modify the position of every imported dimensional note and the position of it's extension lines ends. Also the value of dimensional note would be linked to the one in the sketch. Maybe we could even edit it in Techdraw to change its value and then change the model directly from the drawing workspace. This last point would be very useful because in projected views, or section view, you can see a lot of details that you can't see easily in the 3D view. For eg. you can see some little interference (collision) between parts, etc.. so you want to adjust quickly some dimensions in place. Of course it possible to do so in 3D view as well. But both possibilities would be much more powerful.

Now, you ask about the Sketcher. There are two different sources of information that can be obtained from a Sketch. The first source, which is the main source, reflects the geometries in edit mode and is contained in two properties called Geometry and Constraints. These assume a sketch in XY plane. However, orientation can be obtained from the placement property. The second source of information is the edges that are generated from the edit mode properties (the shape). This shape contains edges(wires) and vertices, but not constraints or values of constraints.
Thanks for information, I'm not sure to understand BTW, I'm just an end user. I trust you ;)

I think that the approach that is presented in the previous post involves using the second information (the shape) and somehow try to get the constraint information and link it to this shape for representation. I think this approach may be over-complicated if what is desired is what is shown in the first post.
Not sure to fully get your meaning.
IMO the aim would be:
1- to display a kind of linked copy of sketcher's dimension in appropriate projected views (TBD by user, view by view)
2- then to be able to adjust the position of each dimension (and the extension lines ends ideally, along the line's direction only. I can elaborate...) in order to get a nice blueprint with dimensions placed at the right place.
Because as you said the placement of dimensions in sketch doesn't correspond exactly to the one in blueprint, hence minor adjustments of dimension's position in projected views are needed.
I think that if you want to do something in the line of the picture of the first post, it may make more sense to use the edit mode information, and transform it with the placement and projection information. But, TechDraw will need to be able to interpret all the sketcher edit mode geometry and be able to draw it (if the profile is actually necessary), or interpret it if the dimensions are only necessary.

This approach would make the toponaming improvements / reordering of edges in wires irrelevant (as far as I understand), because the edit mode sketch does not have edges or wires, but actual geometry objects (lines, circles, ellipses, ...). But, as said, representation of constraints, within the sketcher, relies on geometry information of the geometry it is applied to. This means that to draw constraints, the geometry information shall be interpreted.
Sorry, I have no strong opinion about that, not sure to get your meaning correctly. I hope my above replies already answer you :?

As an evaluation of the effort, I will say that this is doable. I would say that there is enough information in the sketcher module to understand how this can be done. I will also say that it involves quite some work.
Glad to ear that a solution could exist :)

I am not sure this reply is what you were expecting or if it is helpful.
No problem, we are here to discuss and I like that, I would not waste your time though. So, thank you for your kind attention.
Please tell me if some of my statements are not clear and I would be glad to know your opinion.

Edit 1-3: some words added to improve the meaning, typo.
Last edited by -alex- on Wed Nov 24, 2021 5:44 pm, edited 3 times in total.
User avatar
-alex-
Veteran
Posts: 1860
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: Import dimensions from sketch to Techdraw views

Post by -alex- »

Shalmeneser wrote: Fri Nov 19, 2021 8:45 pm I think dimensions in Sketcher and TechDraw do not aim the same purpose.
yes, but it is possible to get the best of both world. That save time (you don't do the dimensionning job twice), then it improve a lot the robustness of blueprints in regards of various toponaming issue.
chrisb wrote: Sat Nov 20, 2021 11:37 am
abdullah wrote: Fri Nov 19, 2021 6:41 pmgood sketching practices lead to constraints in places that one would not put when creating a blueprint. They suggested that it was best to get a projection in TechDraw and create the dimensions that are necessary there.
+1, very well said.
The experience of ones is not similar with the experience of other ones. My personal experience is not this one.
The ability to import dimensions from sketches directly to projected views is provided by some big CAD and it is a mandatory good practice required by some big industrial companies. Yes it is.
domad wrote: Sat Nov 20, 2021 6:58 am +1
... I agree !
Ok, ok. It seems obvious that some users here are not aware about the kind of workflow I described above.
But please guys, just open your mind and be curious. Do not neglect a possibility of improvement just because you don't practice about it.

I sumerize:
The main advantages to import dimensions from sketch to TD views are:
1 - improve the robustness of drawings a lot
2 - don't do the job twice ( their is no good reason to do the job twice, never)
3 - respect the way to dimension from sketch to TD views (somtimes the guy who modelize is not the same as the one who make the blueprint).

Of course this methode is more suitable for mecanical parts than for large assemblies or architectural drawings.
If you need to add some dimensions which dosen't exist in sketches you can use great standard tools of Techdraw WB, namely those merged by @edy recently. The best of both worlds as I said above.

I repeat, do import dimensions from sketches to drawing it works, I did it since 20 years with no problems. A little bit of practice and a good CAD software are just needed. It would be great if FreeCAD could do this as well.
That's just my opinion...
If some users are aware about this way to dimension drawing they can make a comment ;)
If some developpers think such improvement is worth of interest, please give your opinion.
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: Import dimensions from sketch to Techdraw views

Post by chrisb »

A valid argument is indeed the robustness. However, I'm afraid that it would require quite some additional effort, because it of course wouldn't be enough to create TechDraw dimensions in their current state. Such effort could be better invested into something else, e.g. improving the toponaming situation.

I admit that I tend to ignore the time argument, because my goal is perfection, even if unreasonable time has to be invested. And I am very sure that the possibility to import dimensions to TechDraw would either lead to many inferior drawings, or - and that's worse from my point of view - to many inferior sketches, because sketching people will know what will happen with their dimensions.

In that sense, I think that FreeCAD in its current state leads to a slightly better world :mrgreen: .
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
domad
Veteran
Posts: 2096
Joined: Mon Jun 22, 2020 12:16 pm

Re: Import dimensions from sketch to Techdraw views

Post by domad »

-alex- wrote: Sat Nov 20, 2021 12:02 pm ......
domad wrote: Sat Nov 20, 2021 6:58 am +1
... I agree !
Ok, ok. It seems obvious that some users here are not aware about the kind of workflow I described above.
But please guys, just open your mind and be curious. Do not neglect a possibility of improvement just because you don't practice about it.
......
https://forum.freecadweb.org/viewtopic.php?f=35&t=54499
https://forum.freecadweb.org/viewtopic.php?f=28&t=50659
https://forum.freecadweb.org/viewtopic.php?f=35&t=51141
User avatar
-alex-
Veteran
Posts: 1860
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: Import dimensions from sketch to Techdraw views

Post by -alex- »

chrisb wrote: Sat Nov 20, 2021 1:40 pm A valid argument is indeed the robustness.
yes it is, much more robust.

However, I'm afraid that it would require quite some additional effort, because it of course wouldn't be enough to create TechDraw dimensions in their current state
.
Sure, but no pain no gain. BTW I'm just an end user, I'm not able to code this feature. So I let developers evaluate the situation.

Such effort could be better invested into something else, e.g. improving the toponaming situation.
I don't think so because, as Wandererfan said previously, improve the HLR algo would require quite serious reverse engineering with OCCT.
But there is a more important reason: even with the most reliable toponaming algorithm you will never reach the same level of reliability compare with the method I described. This is inherent to parametric CAD software, even ones which are more robust than FreeCAD. This is due to the concept of projected views where many elements from the model are fused into a single one projected edge. (I can elaborate).
I admit that I tend to ignore the time argument, because my goal is perfection, even if unreasonable time has to be invested.
Do the job twice, or x3 or xX because of lack of robustness does not leads to perfection. Wasting time does not lead to perfection. I can't understand this argument.
And I am very sure that the possibility to import dimensions to TechDraw would either lead to many inferior drawings, or - and that's worse from my point of view - to many inferior sketches, because sketching people will know what will happen with their dimensions.
This is a wrong statement, I told you I did this way during many years, otherwise I would have been fired.
But if some users don't like to do the job once in a reliable way, they could just use actual TD tool. I see no problem. Best of both worlds...
In that sense, I think that FreeCAD in its current state leads to a slightly better world :mrgreen: .
That's not an argument. I'm still quite surprised about such opinion from your ChrisB, with your 38283 posts don't you think FreeCAD deserves to progress?
User avatar
-alex-
Veteran
Posts: 1860
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: Import dimensions from sketch to Techdraw views

Post by -alex- »


Sure, AFAIK your workflow is pretty robust, however it depends if you attache dimensions on sketches only or to the 3D model as well. I'll have a closer look at it.
But you do the job twice as well IMO. Once while modelising, you need to enter dimensions one way or another.
Twice while you're adding dimensions in 3D workspace.
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: Import dimensions from sketch to Techdraw views

Post by chrisb »

-alex- wrote: Sat Nov 20, 2021 2:25 pm
And I am very sure that the possibility to import dimensions to TechDraw would either lead to many inferior drawings, or - and that's worse from my point of view - to many inferior sketches, because sketching people will know what will happen with their dimensions.
This is a wrong statement, I told you I did this way during many years, otherwise I would have been fired.
But if some users don't like to do the job once in a reliable way, they could just use actual TD tool. I see no problem. Best of both worlds...
You may have misunderstood me. I didn't say and don't think that is is always the case. And good or even excellent work is no reason to fire somebody. But even good or excellent isn't necessarily the best. I didn't mean that the results will be bad, just - in many cases - not perfect, see Abdullah's post.

Let me give an example. It uses equality constraints, I am sure thant tangency, horizontal, or parallel can lead to similar situations. I am not an expert in blueprints at all, I can only state that I have acquired some expertise in sketching, so forgive me if there are better ways to dimension the drawing:
SnipScreenshot-f49b1a.png
SnipScreenshot-f49b1a.png (5.5 KiB) Viewed 2310 times
On a technical drawing this may look like this:
SnipScreenshot-774015.png
SnipScreenshot-774015.png (5.86 KiB) Viewed 2310 times
Someone who knows already during sketching that he will have later to go through the whole dimensioning process of the drawing may be intrigued to do that only once and he may just repeat the dimensions in the sketch. After all this may be faster, and, as you say, more stable and it may even save his job. But I would not call the sketch being perfect.
In that sense, I think that FreeCAD in its current state leads to a slightly better world :mrgreen: .
That's not an argument. I'm still quite surprised about such opinion from your ChrisB, with your 38283 posts don't you think FreeCAD deserves to progress?
This is indeed no argument, and it was rather meant to be said with tongue in cheek. The number of my posts is rather unrelated to the topic discussed here and of course it doesn't prove that I am right. It just shows, that I care, but I prefer to be judged by other things, e.g. the contents of my posts or my Sketcher lecture. In some of my posts I have already advocated to prefer a tool which enforces good results rather than a faster workflow. And I can understand that there are situations where other priorities have to be set.
Finally, to clarify with all the non existant power of my posts:

I am all for FreeCAD to progress!

(But not every step is a step forward)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply