Commit Graph

30574 Commits

Author SHA1 Message Date
wmayer
10dffdb501 Gui: expose more methods of UiLoader to Python 2023-02-23 16:38:45 +01:00
0penBrain
0d577a8789 Base: introduce 'getSafeUserUnit' that fallbacks to full precision and internal unit ...
... in case unit schema would zero a non-zero quantity

 For example, using '1 mil' with UnitsSchemaImperialDecimal schema
2023-02-23 15:22:07 +01:00
0penBrain
65f8321e27 PartDesign: better quantity values handling for primitives 2023-02-23 15:22:07 +01:00
0penBrain
51103fbeb1 Part: better quantity values handling for primitives 2023-02-23 15:22:07 +01:00
0penBrain
76aa8c1534 [Bugfix] Gui: fix bug in expression completer tokenizing, fixes #8590 2023-02-23 13:49:03 +01:00
Chris Hennes
2e2ea4f360 Gui: Fix use of undocumented init() function 2023-02-23 13:26:26 +01:00
Jonas Bähr
ecd660ed7e PD: Fix the internal InvoluteGear's root/tip arc directions
The arcs on the tip (around the addendum) and the root (between the
fillets) used to have their bulge in the wrong direction for the internal
gear profile: their center points has been on the outside.
Since this error existed since the very first introcution of the internal
gear I assume this was done by accident: Instead of only the fillets, all
arcs have been inverted when the external profile was copied.
This commit now inverts the tip and root arcs again, to be concentric
with the pitch circle -- same as for the external profile.
2023-02-23 12:49:10 +01:00
Uwe
f4cdb62464 [FEM] [skip ci] fix typos
- spot by the CI
2023-02-23 12:40:32 +01:00
Uwe
e5953204bd [FEM] simplify Magnetodynamics 2D example
- thanks to the forum: https://forum.freecad.org/viewtopic.php?p=662830#p662830
2023-02-23 12:37:46 +01:00
Bernd Hahnebach
6392cfcf6b Arch: IFC, import, add some comment 2023-02-23 10:55:41 +01:00
Uwe
9440ad90a5 [FEM] add example for magnetodynamic 2D equation 2023-02-23 03:48:31 +01:00
Uwe
fbe65569bb [FEM] fix annoying material selection bug
- for some materials, just opening the material dialog and pressing OK to close it without any change resulted in a transient material
- for other materials this happened by clicking in the material dialog on a value to edit it, but not changing anything and press OK

