Sketcher : Scale geometries
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Sketcher : Scale geometries
Hey guys,
Scale geometries tool in sketcher :
Let me know your thoughts.
Scale geometries tool in sketcher :
Let me know your thoughts.
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
Re: Sketcher : Scale geometries
Yes, with Abdullah we are currently reworking toolSettings framework and in reworked version the spinbox values will update on mouse move to get an idea of the value we're currently at. So when it will merge in the future it will have that.
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
Re: Sketcher : Scale geometries
I don't see any real life need for that. My sketches are well constrained so I can scale them changing one or 2 dimensions...
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Sketcher : Scale geometries
Does it work with bsplines? It can be useful with them IMO.
Re: Sketcher : Scale geometries
Scaling can be useful when starting a sketch with a more or less rough outline - Polyline plus M key comes to mind. When applying the first dimension it can happen that the whole sketch gets out of whack because the rough size is completely wrong.
In this case I would like to see the following: When the first distance or length dimension is applied, for determining the scale factor you use the ratio between the existing distance and the wanted distance and scale the whole sketch accordingly.
I may add that I almost never use the grid, and I know from many forum posts that other power users don't use it either.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- Shalmeneser
- Veteran
- Posts: 9560
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: Sketcher : Scale geometries
+100chrisb wrote: ↑Thu Mar 03, 2022 5:34 pm Scaling can be useful when starting a sketch with a more or less rough outline - Polyline plus M key comes to mind. When applying the first dimension it can happen that the whole sketch gets out of whack because the rough size is completely wrong.
In this case I would like to see the following: When the first distance or length dimension is applied, for determining the scale factor you use the ratio between the existing distance and the wanted distance and scale the whole sketch accordingly.
.
Grid is PITA.I may add that I almost never use the grid, and I know from many forum posts that other power users don't use it either.
-
- Veteran
- Posts: 5513
- Joined: Thu Apr 05, 2018 1:53 am
Re: Sketcher : Scale geometries
Consider this model. I have cube and a sketch. The sketch has links to external geometry to the edges of one of the cube faces.
I made normal mode line segments and constrain them coincidentally to the vertices:
Could this be scaled to 1.05? or will the coincidence constraints to the external geometry prevent it from scaling? I think there could be value in this for creating clearance. If this can be scaled and if I want the new scaled elements to remain centered to the externally linked geometry which point should I used for reference? Or should I make a new point and constrain it to the center of the rectangle for use as the dragging reference?
I made normal mode line segments and constrain them coincidentally to the vertices:
Could this be scaled to 1.05? or will the coincidence constraints to the external geometry prevent it from scaling? I think there could be value in this for creating clearance. If this can be scaled and if I want the new scaled elements to remain centered to the externally linked geometry which point should I used for reference? Or should I make a new point and constrain it to the center of the rectangle for use as the dragging reference?
- Attachments
-
- scale_test.FCStd
- (4.93 KiB) Downloaded 64 times
-
- Posts: 80
- Joined: Mon Feb 21, 2022 3:02 pm
Re: Sketcher : Scale geometries
I think the sketcher WB offset feature that our developer Paddle is working on is exactly what will be useful for the use case you gave as an example.TheMarkster wrote: ↑Thu Mar 03, 2022 6:11 pm Consider this model. I have cube and a sketch. The sketch has links to external geometry to the edges of one of the cube faces.
Snip macro screenshot-fb2c34.png
Snip macro screenshot-5d466f.png
I made normal mode line segments and constrain them coincidentally to the vertices:
Snip macro screenshot-5ee93b.png
Could this be scaled to 1.05? or will the coincidence constraints to the external geometry prevent it from scaling? I think there could be value in this for creating clearance. If this can be scaled and if I want the new scaled elements to remain centered to the externally linked geometry which point should I used for reference? Or should I make a new point and constrain it to the center of the rectangle for use as the dragging reference?
Re: Sketcher : Scale geometries
Sketcher allows a constraint's value to be assigned a name for subsequent use in other constraints. I am curious how you will handle cases where one or more of the constraints in a sketch have ExpressionEngine values rather than simple numeric values?
For example, consider the case where you create a centered rectangle with these constraints:
I am not sure there is one correct answer because different people may want different behaviors. Here are just a few options:
Thanks for your efforts to improve FreeCAD!
For example, consider the case where you create a centered rectangle with these constraints:
- a "Constrain Vertical Distance" set to value "50mm" and assigned name "width"
- a "Constrain Horizontal Distance" set to value "Constraints.width + 5mm"
I am not sure there is one correct answer because different people may want different behaviors. Here are just a few options:
- Some users may want the scale operation to fail (do nothing) and preserve the original ExressionEngine values.
- Other users may want the scale operation to scale only constraints that have simple numeric values and leave any constraints with ExpressionEngine values unchanged.
- Yet other users may want constraints with ExpressionEngine values to be scaled, but without replacing expressions with computed result values. For example, if you scale to 200%, the expression "Constraints.width + 5mm" might be rewritten as "200/100 * (Constraints.width + 5mm)", not the computed result value "110mm".
Thanks for your efforts to improve FreeCAD!
The first principle is that you must not fool yourself, and you are the easiest person to fool.
-Richard Feynman
-Richard Feynman