Commit Graph

37817 Commits

Author SHA1 Message Date
PaddleStroke
2b3215eeb5 Assembly: InsertLink: Use doc.Label instead of doc.Name because of bug of doc.Name not updating when file is saved. 2024-06-17 11:33:28 -05:00
Chris Hennes
85baef1ad5 TD: Use new Qt6.5 interface for setContent (#14543) 2024-06-17 11:33:15 -05:00
Ladislav Michl
2bb41bd1e7 Part: Fix AttachmentSupport when loading files from previous versions
Commit 6b6ff58d3c4a ("Part: Rename AttachExtension::Support property to
AttachmentSupport...") provided code to convert property name when loading
files saved with previous versions. Unfortunately a41f176f596a
("Toponaming: bring in missing code fragments in Part") was based on
at the time obsolete code which did not contain before mentioned tweak,
so AttachmentSupport ended unassigned.

Fixes: a41f176f596a ("Toponaming: bring in missing code fragments in Part")
2024-06-17 11:32:13 -05:00
bgbsww
c5de6ccfc7 Toponaming: Fix crash with invalid external geometry 2024-06-17 11:31:04 -05:00
xtemp09
2248fc7adb Fix crash described in 14370 (issue comment)
The crash occurs because
PartDesignGui::TaskDressUpParameters::setSelection was invoked with
nullptr.
2024-06-17 11:27:07 -05:00
sliptonic
8365c060a8 Machining model and materials (#14460)
* Machining model and materials

Adds a few machinability material model
and a couple materials.  There's a button in the job dialog
to assign a material.

The sanity report is updated to display the surface speed for assigned materials

* improving the machinability model

* Introduce MaterialConstant for the machinability model

This constant is required to calculate the actual specific cutting force
from the normalized value. It determines how the actaual value varies
when the actual chip thickness gets further away from the normalization
point.

* Rename some machinability properties

- SpecificCuttingForce becomes UnitCuttingForce to clearer differentiate
between normalized and actual specific cutting force. The term unit
cutting force is used less often in literature, but
NormalizedSpecificCuttingForce as property name is too long for my taste.
- MaterialConstant becomes ChipThicknessExponent, as "material constant"
is just too generic for our context. In literature, this constant is most
often just used as the symbol m_c.

---------

Co-authored-by: Jonas Bähr <jonas.baehr@web.de>
2024-06-17 11:25:55 -05:00
Roy-043
becd1b5c39 Draft: Draft_Hatch put focus on task panel
To make using Esc work properly the task panel should have the focus.
2024-06-17 11:25:01 -05:00
Roy-043
897f83c13b 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
be32fc6773 Update shape2dview.py 2024-06-17 11:22:18 -05:00
FEA-eng
c2526bd7af Update DlgPreferences.ui 2024-06-17 11:21:26 -05:00
mosfet80
ef654fc60a [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
13c5ddbb6c Fem: Fix height of reference list widget in spring constraint task panel 2024-06-17 11:18:00 -05:00
Jolbas
8fe547df94 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
ce42dd717c 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
95fb9dfb27 [Part] Attachment Editor correct Python 2 reference 2024-06-17 11:14:01 -05:00
Chris Hennes
0ba576a6c7 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
36b8639059 PD: Fixes issue #14598: FreeCAD crashes on Undo 2024-06-17 11:11:12 -05:00
Chris Hennes
29fe1ab535 Merge pull request #11492 from mac-the-bike/erase-version-4
Version 4 of the Erasing Elements Code
2024-06-17 11:10:26 -05:00
Chris Hennes
3181c4f2a8 Merge branch 'main' into erase-version-4 2024-06-17 11:10:12 -05:00
Mihail Dumitrescu
7eff7ee9d0 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
587cd884e8 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
9ad991febc QuickMeasure: fix large selection slow down. 2024-06-17 11:02:53 -05:00
Chris Hennes
2dd12a2d56 Merge pull request #14612 from Ondsel-Development/asm_dist_fix
Assembly: Fix bug of distance joint between point and circle
2024-06-17 11:01:29 -05:00
marioalexis
aaef5236b8 Fem: Remove dependency of calculix solver classes on user parameters - fixes #13383 2024-06-17 10:58:57 -05:00
PaddleStroke
3052760541 Assembly: deleting a component deletes its joints. 2024-06-17 10:58:11 -05:00
marioalexis
99aebd8a33 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
c9dba8a51e 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
d0528fb155 Merge pull request #13810 from hlorus/replace_measuredistance
Integrate Std_MeasureDistance into unified measurement facility
2024-06-17 10:55:40 -05:00
hlorus
5222e14534 Measure: Fix MeasureLength failure when measuring circles/arcs 2024-06-17 11:52:38 -04:00
Chris Hennes
22aad24b06 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
042ed3d6a7 Merge pull request #14503 from wwmayer/vp_texture_ext
Gui: Move texture handling to ViewProviderTextureExtension
2024-06-17 10:49:10 -05:00
Chris Hennes
101118fdde Merge branch 'main' into vp_texture_ext 2024-06-17 10:48:45 -05:00
Kuzemko Alexsandr
173733750b 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
FEA-eng
2ebb20c698 Preselection preference text improvement (#14579)
* Update CommandView.cpp

* Update DlgSettingsSelection.ui
2024-06-17 10:40:03 -05:00
marioalexis
c1b2e933d2 Fem: Write reaction force from rigid body nodes - fixes #14558 2024-06-17 10:38:39 -05:00
Kacper Donat
75fe4f60f6 Gui: Split declaration and definition of ToolBarAreaWidget
In order to support targeting ToolBarAreaWidgets via the QSS we need to
make it a proper QObject using Q_OBJECT macro, which must be placed in
header files.
2024-06-17 10:38:12 -05:00
Chris Hennes
f82ba8b47e Merge pull request #14393 from NomAnor/visibility-icon
Change visibility icon default to enabled and tweak visuals
2024-06-17 10:36:35 -05:00
Yorik van Havre
f278d292b9 BIM; Removed BIMBots - issue opensourceBIM/BIMbots-FreeCAD#2 2024-06-17 10:00:53 -05:00
wmayer
e5fa099591 Clean-up code and improve formatting 2024-06-17 16:30:25 +02:00
wmayer
1dfe98a10d Core: Improve PropertyMaterialList::readString 2024-06-17 16:30:25 +02:00
Chris Hennes
a1505a63e3 Merge pull request #14731 from Syres916/BIM_QtSvgWidgets
[BIM] Fix QSvgWidget is not a child of QtSvg in PySide6
2024-06-17 09:22:38 -05:00
Roy-043
3f15b9455c Remove superfluous QtSvg import from ArchWindows.py 2024-06-17 16:05:45 +02:00
Syres916
0724f3a1c9 [BIM] QSvgWidget is not a child of QtSvg in PySide6 2024-06-17 08:06:03 +01:00
Syres916
6437e714f0 [BIM] QSvgWidget is not a child of QtSvg in PySide6 2024-06-17 08:03:23 +01:00
wmayer
2b8cf894f7 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
David Carter
4e315183b3 Materials: Render Transparency
Under certain conditions an objects transparency would no be updated.

fixes #14568
2024-06-16 22:20:06 -05:00
wmayer
594c382e5e Gui: Fix comparison of argument of clicked() with StandardButton
Fixes #14639: Comparison between integers and StandardButton fails for Python task dialogs with PySide6
2024-06-16 22:18:58 -05:00
wmayer
17eac1ab69 Gui: Fix possible crash when using Shiboken::Enum::getValue
Fixes #14156
2024-06-16 22:18:58 -05:00
MisterMakerNL
87bf36fc58 Delete CMakeSettings.json
always gets in
2024-06-16 22:18:20 -05:00
MisterMakerNL
7d8d6417c7 fix for lag 2024-06-16 22:18:20 -05:00