The fix is to compare the items item by item and also handle the case that only digits of numbers are different
2023-02-23 03:23:12 +01:00
Uwe
04695d9c4c [Material] fix major bug of wrong decimals
This PR fixes the long-standing major bug that for languages using ',' as decimal separator the material editor was useless. (bug no. 10 in https://forum.freecad.org/viewtopic.php?t=56912)
  the issue was that the value was handled as text. This PR:
- using a spinbox instead if a text edit to modify numbers (has also the advantage to be able to change values by spinning)
- sets min/max properly for all number data types

- also avoid rounding artifacts when changing Float values
2023-02-23 03:06:44 +01:00
luzpaz
72166fed46 Fix misc. typos and whitespace 2023-02-22 23:46:18 +01:00
Uwe
69645d0220 [Material] [skip ci] fix card for Graphite
- decimal sign was mixed ',' and '.' causing problems
2023-02-22 21:16:05 +01:00
wmayer
c4d8de3992 Part: don't restrict width of group boxes in section cutting dialog 2023-02-22 21:06:12 +01:00
Bernd Hahnebach
92df8f4440 Arch: IFC, import, add missing debug print new lines and skip information for 2D objects 2023-02-22 15:25:27 +01:00
Syres916
8215af8906 [Part] Fix Geometric Primitives task panel bug
See discussion https://forum.freecad.org/viewtopic.php?t=76218
2023-02-22 14:27:58 +01:00
Yorik van Havre
8e778cdbd7 Merge pull request #8497 from yorikvanhavre/arch-nativeifc
Arch: Placeholder modules to handle files containing NativeIFC objects
2023-02-22 10:33:29 +01:00
Yorik van Havre
8138892878 Merge pull request #8496 from yorikvanhavre/Start-default
Start: Allow to change the default import module for a filetype
2023-02-22 10:27:34 +01:00
Jonas Bähr
3e50af581b PD: Make InvoluteGear's property docs translatable
As the property descriptions are translated at a central place in the
GUI, we have to use the generic "App::Property" category.
For details see https://tracker.freecadweb.org/view.php?id=0002524

As the property docs are also used as tool tips in the InvoluteGear's
task panel, this is also needed to achive a fully translatable GUI.
2023-02-21 23:21:56 -06:00
Jonas Bähr
0887950f64 PD: Enhance InvoluteGear's Task Panel with Tool Tips
In order to not maintain the same information in two places, the property
docs are reused as tool tips for their input fields. And for user
convenience, the same tool tip is assigned to the respective label as
well.
2023-02-21 23:21:56 -06:00
Chris Hennes
2bf39d9108 OpenSCAD: Make clearing field undoable
Also renames the clear button for clarity. Fixes #8576.
2023-02-21 22:55:04 -06:00
Uwe
ff606eb2c3 [FEM] fix material initialization
- on creating a new material object, don't pollute the console wit wrong error messages (if no material is yet selected, of course nothing can be found)
- fix that for anew fluid materials the material editor was started with solid materials
2023-02-22 05:43:57 +01:00
Uwe
6a689e3e97 [Material] fix bugs for external material files
- handle case that material cards are chosen from folders outside of the standard material folders

- also reduce singleStep size for spin edits for more convenience
2023-02-22 05:25:06 +01:00
Uwe
5d48f2bff1 [FEM] add example for magnetodynamic equation
- also fix description of other recently added examples
2023-02-22 03:51:28 +01:00
Chris Hennes
afcd06335d OpenSCAD: Correct QFileDialog usage
Fixes #8577
2023-02-21 20:50:29 -06:00
Chris Hennes
028101d869 Addon Manager: Fix bug in dependency installer 2023-02-21 13:33:20 -06:00
Chris Hennes
0a8037a27d Addon Manager: pylint cleanup of devmode 2023-02-21 12:11:35 -06:00
Uwe
efdbccd0b2 [FEM] add example for flux equation
- also fine-tune flow example
2023-02-21 13:01:14 +01:00
Chris Hennes
c06ddbef1d Core: Update Mac Spacemouse calls
The old call was deprecated by 3DConnexion.
2023-02-20 23:48:39 -06:00
Chris Hennes
d705b35026 Addon Manager: Cleanup package_details.py 2023-02-20 21:09:51 -06:00
Chris Hennes
2e0ca022b5 Addon Manager: pylint cleanup of package_list.py 2023-02-20 21:09:51 -06:00
Chris Hennes
c3a366078f Addon Manager: Remove direct FreeCAD import in tests 2023-02-20 21:09:51 -06:00
Chris Hennes
6968f0cf8e Addon Manager: Silence linter test setup complaints 2023-02-20 21:09:51 -06:00
Chris Hennes
0c7c4d9a5e Addon Manager: HTML standard compliance 2023-02-20 21:09:51 -06:00
marioalexis
be3718deea Fem: Implement getNodeElements function 2023-02-21 03:13:13 +01:00
Chris Hennes
4106ba71c4 Addon Manager: Add SPDX license ID to all files 2023-02-20 15:39:47 -06:00
Uwe
9323c23b3c [FEM] [skip ci] Command.cpp: fix loo long line 2023-02-20 03:13:19 +01:00
Uwe
971b2cb83f [FEM] fix typo in command
- to be uniform as all other commands begin with "CmdFem..."
2023-02-20 02:45:14 +01:00
Uwe
26f1861bf8 [FEM] fix reported typos and inconsistencies 2023-02-20 02:07:33 +01:00
Uwe
41a20d4934 [FEM] add new example file for flow and heat
- also extend examples libraries for (more to come) examples with multiphysics (multiple equations)
2023-02-20 02:06:48 +01:00
Uwe
4eb99a070c [App] License.h: fix compiler warning
- as discussed here: https://forum.freecad.org/viewtopic.php?t=76184
2023-02-20 00:57:19 +01:00
Chris Hennes
24fed3b42f Addon Manager: Refactor macro
Reduce coupling with FreeCAD core.
2023-02-19 15:49:24 -06:00
Chris Hennes
7894ed9084 Addon Manager: Refactor interface to FreeCAD 2023-02-19 15:49:24 -06:00
luzpaz
fa3841774e Fix various trailing whitespace issues and typos 2023-02-19 10:59:14 -06:00
Uwe
bcd157f3eb [FEM] improve pvtu file filtering
- only filter when necessary
- avoid unnecessary function calls
- fix bug that objects were not made visible but invisible
2023-02-19 17:37:11 +01:00
Uwe
e1e65e5b3a [Material] fix card selection bug
- fixes bug number 7 of this list: https://forum.freecad.org/viewtopic.php?style=5&p=489666#p489666

- also fix warning about too short variable name
2023-02-19 07:46:52 +01:00
Uwe
734a0134d6 [FEM] fix material dialog logic
- when the option "use this task panel" is not checked the edit fields must be disabled.
  This also fixes the often hard to understand issue that while scrolling to the end of the dialog the material suddenly changes to "_transient" because the scroll wheel can trigger to change the edit fields.
2023-02-19 04:44:07 +01:00
Uwe
51a3428276 [FEM] fix material handling of fluids
- the material editor failed for Fluid materials because this info was not passed to it. Instead always solid materials were loaded.

- also fix warning about too long variable name and remove unnecessary debug code
2023-02-19 02:57:12 +01:00