Commit Graph

26119 Commits

Author SHA1 Message Date
wmayer
659a55ffb9 Base: Exception handling:
* Harmonize FreeCAD with Python exception types
* Implement AbortException::getPyExceptionType() to avoid handling it in client code
* Remove catch block for plain C strings
2022-01-19 18:00:04 +01:00
wmayer
2a3991d799 App: do not hide actual exception type in DocumentObjectPy::addProperty/DocumentObjectPy::removeProperty
and throw TypeError in DynamicProperty::addDynamicProperty() if the based type id is invalid
2022-01-19 10:48:00 +01:00
wmayer
80492d0b2a Test: add unit tests to test with wrong types 2022-01-19 10:19:00 +01:00
marioalexis
950a859842 App: Prevent crash when trying to delete pointer to BaseClass 2022-01-19 08:14:41 +01:00
marioalexis
33b2c7d353 Base: Add 'getTypeIfDerivedFrom' member function to Type class 2022-01-19 08:14:41 +01:00
Aapo Lankinen
82b97374fd [App] DocumentObject.cpp: Add more information to the error message ... (#5394)
* [App] DocumentObject.cpp: Add more information to the error message printed to the console when links go out of allowed scope, namely linked object name(s), allowed scope name, invalid scope name(s).
2022-01-19 01:14:13 +01:00
wmayer
d530992689 Part: support of vertexes in ReferenceHighlighter 2022-01-18 19:47:06 +01:00
wmayer
8db8126dd5 PD: move ReferenceHighlighter to Part module 2022-01-18 18:24:02 +01:00
wmayer
09e14f8488 PD: add PD test modules to __init__.py 2022-01-18 18:02:10 +01:00
Jonas Bähr
75d7feaa33 PD: Add tests for InvoluteGear
There are some basic tests to cover the gear profile and its parameters
and some integration tests for the interaction with PD Pad and Pocket.

I followed the same pattern as the other PartDesign tests, e.g. not using
PEP8 style method names. Eventually some helper methods could be
extracted and moved to the common base framework in Mod/Test, but that's
another step.
2022-01-18 17:43:52 +01:00
mdkus
8047723cde Update CreatePyModule.py 2022-01-18 15:53:25 +01:00
wmayer
c9007693cf Part: in function to create a part handle meshes with defects 2022-01-18 15:20:55 +01:00
wmayer
25748e1505 Gui: [skip ci] improve comment 2022-01-18 10:55:34 +01:00
wmayer
b4f2d3a61c Gui: fix handling of dimensionless expressions 2022-01-18 10:52:45 +01:00
Ajinkya Dahale
faa6cfa402 [PD] Correct include guard name
Correction in `PartDesignGui::ReferenceHighllighter`
2022-01-18 03:01:20 +01:00
Uwe
0066d6d80d [Part] Extrude: avoid code duplication
more code that is used twice into a subroutine
2022-01-17 16:58:03 +01:00
wmayer
5ea6961715 PD: [skip ci] make uniform the license text of test modules 2022-01-17 16:38:10 +01:00
Roy-043
da96a73551 Arch: Fix ArchWall onBeforeChange
The onBeforeChange method in the ArchWall class did not call onBeforeChange from its parent class. This blocked the 'MoveWithHost' behavior of windows placed in walls.
2022-01-17 16:22:16 +01:00
wmayer
aada04fe72 Part: expose Precision to Python 2022-01-17 12:30:45 +01:00
Uwe
e6d63cecd9 [Part] just style fixes
to keep following PR diffs small

all changes automatically done by MSVC
2022-01-17 01:08:48 +01:00
sliptonic
e0a59129cf cleanup imports
Remove py2 test for Queue.
2022-01-16 13:16:23 -06:00
sliptonic
d21b1921aa Remove deprecated code 2022-01-16 13:06:33 -06:00
sliptonic
d121e27694 rename function.
'job' has a meaning in Path.  sort_jobs doesn't sort jobs, it sorts hole locations.
2022-01-16 12:57:49 -06:00
sliptonic
ad296ee060 Refactor filter arcs.
Slightly more readable.  Avoids error with missing variable.
2022-01-16 12:39:39 -06:00
sliptonic
f737930d2f Test case for filterArcs 2022-01-16 12:37:14 -06:00
wmayer
be020c8d9d PD: fix crash in thickness dialog when clicking 'Add Face' button 2022-01-16 18:59:26 +01:00
sliptonic
97e9438960 Removed F words.
Various fixes from code review
2022-01-16 09:50:06 -06:00
mwganson
1f6daebdbf TopoShape::analyze() SetRunParallel(true) to do the bopcheck in parallel mode 2022-01-16 16:30:08 +01:00
mwganson
a4582d8d61 Sketcher: prevent crash when accessing null pointer 2022-01-16 15:14:05 +01:00
wmayer
b35623e680 App: Bugfix for NULL-Pointer dereference of Property->getName() 2022-01-16 14:30:51 +01:00
sliptonic
95a83c811b fix feedrate update
Fix machinestate to handle drill moves and tests
move feed and rapid declarations to PathGeom
2022-01-15 15:36:12 -06:00
sliptonic
18582ff9af Make CircularHoleBase use drillableLib
debugs

remove deprecated PathUtils.isDrillable

drillableLib cmake

make PathProfile use new drillableLib
2022-01-15 15:34:17 -06:00
sliptonic
69d2ce2501 Helpers and tests
Drillable lib and Tests
2022-01-15 15:27:53 -06:00
sliptonic
d42f8af3a0 Refactor PathDrilling to user generator
Uses the drill generator.
centralizes feed rate assignment
Tracks current machine position with MachineState
2022-01-15 15:27:53 -06:00
sliptonic
4ae8f300f1 Drill Generator and testing 2022-01-15 15:27:53 -06:00
sliptonic
f49499b79b Add JobType property 2022-01-15 15:27:53 -06:00
Roy
c7da560d39 Draft: fix task panel related issues
This PR fixes several task panel related issues for Draft modifier commands.
2022-01-15 18:23:05 +01:00
wmayer
8525033bcc Test: [skip ci] clean up documents for unit test with cross links 2022-01-15 16:34:13 +01:00
wmayer
90834eecfe Test: [skip ci] add unit test with cross links
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=58603
2022-01-15 14:28:08 +01:00
wmayer
b8af2f3d52 Test: [skip ci] add test for issue 4823
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=52775
2022-01-15 14:07:28 +01:00
Chris Hennes
5e87b15782 Part Design: Missing = 2022-01-14 09:38:45 -06:00
Uwe
1e9ddc5302 [PD] Pad/Pocket: sort out duplicated code
the checkboxes are almost identical and it avoids work to have them in one location
2022-01-14 13:17:25 +01:00
wmayer
13234d7e63 PD: fix small inconsistence, use forwared declaration 2022-01-14 12:22:16 +01:00
Ajinkya Dahale
9c4c40856f [PD] Use buttonToggled signal in PD pipe
Combines other button toggle methods/signals/slots involved.
2022-01-13 22:31:05 -05:00
Ajinkya Dahale
fd0be8bccd [PD] Use Gui::ButtonGroup in TaskDlgPipeParameters 2022-01-13 22:31:05 -05:00
luz paz
8b743d8598 Mesh: translate doxygen from DE to EN
For the purpose of making the source documentation uniform, source comments in this file were translated to English.
2022-01-13 17:27:43 +01:00
Yorik van Havre
f8401fd52a Merge pull request #5373 from marioalexis84/draft-wpproxy
Draft: Add extension 'AttachExtensionPython' to WP proxy
2022-01-13 14:54:14 +01:00
Yorik van Havre
18cec55bfb Merge pull request #5370 from Roy-043/Draft-Fix-translation-issues
Draft: Fix translation issues
2022-01-13 14:53:28 +01:00
luz paz
ee894b0cab Robot: fix source comment typo 2022-01-12 14:50:39 -06:00
luzpaz
ba555a57e0 Update src/Mod/Assembly/App/opendcm/core/property.hpp
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2022-01-12 14:50:39 -06:00