Commit Graph

26829 Commits

Author SHA1 Message Date
Yorik van Havre
dd53430d19 Merge pull request #4492 from marioalexis84/draft-wp_restore
Draft: Fixes #0004562: Active working plane changes when I close Draft Edit panel
2021-06-30 10:50:25 +02:00
luz paz
39b44b1570 Sketcher: FIx typos in source comments [skip ci] 2021-06-29 20:07:30 +02:00
Yorik van Havre
257cdd8f42 Draft: Implemented edit mode for Draft texts 2021-06-28 15:47:42 +02:00
Tomas Pavlicek
b08e91b691 Merge branch 'master' into TechDraw_Edge_MidPoint_Vertex_Fix 2021-06-28 01:59:36 +02:00
Łukasz Stelmach
a92ee7f358 Arch: Align profile's Y with layout's normal vector
Align profile's Y axis with lyouts normal vector so the profile is always
upright regardles of the direction of extrusion. See [1] for more details.

[1] https://forum.freecadweb.org/viewtopic.php?f=3&t=59725
2021-06-27 22:34:35 +02:00
Przemo Firszt
d3dfeed9a6 Add %{?dist} to Releace
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2021-06-26 13:28:55 +01:00
Roy-043
d72f90d972 Draft: Fix misplaced Draft_Edit nodes for BezCurve 2nd version
The poles in the resetTrackersBezier function are in the CS of the geometric parent of the curve. Before using `p = obj.getGlobalPlacement().multVec(p)` the nodes have to be translated to the CS of the curve. Otherwise the effects of the curve's Placement would be added twice. See discussion: https://github.com/FreeCAD/FreeCAD/pull/4889



 the global coordinate system. They should therefore not be translated from the LCS to the GCS.
2021-06-26 09:42:56 +02:00
Tomas Pavlicek
be19f397f3 TechDraw - Add edge midpoint cosmetic vertex fix - added comments 2021-06-24 20:47:10 +02:00
Bernd Hahnebach
79b41f7393 FEM: ccx results name improvements 2021-06-24 18:03:35 +02:00
Tobias Vaara
4ef2769402 FEM: CCX naming of buckling resultfile
Fixes the naming of the resultfile. Instead of displaying 'Time', it displays "BucklingFactor".
2021-06-24 18:03:20 +02:00
Bernd Hahnebach
991817a47d FEM: cpp python mesh api, fix crash if not existing group was given in get name method 2021-06-24 17:25:54 +02:00
Yorik van Havre
c8b5d8d762 Merged crowdin translations 2021-06-24 17:22:19 +02:00
Yorik van Havre
aa862254dd Updated ts files 2021-06-24 17:18:01 +02:00
Syres916
5ca31d6de2 [Draft] Airfoil Import - User feedback not shown..
... as an error therefore Report Console doesn't attract their attention to why there's nothing in the folder on import of faulty dat file.

See discussion: https://forum.freecadweb.org/viewtopic.php?f=3&t=59628
2021-06-23 15:11:36 +01:00
Bernd Hahnebach
df364b9714 FEM: code formating 2021-06-23 11:34:57 +02:00
Roy-043
9eb9a58934 Draft: Fix Draft_PointArray and Draft_TwistedArray Count problems
Draft_PointArray and Draft_TwistedArray have Count problems:
1. Draft_PointArray: Count is always zero.
2. Draft_PathTwistedArray: Number of items is Count+1.
3. Draft_PathTwistedLinkArray: Count is increased whenever object is recomputed.

Also the first item in a twisted array should be unrotated.
2021-06-23 11:11:15 +02:00
Roy-043
32953590df Draft: Fix Draft_PointArray and Draft_TwistedArray Count problems
Draft_PointArray and Draft_TwistedArray have Count problems:
1. Draft_PointArray: Count is always zero.
2. Draft_PathTwistedArray: Number of items is Count+1.
3. Draft_PathTwistedLinkArray: Count is increased whenever object is recomputed.

Also the first item in a twisted array should be unrotated.
2021-06-23 11:06:47 +02:00
Bernd Hahnebach
57f9e0b82f Part: tube object, add method to simplify to add it to the document 2021-06-23 11:02:44 +02:00
Bernd Hahnebach
51328d3bbe FEM: examples, fix material information for some multi material ones 2021-06-23 11:02:31 +02:00
Chris Hennes
d0e5cb6036 Merge branch 'master' into addThemeSupport 2021-06-22 09:42:43 -05:00
Yorik van Havre
835e326652 Draft: Fixed working plane set on non-coin view 2021-06-22 16:12:59 +02:00
Łukasz Stelmach
7c26d67ebf Arch: Draw solar diagrams for timezones other than UTC and UTC-3
Use the value of tz parameter to set a timezone instead of -3 constant.

Make updates to TimeZone property trigger redrawing of a solar diagram.
2021-06-22 13:33:35 +02:00
Yorik van Havre
08c3a6b3e7 Draft: Create Draft texts when using the C++ DXF importer 2021-06-22 13:00:58 +02:00
Yorik van Havre
c46036a1b8 Merge pull request #4850 from luzpaz/crowdin/PD-fixes
[PartDesign] Translation fixes for reported issues in FreeCAD-translations
2021-06-22 12:41:49 +02:00
Yorik van Havre
54139caff9 Draft: Fixed construction group name 2021-06-22 12:38:22 +02:00
Roy-043
3a8d9a2738 Draft: Small cleanup of Utilities menu and utility toolbar
Removed from the Utilities menu because they already occur in the Modification menu:
Draft_FlipDimension
Draft_Edit
Draft_Slope

