Commit Graph

115 Commits

Author SHA1 Message Date
Roy-043
d065f13f67 Draft: Updates related to the PlaneGui class (step 2)
Related issue:
#5603.

Additionally:
Fixed the issue where the texts of Arch_Space objects were not exported to DXF.
2023-10-23 16:25:12 +02:00
Roy-043
3395b2e2f6 Draft: fix multiline offset for rotated SVG texts
Forum topic:
https://forum.freecad.org/viewtopic.php?p=711184#p711184
2023-10-09 13:27:54 +02:00
CalligaroV
457b676972 [Feature Request] [Draft] [UI/UX] Remove the center arrow on radial dimensions (#10655)
Related to issue #7573

Forum discussion

https://forum.freecadweb.org/viewtopic.php?p=631252#p631252

These modifications don't add the new properties suggested on the issue mentioned above and suggested on the forum discussion but just remove the center arrow

Other info and discussion can be found at https://gitlab.com/calligarov/FreeCAD/-/merge_requests/1
2023-09-13 15:27:51 +02:00
Roy-043
b83e401836 Draft: Avoid dictionary.keys() where possible (#10160) 2023-08-13 11:46:25 +02:00
Roy-043
7d15cee092 Draft: Fix SVG "Edges not ordered" issue (#10116) 2023-08-12 15:30:54 +02:00
luzpaz
a6202bc3ce Fix various typos 2023-08-08 14:25:00 +02:00
Roy-043
dc7b018e75 Draft: Improve downgrading of PD bodies (#9934) 2023-07-18 10:46:10 +02:00
Roy-043
d7923d2f56 Draft: get_svg: loose edges in obj with faces also received a fill (#9695) 2023-05-30 08:13:47 +02:00
Yorik van Havre
8049752bb9 Draft: Better svg linestyle settings - fixes #6733 2023-05-10 10:14:33 +02:00
Yorik van Havre
5f3b77cbd7 Merge pull request #9376 from Roy-043/Draft-Remove-Drawing-WB-related-code-from-DXF-related-files
Draft: Remove Drawing WB related code from DXF related files
2023-04-28 12:48:08 +02:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
Roy-043
35cca8d2d7 Draft: Remove Drawing WB related code from DXF related files 2023-04-24 16:01:10 +02:00
luzpaz
0e1530be59 Draft: linting bad indentations, superflous markup (#9313) 2023-04-19 09:48:57 +02:00
mosfet80
e9c1a1600a [Draft] Remove obsolete code related to Drawing WB
* [Draft] Remove obsolete code related to Drawing WB




remove unused elif

* [Draft] Remove obsolete code related to the Drawing WB

* Update preferences-draftvisual.ui

Also remove the template label.

* Update utils.py

Remove reference to "template"

* Remove Draft_Drawing.svg from Draft.qrc

---------

Co-authored-by: Roy-043 <info@b-k-g.nl>
Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>
2023-04-03 16:36:23 +02:00
Roy-043
b5ade2c085 [Draft] Remove obsolete decode code (#9106) 2023-03-28 21:03:33 +02:00
Yorik van Havre
a095085258 Draft: Removed six module 2023-02-24 13:20:58 +01:00
Roy-043
b461e81dc6 [Draft] typo: object name should be capitalized (#8484) 2023-02-14 15:44:26 +01:00
Roy-043
6da0eec51a Draft: subelement mode ignored nesting (#8319) 2023-02-02 11:49:55 +01:00
Roy-043
f9cdaaf3d9 Draft: fix issue with undo (#8267) 2023-01-31 21:38:19 +01:00
luzpaz
a4239ccfcf Draft: fix trailing whitespace 2023-01-22 20:26:40 +01:00
Roy-043
1eddd842f9 Draft: rotate.py: remove Placement.rotate() workaround (#8230) 2023-01-22 16:29:15 +01:00
Roy-043
f7a072b7c7 Draft: Fix and improve Draft_AnnotationStyleEditor (#8207)
* Draft: Fix and improve Draft_AnnotationStyleEditor

* Draft: Fix and improve Draft_AnnotationStyleEditor 2
2023-01-21 10:28:47 +01:00
Yorik van Havre
858abcdd25 Merge pull request #8081 from Roy-043/Draft-Fix-inconsistent-properties-of-Draft-annotations
Draft: Fix inconsistent properties of Draft annotations
2023-01-13 11:47:00 +01:00
jim
9e2856348e Make upgrades of type "draftify" return the new object (like the other
upgrade types do)
2022-12-26 13:32:26 -08:00
Roy-043
d3955711c5 Draft: Fix inconsistent properties of Draft annotations 2022-12-23 16:49:56 +01:00
Roy-043
6f3183f793 Draft: fix move AngularDimension bug (#8047) 2022-12-15 12:04:12 +01:00
Chris Hennes
a4bb55a34e Draft: Remove py2 references 2022-11-09 14:08:54 +01:00
Roy-043
b280f2fb9e Draft: fix rectangle with face offset bug 2022-10-30 12:49:28 +01:00
Roy-043
f62f335906 Draft: Fix alignment of angular dimension arrows in svg.py 2022-10-10 21:07:43 +02:00
Roy-043
02170da098 Update rotate.py
Workaround for `faulty` implementation of Base.Placement.rotate(center, axis, angle).
See: https://forum.freecadweb.org/viewtopic.php?p=613196#p613196
2022-07-28 13:46:26 +02:00
Roy-043
01d4186535 Draft: Fix handling of groups on move-copy and rotate-copy 2022-07-26 11:26:50 +02:00
Uwe
32ab100ed5 Mod: remove some superfluous Boolean checks (#7213)
* Mod: remove some superfluous Python Boolean checks
2022-07-19 01:35:12 +02:00
Roy-043
b9f5870c5c Draft: Fix join.py 2022-07-08 10:52:05 +02:00
Matthijs Kooijman
52e7dafedb Draft: Fix mixup of TextAlignment vs Justification for Labels
TextAlignment is the vertical alignment, while Justification is the
horizontal alignment. here, get_text was passed the vertical, while it
expected the horizontal. This caused the alignment of a Label to be
wrong in the resulting SVG (e.g. in a TechDraw draft view).

This seems to have been broken since SVG support for Labels was first
introduced in commit d6f8ded4ca (Initial work, only text (no lines)).
2022-03-22 14:46:50 +01:00
Matthijs Kooijman
f62d0c4637 Draft: Fix SVG generation for label objects
Label objects would produce invalid SVG XML, because the stroke-linecap
property was added as if it was a style (with : and ;), but it was
inserted in the XML tag directly, rather than inside the style attribute
value. The invalid SVG prevented for example a TechDraw draft view from
rendering when it contained a label.

This was added in commit 6a7912d399 (Draft: Using square endcaps for
lines in SVG output).

This stroke-linecap is supported both as a presentation attribute inside
the style or a XML attribute, so for consistency with the surrounding
attributes, it is made a normal attribute, rather than putting it inside
the style.

See also https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap
2022-03-22 14:38:36 +01:00
Yorik van Havre
419594a5dc Draft: Fixed error in SVG rendering of LinkedArrays - fixes #6516 2022-03-10 13:34:18 +01:00
Yorik van Havre
07783e463d Merge pull request #6406 from marioalexis84/draft-drawing_techdraw
Draft: Replace Drawing functions with TechDraw functions
2022-02-21 11:10:36 +01:00
Roy
84b3003e8e Draft: Housekeeping: call 'make' functions with new name (4) 2022-02-20 22:31:08 -06:00
marioalexis
b4c20bce20 Draft: Replace Drawing functions with TechDraw functions 2022-02-20 16:34:29 -03:00
Roy
f59011bfea Draft: Housekeeping: call 'make' functions with new name 2022-02-10 16:44:37 +01:00
Yorik van Havre
a4c8118bad Draft: Upgrade: make compound when unable to turn edges to wire - fixes #3483 2022-02-03 16:13:01 +01:00
Yorik van Havre
850cb927a3 Draft: fixed tstroke error in get_svg 2022-01-25 11:16:44 +01: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
Roy-043
473c9d2234 Draft: fix scale.py copy_scaled_edge
The `copy_scaled_edge` function should return a wire, not an edge. The `join_wires` function, called in `copy_scaled_edges`, can only handle wires.
2022-01-06 17:38:41 +01:00
Yorik van Havre
b64b3be330 Arch: Fixed display of axis bubbles and texts on DXF export and Techdraw pages 2021-12-16 15:55:58 +01:00
Roy
ce0563b385 Draft: Fix Part_Line offset issue 2021-12-10 02:40:16 +01:00
luz paz
bcc2873fb9 Draft: fix doxygen typos 2021-12-07 22:53:54 -06:00
Yorik van Havre
960c626b1d Draft: Use BuildingParts as group in Draft SVG projections 2021-08-26 14:54:33 +02:00
Roy-043
259868dfa9 Draft: Fixed units mismatch when moving Draft_Point objects
obj.X.Value instead of float(obj.X)
2021-08-01 13:13:35 +02:00
Roy-043
20edc524f2 Draft: Fixed units mismatch when moving Draft_Point objects. 2021-08-01 13:13:35 +02:00