Commit Graph

28312 Commits

Author SHA1 Message Date
Pieter Hijma
0229715002 AddonManager: Support selecting addon on start 2024-05-27 10:47:52 -05:00
Jiří Mácha
9d2f72a34f Missing property Object1 or Object2 of fixed joint causing crash (#13912)
* Assembly: removal of object of fixed joint causing crash

FreeCAD is crashing if the 'Object'
property of fixed joint (Assembly/Joints/Fixed/Joint Connector 1/Object1 or
Assembly/Joints/Fixed/Joint Connector 2/Object2) is manually removed.

Steps to reproduce:

 - make simple Assembly e.g. of two cubes with Fixed joint
 - Select Fixed joint in the tree and go-to property 'Data' tab
 - Select 'Object1' or 'Object2' of the 'Joint Connector 1' or 'Joint Connector 2'
   and remove this reference
 - click by your pointing device (mouse) to the arbitrary other property

The FreeCAD will crash here because the call
App::DocumentObject* obj = getObjFromNameProp(joint, propObjName, propPartName);
will return NULL pointer.

This problem is similar to the
4b5d079e6b.

* Assembly: fixed warning message text

The warning message text is not describing two cases which can happen,
but only one - property of specific joint.

* Assembly: avoiding possible crash in rack pinion joint code

Similar problems:

07c6df61f8456a6b02e88b369dcef5643ac1574e
and
4b5d079e6b

were causing real crashes (Linux + Sway Wayland compositor) when
Fixed joint type was used.

This patch tries to avoid the same situation, but now for the
rack pinion joint type.

The returned pointer value (part1 and obj1) can get NULL pointer value
and is used in the code:

    if (obj1->getNameInDocument() != part1->getNameInDocument()) { ....

a few lines later.
2024-05-27 10:46:02 -05:00
PaddleStroke
48f43429bb TechDraw: Enable snapping section views to their base views. 2024-05-27 11:44:31 -04:00
PaddleStroke
babe4cc35f TechDraw: Remove TechDraw_ExtensionPosChainDimensionGroup and TechDraw_ExtensionCascadeDimensionGroup from toolbar since we can snap. 2024-05-27 11:44:31 -04:00
PaddleStroke
a9d690e26d TechDraw: Introduce dimension snapping 2024-05-27 11:44:31 -04:00
PaddleStroke
d201fb25db TechDraw: Dimension: Allow snapping label to its center position. 2024-05-27 11:44:31 -04:00
PaddleStroke
45332a275c TechDraw: Enable snapping views to align them with other views vertically and horizontally. 2024-05-27 11:44:31 -04:00
Chris Hennes
1b43c78010 Merge pull request #14096 from maxwxyz/external-wb-icons
Addon manager: update external WBs icons
2024-05-27 10:39:11 -05:00
Max Wilfinger
6074bcf1ff replace selection filter icon with no filter icon 2024-05-27 10:37:24 -05:00
Chris Hennes
7136c46620 Merge pull request #13869 from Ondsel-Development/sk_redpoints_perp
Sketcher: Fixes red points issue #13849
2024-05-27 10:36:27 -05:00
marioalexis
459a5563f2 Fem: Increase size of reference node symbol in rigid body constraint - fixes #14133 2024-05-27 10:34:12 -05:00
marioalexis
0041ec220f Fem: Don't hide input filter with DataAtPoint and DataAlongLine - fixes #14135 2024-05-27 10:31:28 -05:00
wmayer
e3e830504d CAMSim: Fix build failure with Qt6 2024-05-27 14:00:46 +02:00
Roy-043
7d08671392 Draft: update fuse behavior in facebinder.py
Fixes #14242.

In the current dev fusing an empty shape with a face or solid no longer works (probably introduced with #14169). The reason for starting with an empty shape was the assumption that the end result would then always have a default placement. But that is only correct if multiple objects are fused.

In the new version of the code fusing no longer starts with an empty shape. The default placement issue is solved by always returning a compound.

Additionally the value for the Area property is now taken after offsetting and fusing the faces.
2024-05-27 12:16:24 +02:00
wmayer
5696ee821c Sketcher: Fixes #14240 2024-05-27 12:09:35 +02:00
Furgo
e3c74954c1 [BIM] Fix translate function typo for IfcOpenShell installer 2024-05-27 10:45:59 +02:00
wandererfan
7f26c17a3b [TD]prevent recalculation of dimension type during repair 2024-05-26 15:30:24 -04:00
wandererfan
5b17a73d71 [TD]allow multiple primitives in complex selections 2024-05-26 15:30:24 -04:00
sliptonic
f41c634a23 add combobox selector to toolbit dock (#14297)
Create a more useful tooltip

checkpoint

fix missing dovetail shape

CAM tool fix

remove image stuff
2024-05-26 13:35:50 -05:00
obelisk79
b6c214b9e5 Resolves missing include for GCC14 compilers 2024-05-26 10:11:50 -04:00
Chris Hennes
d4f780782d Update translations
Arch->BIM is a WIP
2024-05-25 19:11:51 -05:00
Yorik van Havre
d62256ca51 BIM: Fixed grid settings in setup tool - fixes #14215 (#14231) 2024-05-25 22:11:02 +02:00
Yorik van Havre
0265927226 BIM: Fixed decimal separator error - Fixes #14208 (#14229) 2024-05-25 22:04:37 +02:00
Yorik van Havre
73427f3b88 BIM: Removed duplicate Part icons - fixes #14232 (#14235) 2024-05-25 22:02:47 +02:00
paul
eab94048b0 [Arch] Fix bug at Arch.py : makeStairs & makeRailing (#14271)
Bug reported at:
https://github.com/FreeCAD/FreeCAD/issues/14262
2024-05-25 21:50:08 +02:00
wandererfan
502207db31 [TD]Fix selection issue in DimensionRepair 2024-05-24 18:42:58 -04:00
bgbsww
db48a78d5a Toponaming used mapped index to find shape. fix #14194 2024-05-23 23:48:34 -05:00
WandererFan
b71c2a3278 [TD]Cosmetic function overhaul (#14216)
* [TD]Cosmetic geometry and tools update

- all cosmetics to store geometry in same form
- all cosmetics to survive scaling and rotation
- extension functions to survive scaling and rotation

* [TD]overhaul leader point storage and editing

- add py routine makeLeader(points)

* [TD]add leader conversion utility

* [TD]Set Leader RotateWithView default to true

* [TD]fix intersection vertex position

* [TD]add CosmeticEdge::makeLineFromCanonicalPoints

* [TD]fix 2 Extension tools

- positioning in DrawCosmeticCircle
- mishandling of points in execLineParallelPerpendicular

* [TD]Remove duplicate constexpr

* [TD]fix 2x Cosmetic arc tools

* [TD]refactor LineFormat out of Cosmetic

* [TD]move cosmetic appearance settings to LineFormat

* [TD]remove 2 unused methods

* [TD]apply format to blue line & circle tools

* [TD]fix ballon arrowhead does not rotate with view

* [TD]fix CosmeticCircle3Points

* [TD]allow multiple cosmetic object deletions

* [TD]fix extend/shorten centerline
2024-05-23 09:41:42 -04:00
Konstantinos Melissaratos
35e9756389 Update FeaturePartFuse.cpp
Fixed typo error
2024-05-23 11:31:37 +02:00
Konstantinos Melissaratos
ead8ad8339 Adding parallel running to the multi_fuse operation 2024-05-23 11:31:37 +02:00
wmayer
83d91d61c6 Sketcher: Fix accessibility of some group commands
The affected commands are:
* Sketcher_CompLine
* Sketcher_CompCreateArc
* Sketcher_CompCreateConic
* Sketcher_CompCreateFillets
* Sketcher_CompCurveEdition
* Sketcher_CompSlot
* Sketcher_CompHorVer
* Sketcher_CompToggleConstraints
2024-05-23 10:14:46 +02:00
wmayer
0484592835 Fix accessibility of some group commands
Several group commands are active but require an active document to work. This PR overrides the method isActive() to
disable the commands if no active document exists.

The affected commands are:
* Std_ViewGroup
* Std_LinkActions
* PartDesign_CompDatums
* PartDesign_CompSketches
2024-05-23 10:14:46 +02:00
wmayer
68889f05ec PathSimulator: Fix many compiler warnings 2024-05-23 10:12:13 +02:00
Roy-043
d90a78391b BIM: Fix BIM tutorial issues
UI file is now in a resources file.
Translate function was not defined.

Forum topic:
https://forum.freecad.org/viewtopic.php?t=87830
2024-05-23 09:37:00 +02:00
mosfet80+
c168ac3e47 [Cam] fix warning
removed unused variables
2024-05-23 08:07:23 +02:00
hasecilu
890d9aea4c Help: Fix typo whlle -> while
Detected by Carlo D on CrowdIn
2024-05-23 08:07:07 +02:00
wmayer
9ebbd2a6df Import: Replace normal message with log message when loading a STEP file 2024-05-23 00:49:10 +02:00
Shai Seger
ff40ef3586 New Cam simulator based on low level OpenGL functions (faster and more precise) (#13884)
* Initial opengl test window

* added core files

* some fixes for code comparability with other platforms

* more compatibility cleanup

* add missing opengl libraries

* Basic simulation window works!

* try using different define

* fix wrapper for better compatibility

* Gui is now operational

* Finally SIM works on actual freecad models

* support drill commands

* cleanup python script and add tool profile generation

* Now using actual tools specified in the operation.

* support mouse wheel and freecad-style 3d navigation

* Support accuracy gauge

* remove endsimulation reference

* show simulation speed indicator

* apply clang-format

* apply changes suggested by code review

* gui items are loaded via QT resource system instead of hard coded

* use vector instead of pointer to pass tool profile points

* Fix some more formatting errors.
2024-05-22 10:16:34 -05:00
Yorik van Havre
d119dc574b BIM: Fixed windows autohosting - fixes #14197 2024-05-22 15:53:59 +02:00
wmayer
1da8e17ffa Sheet: Make ViewProviderSpreadsheet.h self-contained
and fix a few minor issues
2024-05-22 13:32:05 +02:00
Yorik van Havre
3fd1b62aa1 BIM: Reapplied #13648 2024-05-22 10:58:23 +02:00
pre-commit-ci[bot]
2b619949eb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-22 10:21:10 +02:00
mos
bf1f16ac53 [fem] clean
clean unused code
2024-05-22 10:21:10 +02:00
paullee
de40658f3d [ArchCurtainWall] Add OverrideEdges & ArchSketch Support
- Add Overridges property to let user to select particular edge(s) in a Sketch / ArchSketch to use create the shape of the Arch Curtain Wall (instead of using all edges by default).

ENHANCEMENT by External 'ArchSketch' Add-on:

- GUI 'Edit Curtain Wall' Tool is provided in external Add-on ('SketchArch') to let users to select the edges interactively.
- The selection of edges is 'Toponaming-Tolerant' if ArchSketch is used in Base (and SketchArch Add-on is installed).
- Warning : Not 'Toponaming-Tolerant' if just Sketch is used.
- Property is ignored if Base ArchSketch provided the selected edges.

Forum Discussion:

- https://forum.freecad.org/viewtopic.php?p=756554#p756554 [ ArchSketch ] - Curtain Wall, Slab, ArchWall etc. on Same ArchSketch
2024-05-22 09:52:15 +02:00
Yorik van Havre
7b369599aa BIM: Restored original copyright header of ArchCutPlane command 2024-05-22 09:20:23 +02:00
Yorik van Havre
d28a797119 BIM: Reworked preferences and setup screens
* Reworded welcome screen, removed "update" section
* Removed Webtools and Start option from setup dialog - fixes #14179
* Renamed Arch preferecnes to BIM - fixes #14121
* Moved NativeIFC preferences to BIM - fixes #14137
2024-05-22 09:18:41 +02:00
wandererfan
6b5f829ca2 [TD]fix Win CI fail a/c OCC Handle style 2024-05-21 14:14:16 -04:00
wandererfan
5003dc2733 [TD]fix conversion of BSpline to Circle/Arc 2024-05-21 14:14:16 -04:00
wandererfan
40a1ac8c8b [TD]fix autocorrect handling of older documents 2024-05-21 14:14:16 -04:00
mosfet80+
202aa359b3 [mod] removed unused variable
removed unused variable
2024-05-21 13:01:34 +02:00