Commit Graph

37712 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
5c2feabe24 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-06-12 08:40:22 +02:00
mosfet80
d468a7a631 [Main] MainPy.cpp clean
remove unused code
2024-06-12 08:40:22 +02:00
mosfet80
a6937d8d26 [MOD] clean Finite.cpp (#14476)
removed dead code
2024-06-11 12:31:10 -05:00
wmayer
dd816a635c Fix several compiler warnings
* variable 'xAngle' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
* variable 'yAngle' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
* variable 'zAngle' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
* unused variable 'base' [-Werror,-Wunused-variable]
* unused variable 'extrude' [-Werror,-Wunused-variable]
2024-06-11 11:42:12 +02:00
Kacper Donat
1f35398d5a Gui: Fix use of no longer existing DiffuseColor property 2024-06-10 19:40:48 -05:00
PaddleStroke
b463846bea Assembly: Add validation step during dragging to ignore steps where grounded objects moved. 2024-06-10 11:35:04 -05:00
Kuzemko Alexsandr
aca353d7c5 Displaying internal names in the tree view (#14237)
* Displaying internal names in the tree view

* Change "Hide extra column" to "Hide Description"

---------

Co-authored-by: Kuzma30 <kuzemkoa@gmail.com>
2024-06-10 11:31:04 -05:00
Furgo
81324076af BIM: add missing imports for Arch_CutPlane (#14430)
* BIM: add missing imports

* BIM: import correct module for cutComponentwithPlane

* Move PySide imports inside class methods
2024-06-10 11:27:25 -05:00
Chris Hennes
7c7b6ce146 Base: Support virtual environment in Py>=3.11 2024-06-10 11:26:09 -05:00
Chris Hennes
d8d75ca896 Base: Fix compiler warning 2024-06-10 11:23:40 -05:00
DeniseBryson
73c6415878 ArchSpace - Correct computed dimensions (floor area and perimeter length) (#14211)
* Arch: Improved ArchComponent.computeAreas function

All non vertical faces get projected now. Changed Part.Wire to DraftGeomUtils.findWires

* Arch: Removed Area property and add AreaCalculationType to Space object

The horizontal area and its perimeter are now calculated in two different ways. Eiter at the centre of mass or as a projection on the XY-plane. The results are filled in the filed horizontal area and perimeter in the Component section.

* BIM: Added property Area for Spaces again
2024-06-10 11:22:51 -05:00
Florian Foinant-Willig
0b4e01047f Fix can't pad a sketch on datum plane (#14397)
* Fix can't pad a sketch on datum plane

* Add a unit test for Pad a sketch on datum plane
2024-06-10 11:21:32 -05:00
Florian Foinant-Willig
430594ef81 Fix SubElements selection for PropertyLinkSubList 2024-06-10 11:20:37 -05:00
wmayer
133d13bf7f Fix a couple of language change issues
When changing the language in the preferences dialog without closing it then a few things are not re-translated
2024-06-10 11:19:37 -05:00
Chris Hennes
472493f876 Merge pull request #14353 from marioalexis84/fem-constraint_transform
Fem: Cleanup ViewProviderFemConstraint and update constraint transform
2024-06-10 11:18:57 -05:00
Chris Hennes
e79ed3be95 Merge pull request #14507 from Rexbas/gesture-rotation-mode
Gui: Fix Gesture navigation rotation mode
2024-06-10 11:14:18 -05:00
PaddleStroke
48cfc90049 Assembly: Add preference to enable debug files of dragging 2024-06-10 11:13:12 -05:00
bgbsww
d467236564 Guard all uses of basic_random_generator for thread safety 2024-06-10 11:10:57 -05:00
PaddleStroke
833e9cc8ab Sketcher: Fix default value of dimConstrDeactivatedColor 2024-06-10 11:09:36 -05:00
Syres916
245e66ed3a [Gui] Fix BehaveDark StatusBar Flickering Border...
...and sync tooltip colours and size
2024-06-10 11:08:44 -05:00
mosfet80
62279d083d [mod] clean (#14378)
* [mod] clean

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-10 11:07:14 -05:00
Chris Hennes
faddc780c3 Merge pull request #14433 from kadet1090/feature-ui-for-up-to-shape
GUI: Add UI for Up To Shape feature
2024-06-10 11:06:25 -05:00
Kacper Donat
b68da9d844 GUI: Add UI for Up To Shape feature
Add UI for Up To Shape feature and overall refactor of Pad / Pocket.
2024-06-10 18:05:21 +02:00
Kacper Donat
3f6f8c0172 Gui: Refactor DressUp VP to use setHighlighted*
This refactors DressUp VP a bit so it does no longer store original copy
of original faces colors to properly support selection, but uses
highlight methods provided by the base class. It simplfies code a bit
and ensures coherent behavior.
2024-06-10 18:05:21 +02:00
wmayer
954d2c1ac3 Gui: Refactor DlgMaterialPropertiesImp
Because a PropertyMaterialList property is used now it makes no sense any more to pass a list of view providers to the dialog
as it's impossible to set the material at a certain index.
Therefore the dialog has been simplified and setting the material property must be done by the calling instance.
2024-06-10 10:50:46 -05:00
Chris Hennes
3df1095580 Merge pull request #14477 from mosfet80/patch-7
Update issue-metrics to v3
2024-06-10 10:50:11 -05:00
Adrian Insaurralde Avalos
a4ac8282ed Unpin pcl on conda devenv and update to use libboost-devel 2024-06-10 10:49:09 -05:00
Mihail Dumitrescu
417e6559b4 Add ParallelPlane attachment mode.
It results in an attachment similar to ObjectXY but with the XY plane translated to pass through a selected vertex.

It is most useful to place sketches: pick a plane (XY, XZ, YZ) or another sketch then select a vertex to automatically translate the sketch in the Z-direction. In contrast to the Translate mode it does not change the origin.
2024-06-10 10:47:00 -05:00
Max Wilfinger
ac21dadc97 Change splashscreen text color to the new logo blue from the guideline 2024-06-10 10:43:45 -05:00
Chris Hennes
5b3b293811 Merge pull request #14417 from marioalexis84/fem-constraint_body_heat_source
Fem: Add body heat source to CalculiX writer - fixes #11650
2024-06-10 10:38:26 -05:00
FEA-eng
f5486bca3e Part: Add Sketcher_NewSketch to Part toolbar (#14318)
* Update Workbench.cpp

* Part: Update InitGui.py
2024-06-10 10:36:39 -05:00
Emmanuel Obrien
a7e1760bfb Speedup sketcher item selection
Selecting lots of elements in the sketcher slows down quadratically because we were redrawing the entire element list widget for each element.
2024-06-10 10:35:32 -05:00
PaddleStroke
ba0ff0db5e Techdraw: area dimension: fix scale issue. 2024-06-10 08:28:36 -04:00
Syres916
3b4598ce04 [AddonManager] Fix Error on Existing Python Additional Packages Folder (#14522)
* [AddonManager] Fix Error on Existing Python Additional Packages Folder

...this is more likely to occur since the BIM workbench integration and new users installing ifcOpenShell by pip before running AddonManager.

* [AddonManager] Correct boolean
2024-06-07 14:30:42 -05:00
bdieterm
ea68c5e88c Core: fix import of FreeCAD in a Python 3.12 interpreter
Importing FreeCAD as a module in a normal Python interpreter (e.g. /usr/bin/python3) stopped working with Python 3.12 (but works normally with Python 3.11). When executing "import FreeCAD as App", the interpreter crashes with "Fatal Python error: PyImport_AppendInittab: PyImport_AppendInittab() may not be called after Py_Initialize()".
The check that causes the error message and abortion was introduced in Python 3.12 via
7f3a4b967c
(and a typo in the error message fixed via)
35dd55005e
2024-06-07 12:19:45 -05:00
wandererfan
5ca6eab922 [TD]fix incorrect section lines with expression link 2024-06-07 10:19:13 -04:00
wandererfan
c5981b07b6 [TD]Change template svg_namespace to www.freecad.org
- was www.freecadweb.org
2024-06-07 10:18:42 -04:00
Kacper Donat
62463fa0bd Gui: Add QtStyle user parameter
This allows theme developers to set proper Qt style.
2024-06-06 22:26:21 -05:00
hlorus
433dcec0be MeasureGui: Don't resolve selection objects in TaskMeasure
Fixes #14332
2024-06-06 22:24:30 -05:00
Jonas Bähr
4f3f692fca App: add readline-based tab-completion
When executing FreeCAD in interactive console-mode, the init-script tries
to load readline for a better input experience and enables tab-completion.
This code is neither executed when running in GUI mode, nor when the
console is not itneractive, e.g. when reading a script from stdin.

Note that readline is not available on Windows, so we ignore import errors
for now. With pyreadline3 there may be an alternative for Windows, but I
cannot verify this on my setup.
2024-06-06 21:56:18 -05:00
Max Wilfinger
6acf3ca401 Updated icons according to DWG feedback 2024-06-06 21:41:50 -05:00
Roy-043
7496eb94f8 Draft: Fix two Layer warnings (#14506)
There are two unnecessary Layer warnings:
1. A 'might break' warning when deleting an object nested in a layer.
2. An 'out of scope' warning for objects also nested in f.e. a Std_Part.

To avoid them the Group property type was changed to `App::PropertyLinkListHidden`.
2024-06-06 15:53:49 +02:00
Syres916
7dbebbbb08 [BIM] Add fallback installation for Python 3.10, 3.11 & 3.12 systems 2024-06-06 14:47:17 +02:00
Roy-043
3ef99e8b83 BIM: Update WP commands
Update the BIM WP commands to use the new Draft code. This ensures correct GUI behavior.

This also fixes the BIM_SetWPSide command which would align to the left side instead of the right side. The right side matches the behavior of Draft_SelectPlane and also the icon of the command.
2024-06-06 14:08:21 +02:00
Roy-043
5935cba69a BIM: Fix BimImagePlane.py imports 2024-06-06 14:07:39 +02:00
paullee
bc46d4fc39 [ArchWall] Add switch 'ArchSketchData' to use ArchSketch Data or not 2024-06-06 14:04:14 +02:00
paullee
b3ac1d9c85 [ArchWall] Disable Input (ReadyOny) if Base (ArchSketch) Provided
To avoid confusion, attributes e.g. Align, Width, Offset, Override (Align/ Width/ Offset)
would be disabled, if Base object is ArchSketch which provided the above information

FC Forum Discussion :  https://forum.freecad.org/viewtopic.php?t=87721&start=30#p763761
2024-06-06 14:04:14 +02:00
marioalexis
108a66f960 Fem: Add license to constraints symbol files 2024-06-05 13:12:25 -03:00
marioalexis
f17ad4f143 Fem: Update constraint transform 2024-06-05 13:12:25 -03:00
marioalexis
536a2b0aad Fem: Move functions to Tools class 2024-06-05 13:12:25 -03:00