Commit Graph

177 Commits

Author SHA1 Message Date
Roy-043
2f6b72bf01 Draft: ShapeString: improve ObliqueAngle (#10811)
Calculation of the justification required the use of `optimalBoundingBox` and should happen after applying the oblique angle.
2023-09-26 12:53:53 +02:00
Yorik van Havre
5e78241245 Merge pull request #10783 from Roy-043/Draft-ShapeString-add-ObliqueAngle-property
Draft: ShapeString: add ObliqueAngle property
2023-09-25 10:54:53 +02:00
Roy-043
4058fe1566 Draft: ShapeString: add ObliqueAngle property (improvement) 2023-09-24 19:04:32 +02:00
wmayer
ef9936a940 App: fixes #10460: App::PropertyPythonObject is not saving data
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class.
Thus rename them to 'loads' and 'dumps'
2023-09-24 10:56:35 -05:00
Roy-043
e7755bb290 Draft: ShapeString add ObliqueAngle property
Fixes #5656.
2023-09-23 11:39:27 +02:00
Roy-043
3b7698d77f Draft: shape2dview: avoid issues with intersecting solids
Add `Shape.SubShapes` instead of a copy of the shape. This avoids cut problems if there are intersecting solids.

Forum topic:
https://forum.freecad.org/viewtopic.php?t=81240
2023-09-17 18:59:20 +02:00
Yorik van Havre
2556801938 Draft: Workaround failing multifuse in shape2Dview (#10478) 2023-09-04 10:45:56 +02:00
Chris Hennes
fcd622393a Draft: Translate label type combobox (#10228) 2023-08-17 15:36:37 +02:00
Roy-043
fff0ca7217 Draft: Add Justification option to ShapeString (#10233) 2023-08-16 17:08:49 +02:00
Roy-043
e1829be977 Draft: fix props_changed_placement_only for attached clones and similar (#9623)
For an attached object whose Shape depends on one or more source objects props_changed_placement_only should always return False.
2023-05-21 16:15:55 +02:00
Roy-043
4a0b1a670d Draft: ShapeString: use FaceMakerBullseye instead of current face algo (#9593) 2023-05-17 18:19:00 +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
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
BHennen
74b9d81e7d Add offset options to Draft PathArray (#8295)
* Add offset options to Draft PathArray

Allows user to specify a starting and ending offset to items in Draft PathArrays.

* [Draft] path array offset

---------

Co-authored-by: Roy-043 <info@b-k-g.nl>
2023-03-11 15:54:25 +01:00
Roy-043
9edb675328 [Draft] fix regression introduced with #8433 (#8840) 2023-03-11 13:35:24 +01:00
Roy-043
d4e76f9c07 [Draft] fix #8433 regression (#8452) 2023-02-12 14:22:52 +01:00
Roy-043
84e609b469 [Draft] some arrays did not have a Count property (#8433) 2023-02-11 17:09:02 +01:00
Roy-043
f9cdaaf3d9 Draft: fix issue with undo (#8267) 2023-01-31 21:38:19 +01:00
Roy-043
633a89debf Draft: V0.18 VisGroups were not handled (#8234) 2023-01-23 11:27:52 +01:00
luzpaz
a4239ccfcf Draft: fix trailing whitespace 2023-01-22 20:26:40 +01:00
Roy-043
af0ec2aec6 Draft: Improvements related to #8081 (#8211)
DisplayMode of Text was not updated. Some houskeeping
2023-01-20 20:33:35 +01:00
Roy-043
d3955711c5 Draft: Fix inconsistent properties of Draft annotations 2022-12-23 16:49:56 +01:00
Timo Kinnunen
d08f1f81a7 Draft: make tangent vector affect ExtraTranslation
Changes as per discussion in the PR to fix issue #7506 with @Roy-043.

Co-Authored-By: Roy-043 <70520633+Roy-043@users.noreply.github.com>
2022-10-28 16:21:39 +02:00
Yorik van Havre
e1ef5ef69d Merge pull request #7635 from Jolbas/master
Draft: Accept 1 in NumberPolar parameter
2022-10-26 09:23:25 +02:00
Jolbas
028c256300 Accept 1 in NumberPolar parameter
Setting the NumberPolar parameter to 1 resulted in a ZeroDivisionError.
2022-10-23 21:44:57 +02:00
Roy-043
3a64b900d2 Update point.py 2022-10-18 12:36:29 +02:00
Roy-043
293614895b Draft: Make Std_TransformManip work for Draft_Point 2022-10-17 19:48:05 +02:00
Roy-043
71e3fa5609 Draft: Fix path array float math issue 2022-10-14 21:08:29 +02:00
Roy-043
69d4c647c0 Draft: Point array: Take placement of point object into account and accept more point object types 2022-10-12 11:18:12 +02:00
Roy-043
f6122965f2 Draft: Fix several path array issues 2022-09-17 10:08:41 +02:00
Yorik van Havre
ac2c34eb32 Merge pull request #7267 from Roy-043/Draft-Avoid-faulty-Base.Placement.rotate()
Draft: Avoid faulty Base.Placement.rotate() in draftobjects.array.py
2022-09-05 11:16:13 +02:00
Roy-043
17b4438e94 Update array.py
Oops... removed to print() statements.
2022-08-12 12:38:13 +02:00
Roy-043
31b7336f40 Update array.py
Updated to use the new implementation of  Base.Placement.rotate().
2022-08-12 12:34:46 +02:00
Yorik van Havre
a5c64777b1 Arch: Removed leftover debug messages 2022-07-29 14:01:56 +02:00
Yorik van Havre
99da0738a7 Arch: added ExclusionNames property to Shape2DViews 2022-07-28 14:09:41 +02:00
Roy-043
f03c89542f Draft: Avoid faulty Base.Placement.rotate() in draftobjects.array.py 2022-07-28 13:56:05 +02:00
marioalexis
79b7bfd5d0 Draft: Remove Python 2 type support 2022-03-28 18:02:23 -03:00
Matthijs Kooijman
b7c94992c9 Draft: Simplify using getattr instead of hasattr
Using the default argument supported by getattr makes this code a bit
simpler and probably (ever so slightly) faster.

See https://forum.freecadweb.org/viewtopic.php?f=10&t=58611 for previous
discussion.

This is not an exhaustive change, these are just a few I encounted while
working with the code.
2022-03-22 14:46:50 +01:00
Roy-043
6a1d81f62b Draft: Fix Draft_Line Length is zero bug
When changing the Length of a Draft_Line to f.e. 0.5 the input of the zero resulted in a zero length line.
2022-02-24 12:26:42 +01:00
marioalexis
b4c20bce20 Draft: Replace Drawing functions with TechDraw functions 2022-02-20 16:34:29 -03:00
mwganson
56ba572850 Draft: pointarray set Count property during execute 2022-01-26 20:32:31 -06:00
marioalexis
9c4661fefe Draft: Add extension 'AttachExtensionPython' to WP proxy 2022-01-10 23:11:30 -03:00
Zheng, Lei
875452c020 Draft: support 'CopyOnChange' in Draft link array 2021-12-21 21:41:02 -07:00
Roy
418ca4a235 Draft: Draft_Label fix label type list 2021-12-10 18:40:43 +01:00
Roy-043
21a8c21020 Draft: fix regression draftlink.py (#5220)
* Draft: fix regression draftlink.py

This PR fixes a regression introduces with #5180.

Using transformShape is the correct solution.
2021-12-08 07:37:23 -06:00
Roy-043
5435d3b0ee Draft: fix array issue with Draft_Point and Part_Vertex 2021-11-16 17:00:54 +01:00
luz paz
8aab47fb06 Draft: Fix superfluous whitespace in translations + misc. typos 2021-10-30 15:20:28 -04:00
Roy-043
844597c08e Draft: improve hatch matrix algo 2021-10-13 17:38:08 +02:00
Roy-043
2196179cb1 Update hatch.py 2021-10-05 15:57:00 +02:00