Commit Graph

28544 Commits

Author SHA1 Message Date
Roy-043
f2d3cf701a Draft: Draft_Split put focus on 3D view
To make using Esc work properly the 3D view should have the focus.
2024-06-17 11:24:36 -05:00
FEA-eng
4882a33d46 Update shape2dview.py 2024-06-17 11:22:18 -05:00
mosfet80
9db4eb6621 [MOD] JtReader.cpp clean (#14624)
* [MOD] JtReader.cpp clean

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-17 11:20:34 -05:00
marioalexis
767bbb8436 Fem: Fix height of reference list widget in spring constraint task panel 2024-06-17 11:18:00 -05:00
Jolbas
0290a8759a Part: Handle zero scale in TopoShape::_makeTransform
With this commit the TopoShape::_makeTransform() use makeGTransform() if scale is zero to avoid crash. Fixes #14562
2024-06-17 11:17:27 -05:00
PaddleStroke
3fa0b68878 Assembly: Implement Bill Of Materials (#14198)
* Assembly: Implementation of BOM

* Assembly: BOM: make it possible for BOM to be made without an assembly.
2024-06-17 11:16:32 -05:00
Syres916
60a0e70882 [Part] Attachment Editor correct Python 2 reference 2024-06-17 11:14:01 -05:00
Chris Hennes
4c907d4318 Merge pull request #14681 from Roy-043/BIM-fix-extrusion-vector-scaling-for-IFC-export
BIM: fix extrusion vector scaling for IFC export
2024-06-17 11:12:30 -05:00
wmayer
41b1fdcb84 PD: Fixes issue #14598: FreeCAD crashes on Undo 2024-06-17 11:11:12 -05:00
Chris Hennes
c726198106 Merge branch 'main' into erase-version-4 2024-06-17 11:10:12 -05:00
Mihail Dumitrescu
77eedb84f8 Fix importing arcs and elliptical arcs as external geometry.
Fix importing elliptical arcs issue #8700.
Fix importing arcs into sketches in the case where they project as elliptical arcs.
Fix a discontinuity that happens when an external arc projects down to a segment. The segment end points should not jump around if the projection angle changes from 89.9 to 90 degrees.
When handling external geometry compare points for equality in a consistent way and remove some dead code.
2024-06-17 11:04:52 -05:00
Chris Hennes
99c30da736 Merge pull request #14388 from Ondsel-Development/core_rootObjects
Core: Add Gui::Document::getTreeRootObjects() Fixes #14373
2024-06-17 11:04:18 -05:00
PaddleStroke
4683fd97b5 QuickMeasure: fix large selection slow down. 2024-06-17 11:02:53 -05:00
marioalexis
3d7d5ab785 Fem: Remove dependency of calculix solver classes on user parameters - fixes #13383 2024-06-17 10:58:57 -05:00
PaddleStroke
55dd8076cc Assembly: deleting a component deletes its joints. 2024-06-17 10:58:11 -05:00
marioalexis
f8027a16d0 Fem: Force z=0 for plane stress, plane strain and axisymmetric elements in writeABAQUS - fixes #12875 2024-06-17 10:57:31 -05:00
Alexandre Prokoudine
a98d7eb288 Adjust names of two Sketcher tools to make their functions discoverable
Users report that they have a hard time figuring out that 'Array transform' does
movement/translations, and 'Polar transform' does rotation. Hence this
adjustment of their user-visible names.
2024-06-17 10:57:10 -05:00
Chris Hennes
d45cf8507b Merge pull request #13810 from hlorus/replace_measuredistance
Integrate Std_MeasureDistance into unified measurement facility
2024-06-17 10:55:40 -05:00
hlorus
a2f331e0d2 Measure: Fix MeasureLength failure when measuring circles/arcs 2024-06-17 11:52:38 -04:00
Chris Hennes
879b71cbc3 Merge pull request #14608 from Ondsel-Development/asm_del_obj
Assembly: Makes sure deleting assembly deletes the joints and views
2024-06-17 10:49:58 -05:00
Chris Hennes
c901a2232f Merge branch 'main' into vp_texture_ext 2024-06-17 10:48:45 -05:00
Kuzemko Alexsandr
bf8e8b9157 Select code page during STEP Import (#14416)
* [STEP Import]
Added the ability to select the encoding of the source file when importing.
Requires OCCT version 7.8.0 and higher

* fix compile error for OCCT < 7.8.0

* Also hide label "CodePage" for OCCT < 7.8.0

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

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

* Fix error

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

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

* Fix error on Ubuntu 20-04

* Fix error on Ubuntu 20-04

---------

Co-authored-by: Kuzma30 <kuzemkoa@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-17 10:47:28 -05:00
marioalexis
9774cd5750 Fem: Write reaction force from rigid body nodes - fixes #14558 2024-06-17 10:38:39 -05:00
Yorik van Havre
078dad7fab BIM; Removed BIMBots - issue opensourceBIM/BIMbots-FreeCAD#2 2024-06-17 10:00:53 -05:00
wmayer
80670094eb Clean-up code and improve formatting 2024-06-17 16:30:25 +02:00
Roy-043
84eb1b2f11 Remove superfluous QtSvg import from ArchWindows.py 2024-06-17 16:05:45 +02:00
Syres916
f50d8abeb0 [BIM] QSvgWidget is not a child of QtSvg in PySide6 2024-06-17 08:06:03 +01:00
Syres916
dd5e21989e [BIM] QSvgWidget is not a child of QtSvg in PySide6 2024-06-17 08:03:23 +01:00
wmayer
8f6798fcc1 PD: Fix Qt warning at runtime
QListWidget::item is not declared as Q_SIGNALS and thus cannot be used as sender in QObject::connect()
2024-06-16 22:21:01 -05:00
wandererfan
6b84b65841 [TD]fix segfault on confused selection
- failure in DrawDimHelper when both 2d & 3d geom selected
2024-06-16 13:15:19 -04:00
Roy-043
da2ae11ca0 Draft: revert #14206 to fix WP alignment (#14665)
#14206 was an intermediate solution. Now that  `Part.getShape` can handle the new `SubElementNames` it needs to be removed as it breaks the handling of subelements in links.
2024-06-16 16:53:02 +02:00
shai
2a6a3649af Added a fix to issue #14613: tool shapes not shown correctly 2024-06-16 08:27:04 -05:00
shai
382ca30d19 a possible fix for MacOS systems. Issue #14348 2024-06-16 08:27:04 -05:00
shai
bd3f0893fd Fix issue #14513 - simulation of partially selected operations not working. 2024-06-16 08:27:04 -05:00
Roy-043
f669ce6634 Ensure that the Dir vector is copied 2024-06-14 15:52:11 +02:00
Roy-043
af8da73ae3 BIM: fix extrusion vector scaling for IFC export
The Dir vector of Part Extrusions also needs to be scaled if obj.LengthFwd.Value is zero.

Forum topic:
https://forum.freecad.org/viewtopic.php?t=88121
2024-06-14 15:39:39 +02:00
Roy-043
30f7f26889 Removed WP related change 2024-06-14 10:41:35 +02:00
Roy-043
6a2eca41b3 BIM: Add IsActive to BIM_Text
Fixes #14586.
2024-06-14 10:41:35 +02:00
Roy-043
a02d4a3cff Draft: revert #14206 to fix WP alignment
#14206 was an intermediate solution. Now that  `Part.getShape` can handle the new `SubElementNames` it needs to be removed as it breaks the handling of subelements in links.
2024-06-14 10:41:35 +02:00
MisterMaker
b205922c42 Default stylesheets revision + clean-up (#13772)
* Added the new QSS file with images

Added the new QSS file with images

* fixed some disabled colors to be the same everywhere.

* update

* big update fixed the scrollbars and lots more.

* small tweaks

* small fixes

* fixed groupbox in qsint

* Added light classic

This light theme is basicallyt exactly no-stylesheet.

* fixed the tabs

* fixed background reportview

* updated overlay stylesheets

* Added preference settings from Opentheme @obelisk79

* tabbar tweaks

* forgot the gradients on dark

* Overlay stylesheets clean-up +move icon to folder.

* removing old stylesheets

removing old stylesheets

* it was icons not icon, fixed it.

* updated cmake and package.xml

* to many spaces

* removing old theme's

* updated default overlay qss

* removed my settings files

* updated cfg files

* Bunch of fixes

I compiled it and didn't see any issues anymore. Could be some discussions about the new startpage thumbnails.

* fixed up double arrows and the correct logo!

* updated the work file for the icons

* Sets no-stylesheet overlay to a stylesheet.

* type in cmakelist

* type in filename

* oeps did set the dark theme

* Update OverlayManager.cpp

I removed a bit to much reverting this line

* fixed text color issue in Qsint on the light theme and dark background

* Update Light Theme + Dark Background.qss

Fine tuning the treeview it now works good for ligth theme and dark brackgrounds.

* removed prodark added back Behave dark overlay

@Syres916 I deleted the overlay qss behave dark by accident.
But you might want to check this PR out since it changes a lot.

I deleted Pro-dark since it was not updated and is outdated and it looks also a lot like the default dark.

* Update Light Theme + Light Background.qss

Fixes

* small fixes

small fixes

* remove ProDark

* Update CMakeLists.txt

* changed the thumbnails

Also removed teh dimensions in the filename since that got annoying real fast :)

* Updated other overlay stylesheets

* missing extension

* cleanup and some fixes to the overlay.

* Update Dark Theme + Light Background.qss

udpated the dark theme overaly with light background for all you maniacs who use this.

* Title bar fix for windows

This makes it so that it uses black title bar in windows if you have dark mode

* updated white background and some colors

* I think I fix merge issue now.

* Some cleanup on the thumbnails

* Create CMakePresets.json

* idk

* trying to fix conflicts

* removing old themes

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

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

* Some fixes for Qsint sketcher toolbars icons

* fixed merge issue with maingui

* trying to fix merge conflicts

* and removing again.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-13 22:13:05 -05:00
wandererfan
ca00ba8ce3 [TD]fix ActiveView image size 2024-06-13 19:25:29 -04:00
wandererfan
b3b9614cbc [TD]disable crop fields if crop not checked 2024-06-13 19:25:29 -04:00
wandererfan
1e847e3c7b [TD]remove spurious error messages 2024-06-13 19:25:29 -04:00
PaddleStroke
4d15b8f66a Sketcher: Fix circle diameter OVP 2024-06-13 14:51:48 -05:00
PaddleStroke
22a98d81f0 Sketcher: - Give focus to the MDI so that keyboard events are caught after starting edit. Else pressing ESC right after starting edit will not be caught to exit edit mode.
- After tool handler is purged, give back focus to MDI to make sure VPSketch receive the keyboard event. Else if user start a tool, dismiss it with ESC, then press ESC again to exit edit mode it won't be detected.
2024-06-13 14:44:30 -05:00
PaddleStroke
8e1a1c1783 Core: GuiDocument testGetTreeRootObject 2024-06-13 15:51:22 +02:00
Furgo
4500d0fd07 Draft toggle grid as a toggle button to indicate grid visibility (#14452)
Makes the button for the Draft_ToggleGrid command act as a real toggle button to provide visual feedback of the grid visibility state.

---------

Co-authored-by: Syres916 <46537884+Syres916@users.noreply.github.com>
2024-06-13 15:31:29 +02:00
Roy-043
91c7d8bfc9 Draft: _get_shapes in shape2dview.py did not handle null shapes (#14646)
Null shapes do not have a ShapeType (strange IMO). The function did not take that into account.

Forum topic:
https://forum.freecad.org/viewtopic.php?t=88397
2024-06-13 15:27:47 +02:00
Roy-043
fc8f7eeea4 BIM: Fix Arch Panel imports (#14644)
Fixes #14585.
2024-06-13 15:26:06 +02:00
Roy-043
c8c2c52e3e BIM: minor icon cleanup (#14560)
* BIM: minor icon cleanup

* Removed icons used for 'experimental' tools. They are obsolete.
* Updated warning.svg to match .../src/Gui/Icons/Warning.svg
* Renamed Image_CreateImagePlane.svg to BIM_ImagePlane.svg to avoid overwriting the first icon in the Wiki.
* Removed ArchWorkbench.svg and preferences-arch.svg as they are also obsolete.
* To resolve a Wiki name conflict renamed BIM_Project.svg to BIM_ProjectManager.svg, and Arch_Project_IFC.svg to BIM_Project.svg.
2024-06-13 15:22:08 +02:00