Removed from the Utilities menu because calling the command from there instead of from the Draft Tray does not make sense:
Draft_AutoGroup

Removed from the "Draft utility tools" toolbar because the command is very rarely used:
Draft_Heal
2021-06-22 11:54:48 +02:00
Roy-043
bc083a06c2 Draft: Fix wrong color format in gui_setstyle.py 2021-06-21 22:46:00 +02:00
Roy-043
3401a63d68 Fix 3 issues with the Draft Tray layer list
Fix 3 issues with the Draft Tray layer list:
The layer list should display even if there are no layers so that the "Add new Layer" option can be selected.
"Project" and "BuildingPart" objects should be added to the list (depending on "AutogroupAddGroups" of course).
The "LayerContainer" object should not be added to the list. Although it is in fact a group, it is just too confusing.
2021-06-21 21:11:52 +02:00
Roy-043
9fad078ba2 Fix 3 issues with the Draft Tray layer list
Fix 3 issues with the Draft Tray layer list:
The layer list should display even if there are no layers so that the "Add new Layer" option can be selected.
"Project" and "BuildingPart" objects should be added to the list (depending on "AutogroupAddGroups" of course).
The "LayerContainer" object should not be added to the list. Although it is in fact a group, it is just too confusing.

Added is_group function. This function can also be used in gui_groups.py.
2021-06-21 21:07:41 +02:00
Tomas Pavlicek
0fd02a4c11 TechDraw - Add edge midpoint cosmetic vertex fix 2021-06-21 15:20:52 +02:00
donovaly
438895a3be [Sketch] fix menu entry wording
all other menu entries use lower case letters, thus do so also for the new tool
2021-06-21 13:56:23 +02:00
donovaly
4071a13310 [Sketch] change slot icons
change the slot icons to reflect the new selection/definition behavior
2021-06-21 13:56:03 +02:00
M G Berberich
0d95ea9197 AddonManager: parse addonflags.json with json module
Parses addonflags.json with the python json-module instead of using
regular expressions.
2021-06-21 12:52:31 +02:00
donovaly
471e143d09 [sketch] rework the slot command
In practical work it turned out that the slot command is not as convenient as it should because one cannot snap to a proper endpoint and one is restricted to work perpendicular to the sketch axes

This PR fixes this by setting the second snap point to the center of the second arc and removing the perpendicularity.

Benefits:

    when you want to get the slot at a line, edge or sketch axis, set the two center points accordingly. The line does not have to be parallel to one of the sketch axes
    when you want to define the slot using 2 points in the sketch you can do this now
2021-06-20 19:27:58 +02:00
donovaly
90d59ef3dc [TD] save new template as plain SVG
we had several times problems with template SVGs containing Inkscape-special code, thus save the template as plain SVG
2021-06-20 19:07:11 +02:00
donovaly
198aa4c564 [Sketch] save new icons as plain SVG 2021-06-20 19:06:43 +02:00
donovaly
3559710da6 [Sketch] fix these issues:
- missing menu entry for centered rectangle
- typo
- uniform word casing
- duplicated accel key
- remove superfluous comment
2021-06-20 19:06:09 +02:00
Abdullah Tahiri
b7f8f249b2 Sketcher: Add centered rectangle to the menu 2021-06-20 08:24:02 +02:00
Abdullah Tahiri
0fb621af28 Sketcher: Update icon resources 2021-06-20 08:23:31 +02:00
Abdullah Tahiri
cead3808aa Sketcher: centered rectangle icons 2021-06-20 08:23:01 +02:00
Abdullah Tahiri
8b4acf11c2 Sketcher: Centered Rectangle Creation 2021-06-20 08:14:18 +02:00
Abdullah Tahiri
7c519689f0 Sketcher: Reorder rounded rectangle code next to normal rectangle code 2021-06-20 07:07:22 +02:00
donovaly
27c72da585 [Sketch] update icons - part 4 of 4
save icons with uniform DPI and as plain SVG
2021-06-20 06:43:25 +02:00
donovaly
4c795098e2 [Sketch] update icons - part 3
save icons with uniform DPI and as plain SVG
2021-06-20 06:42:21 +02:00
donovaly
4d2cd6c205 [Sketch] update icons - part 2
save icons with uniform DPI and as plain SVG
2021-06-20 06:41:20 +02:00
donovaly
e5aab6c124 [Sketch] update icons - part1
save icons with uniform DPi and as plain SVG
2021-06-20 06:40:35 +02:00
Abdullah Tahiri
4727dd0de2 Sketcher: Resources updated manually 2021-06-20 06:33:17 +02:00
Abdullah Tahiri
725d9db95b Sketcher: Remove axes alignment icon 2021-06-20 06:32:51 +02:00
Abdullah Tahiri
9b34d671e0 Sketcher: UI toolbar/menu remove axes alignment 2021-06-20 06:16:33 +02:00
Abdullah Tahiri
be153ae2d9 Sketcher: Python wrappers for new remove axes alignment algorithm 2021-06-20 06:16:21 +02:00