Abdullah Tahiri
f06e805d8a
Refactor ViewProvider move constraint code
2023-12-17 16:01:29 +01:00
Abdullah Tahiri
8d00b00c9b
Sketcher: Utils/CommandConstraints/EditModeConstraintCoinManager - refactor duplicated code
2023-12-17 16:01:29 +01:00
Abdullah Tahiri
d28fe43565
Sketcher: Redraft circle/arc to circle/arc constraint command
2023-12-17 16:01:29 +01:00
Abdullah Tahiri
ed14b2c845
Sketch: Distance - fix uninit pointers and scope
2023-12-17 16:01:29 +01:00
Florian Foinant-Willig
7343bf940b
Sketcher: Extend distance constraint to arcs
2023-12-17 16:01:29 +01:00
Florian Foinant-Willig
838802e28d
Sketcher: Arc to arc or circle distance constraint
2023-12-17 16:01:29 +01:00
Syres916
5ae3a5da9d
[TechDraw] Correct typo in folder name
2023-12-16 23:01:55 -03:00
Roy-043
c0fa0193b7
Merge pull request #11744 from Roy-043/Draft-intermediate-fix-for-get_normal-check-if-3D-view-exists
...
Draft: intermediate fix for get_normal: check if 3D view exists
2023-12-16 21:57:20 +01:00
Roy-043
06a321eb80
Draft: intermediate fix for get_normal: check if 3D view exists
...
This avoids issues with TechDraw views of Arch models if there is no active 3D view.
2023-12-16 20:30:45 +01:00
Roy-043
e1c3c19ed8
Merge pull request #11738 from Roy-043/Draft-implement-new-get_param-functions-step-6
...
Draft: implement new get_param functions (step 6)
2023-12-15 18:52:29 +01:00
Roy-043
0845671608
Draft: implement new get_param functions (step 6)
...
See #11677
Added a parameter to the dictionary. The get_parameter and set_parameter functions now print a warning if a parameter is not found.
2023-12-15 14:59:59 +01:00
Roy-043
20f32c4bf1
Draft: implement new get_param functions (step 5)
...
See #11677
Last bits...
2023-12-14 15:53:45 +01:00
pre-commit-ci[bot]
bd2c77f797
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-12-14 15:47:56 +01:00
Yorik van Havre
2c4c9ac520
Fix DXF importer wrongly prioritizes the MEASUREMENT variable
2023-12-14 15:47:56 +01:00
Kevin Martin
fc08e0a6f0
Add color on DXF import, refactor code
...
Colors as assigned to imported drawing entities if they are not merged
with other entities.
The code has been refactored to remove much duplication in reading of
attributes.
The code gives brief messages on the Python console about unsupported
DXF festures and also issues some new errors.
There is no support yet for making colors 1-9 and 250-255 contrast with
the creeen background color. Colors are generated by code rather than a
lookup table; this code can eventually modify the colors it generates to
contrast with a specific background color.
2023-12-14 10:15:17 +01:00
Kevin Martin
00cbc6bab1
Remove the "legacy only" from the import colors option
2023-12-14 10:15:17 +01:00
Kevin Martin
37e6c19a4b
Add hooks so Gui classes can be seen by DXF importer
2023-12-14 10:15:17 +01:00
Roy-043
aa1f75ef0e
Merge pull request #11722 from Roy-043/Draft-implement-new-get_param-functions-step-4
...
Draft: implement new get_param functions (step 4)
2023-12-13 21:55:45 +01:00
Roy-043
16e5835aa6
Draft: implement new get_param functions (step 4)
...
See #11677
2023-12-13 19:39:35 +01:00
Roy-043
3a15d3c66a
Merge pull request #11715 from Roy-043/Draft-implement-new-get_param-functions-step-3
...
Draft: implement new get_param functions (step 3)
2023-12-13 16:57:15 +01:00
Roy-043
14482b1f8e
Moved another import
2023-12-13 16:32:15 +01:00
Roy-043
bd19d331f5
Moved an import to avoid circular import
2023-12-13 09:59:08 +01:00
Roy-043
822f2111e3
Draft: implement new get_param functions (step 3)
...
See #11677
2023-12-12 20:20:03 +01:00
Roy-043
a5a5bfd8e6
Merge pull request #11711 from Roy-043/Draft-implement-new-get_param-functions-step-2
...
Draft: implement new get_param functions (step 2)
2023-12-12 17:04:14 +01:00
Roy-043
b0aa33f92a
Draft: implement new get_param functions (step 2)
...
See #11677
2023-12-12 14:48:09 +01:00
Roy-043
2b9fb51067
Merge pull request #11703 from Roy-043/Draft-implement-new-get_param-functions-step-1
...
Draft: implement new get_param functions (step 1)
2023-12-12 14:28:29 +01:00
WandererFan
76f08734cc
Merge pull request #11705 from pavltom/techdraw_scrubedges_fix
...
[TechDraw] Fix scrubEdges() OCC error with single input edge
2023-12-11 19:30:46 -05:00
pavltom
103f37eee1
[TechDraw] Fix scrubEdges() OCC error with single input edge
2023-12-11 23:40:33 +01:00
hlorus
f0f9e81f88
Simplify dragging of App::AnnotationLabel ( #11602 )
...
* ViewProviderAnnotationn: Always allow dragging
Removes the editmode
* ViewProviderAnnotation: Use the label as transformation handle
* ViewProviderAnnotationn: Always allow dragging
Removes the editmode
* ViewProviderAnnotation: Use the label as transformation handle
* ViewProviderAnnotation: Hide dragger feedback during translation
---------
Co-authored-by: WandererFan <WandererFan@gmail.com >
2023-12-11 14:18:27 -05:00
Roy-043
59753260c9
Draft: implement new get_param functions (step 1)
...
See #11677
2023-12-11 19:31:34 +01:00
sliptonic
6d0db27bd9
Merge pull request #11693 from RohanMishra315/patch-6
...
Update ShapeFix_FixSmallFacePy.xml
2023-12-11 11:23:59 -06:00
Roy-043
53ff79215c
Gui: MarkerBitmaps fix DIAMOND_FILLED_20_20
...
Also made DIAMOND_FILLED_25_25 sharper.
See: https://github.com/FreeCAD/FreeCAD/pull/11524#issuecomment-1847906082
2023-12-11 18:23:41 +01:00
sliptonic
fc1c3e005e
Merge pull request #11683 from chennes/fixTDMissingBOPAlgoBuilder
...
Part: Add BOPAlgo_Builder.hxx to OpenCascadeAll.h
2023-12-11 11:22:17 -06:00
sliptonic
2dbf73989a
Merge pull request #11673 from bgbsww/bgbsww-patch-20
...
Tweak section tolerance to make base layer of paths work again
2023-12-11 11:12:31 -06:00
IMO
42740e9c56
bugfix: exit() is not async-signal-safe!
2023-12-11 18:10:41 +01:00
sliptonic
6ed5d3bc8b
Merge pull request #11670 from mwganson/macroexecute
...
[Core][MacroExecuteDialog]File chooser should be folder chooser for s…
2023-12-11 11:10:28 -06:00
bgbsww
8cd29179f8
Add missing initialization of MirrorPlane on non sketch objects ( #11638 )
2023-12-11 11:07:03 -06:00
sliptonic
6af7c25117
Merge pull request #11633 from mwganson/partmirroring
...
[Part::Mirror] fix bug where selection gate was not getting removed o…
2023-12-11 11:05:56 -06:00
Adrián Insaurralde Avalos
6b6700a43b
Merge pull request #11599 from oursland/ci-update
...
CI: Add CMake Presets, Ubuntu-conda, Windows-conda, and macOS-conda.
2023-12-11 14:01:04 -03:00
Rohan Mishra
cf3f2dcda0
Update ShapeFix_WirePy.xml
...
Fix the issue and Update ShapeFix_WirePy.xml.
2023-12-11 17:43:46 +01:00
Rohan Mishra
94b7c48dbe
Update ShapeFix_WirePy.xml
...
Issues #11184
Updated the docs of ShapeFix_WirePy.xml
2023-12-11 17:43:46 +01:00
André Caldas
89dbab9b0e
Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
...
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.
The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).
Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".
The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
Roy-043
7bee0fbde6
Merge pull request #11702 from Roy-043/Draft-increase-DXF-Python-library-version-to-1.42
...
Draft: increase DXF Python library version to 1.42
2023-12-11 13:02:10 +01:00
Roy-043
ea59cce36e
Draft: increase DXF Python library version to 1.42
...
See: https://github.com/yorikvanhavre/Draft-dxf-importer/pull/28
2023-12-11 12:40:47 +01:00
Roy-043
4d00c0f43c
Draft: new get_param function with defaults
...
This PR introduces a new get_param function. For its default values it checks a dictionary largely filled by reading the preferences UI files. The goal is to have all defaults in one place to avoid inconsistencies. The dictionary is created once and then stored in a global variable.
Once merged this function will be implemented in Draft and Arch. The get_param function in utils.py will become obsolete.
Related issue: #10176
2023-12-11 10:18:50 +01:00
Roy-043
135fe61d7d
Merge pull request #11696 from Roy-043/Draft-minor-improvement-to-prefs-layouts
...
Draft: minor improvement to prefs layouts
2023-12-10 15:44:22 +01:00
Roy-043
f7fa76b975
Draft: minor improvement to prefs layouts
2023-12-10 15:22:43 +01:00
Roy-043
f1f3530f44
Merge pull request #11694 from Roy-043/Draft-Introduce-DefaultAnnoScaleMultiplier-parameter
...
Draft: Introduce DefaultAnnoScaleMultiplier parameter
2023-12-09 19:40:53 +01:00
Roy-043
79eaa01032
Draft: Introduce DefaultAnnoScaleMultiplier parameter
...
This parameter replaces DraftAnnotationScale.
The parameter can be changed in the preferences and with the Draft_SetStyle command.
2023-12-09 19:17:36 +01:00
Rohan Mishra
6582672f9e
Update ShapeFix_FixSmallFacePy.xml
...
Updated the docs of ShapeFix_FixSmallFacePy.xml
2023-12-09 22:24:40 +05:30