carlopav
e4c6949520
Draft: fix Statusbar snap and scale if Draft is the default startup wb
...
ref: https://forum.freecadweb.org/viewtopic.php?f=23&t=43990&start=50#p396139
2020-05-18 12:19:27 +02:00
carlopav
262601a194
Arch: fix regression in SectionPlane
2020-05-18 12:18:36 +02:00
vocx-fc
0f5b61e280
Draft: check GUI in upgrade function before using viewprovider
...
Also make various improvements in style, PEP8, return value
is now a tuple of lists instead of a list of lists.
Delay the import of other modules like `Part` and `DraftGeomUtils`
using the `LazyLoader` class.
Update the Gui Command as well.
2020-05-18 12:17:59 +02:00
vocx-fc
bb4a7d783c
Draft: check GUI in downgrade before using viewprovider
...
Also make various improvements in style, PEP8, return value
is now a tuple of lists instead of a list of lists.
Update the Gui Command as well.
2020-05-18 12:17:59 +02:00
vocx-fc
cb984ec492
Draft: check GUI before touching the ViewObject in cut
2020-05-18 12:17:59 +02:00
vocx-fc
1e29867ceb
Draft: fix button and icon spacing in AnnotationStyleEditor
...
The maximum button size was too small to fit the icon
together with the text, if the text size was large.
Also added more tooltips to all widgets of the editor.
2020-05-18 12:16:33 +02:00
vocx-fc
015f51df29
Draft: cleanup code of AnnotationStyleEditor
...
Introduced in d087ccfa54, 7aa42a4406, 1e8d5d0355.
Make it PEP8 compliant, and shorten line lengths.
It is based on `GuiCommandSimplest` to inherit basic behavior
such as `IsActive` returning `True` when a document exists.
2020-05-18 12:16:33 +02:00
wmayer
bd051135df
Part: [skip ci] get n-th derivative of a curve via Python
2020-05-17 23:25:07 +02:00
wmayer
065619d243
Part: [skip ci] add methods to determine continuity
2020-05-17 21:57:25 +02:00
wandererfan
393cf75276
[TD]minor code clean ups
2020-05-16 07:42:45 -04:00
wandererfan
530e2a1837
[TD]Getters/Setters for CosmeticVertex attribs
2020-05-16 07:42:45 -04:00
wandererfan
6734bffcc6
[TD]Eliminate replace fcns for Cosmetic objs
2020-05-16 07:42:45 -04:00
wandererfan
eaf2f0e8a4
[TD]Simplify Cosmetic List & PyObject handling
2020-05-16 07:42:45 -04:00
Zheng, Lei
303bf40f09
Gui: improve property editor status update
2020-05-16 12:15:49 +02:00
Bernd Hahnebach
ac8ffcb9f4
FEM: add modules to migrate old FEM app and gui objects
2020-05-16 08:29:46 +02:00
Bernd Hahnebach
bb0d9435f1
FEM: python base view provider, improve error handling
2020-05-16 08:29:40 +02:00
Bernd Hahnebach
77e9e13d22
FEM: gmsh mesh obj, automaticlly add all properties
2020-05-16 08:29:33 +02:00
Bernd Hahnebach
46139b2ce5
FEM: materialobject, automaticlly add all properties
2020-05-16 08:29:25 +02:00
wmayer
720b3073e7
Part: [skip ci] copy visual attributes of reversed shape
2020-05-15 19:26:24 +02:00
wmayer
b6ccc9d7ac
fixes #0004316 : PartWB, "Reverse shapes" command reset position [skip ci]
2020-05-15 19:25:43 +02:00
vocx-fc
604de5c5b2
Draft: update snake_case for unit tests
...
Also fix the name of certain functions.
Do not import `DraftFillet` any more as it's just kept
for compatibility purposes.
Do not test OCA nor AirfoilDAT as it's very improbable
that these formats will gain more support any time soon.
2020-05-15 14:44:48 +02:00
vocx-fc
45bc9233c7
Draft: use snake case functions in draft_test_objects script
2020-05-15 14:44:48 +02:00
vocx-fc
da8380a8c8
Draft: small additions to the draft_test_object script
...
Move the docstring, set the frame as a private function,
and set `MakeFace` to `False`.
Use user's home directory to create the file. Move the order of
the parameters of the function.
2020-05-15 14:44:48 +02:00
carlopav
0e9d274bf4
Draft: various cleanup
...
Mainly added an empty line at the end of each file and changed docstrings.
2020-05-15 14:43:26 +02:00
carlopav
de96fe0658
Draft: moved ConvertDraftText to utils.py
2020-05-15 14:43:26 +02:00
carlopav
1733b6dc74
Draft: split DrawingView from Draft.py
2020-05-15 14:43:26 +02:00
carlopav
a45d136f62
Draft: move get_DXF to utils.py
2020-05-15 14:43:26 +02:00
carlopav
704140e422
Draft: moved getrgb to utils.py
2020-05-15 14:43:26 +02:00
carlopav
767413997d
Draft: cleanup of Array properties after splitting
2020-05-15 14:43:26 +02:00
carlopav
fe29205e60
Draft: split Array from Draft.py
2020-05-15 14:43:26 +02:00
carlopav
06fb53a9ee
Draft: cleanup of Draft.py
2020-05-15 14:43:26 +02:00
carlopav
a4b5fb2cd4
Draft: split PointArray from Draft.py
2020-05-15 14:43:26 +02:00
carlopav
ebc84af368
Draft: split Path Array and viewprovider Array from Draft.Py
...
Draft: fix typo in PathArray
2020-05-15 14:43:26 +02:00
carlopav
d124bfce4a
Draft: split array function from Draft.py
2020-05-15 14:43:26 +02:00
carlopav
c53f447f58
Draft: Split DraftLink from Draft.py
2020-05-15 14:43:26 +02:00
carlopav
85de732567
Draft: updated ocumentation of Draft Scale function
2020-05-15 14:43:26 +02:00
carlopav
920512692b
Draft: split sub_object_move from Draft.py
2020-05-15 14:43:26 +02:00
carlopav
10efbcb207
Draft: split sub_object_move from Draft.py
2020-05-15 14:43:26 +02:00
sliptonic
cb1b0fd3c2
Merge pull request #3464 from Russ4262/BoundaryDressup_fix
...
Path: Fix for `BoundaryDressup` and fix for `Profile` when extrude vector is roughly zero
2020-05-14 09:30:46 -05:00
Yorik van Havre
dfd098a714
Arch: Allow to skip import of IFC types from python
2020-05-14 11:49:36 +02:00
Russell Johnson
494bb6cba6
Path: Fix for .extrude() vector roughly zero
2020-05-13 21:55:06 -05:00
Russell Johnson
75cac30649
Path: Add if edge: test clause
...
`If edge:` handles 'NoneType' edges returned from `PathGeom.edgeForCmd()`.
Includes some PEP8 formatting.
2020-05-13 21:55:06 -05:00
Russell Johnson
3593de8a9f
Path: Fix related to linkStockAndModel checkbox.
...
The StockEdit class is reused by BoundaryDressup, and this checkbox does not exist in its UI panel.
2020-05-13 16:34:06 -05:00
Bernd Hahnebach
5ff03a930d
FEM: code conventions, update flake8 command
2020-05-13 18:00:45 +02:00
Bernd Hahnebach
cf21db6056
FEM: App and Gui init script:
...
- improve imports
- add comments
- some code formating
2020-05-13 17:58:05 +02:00
Yorik van Havre
a7c1d07a21
Arch: Fixed export of non-ortho extrusions to IFC
2020-05-13 14:12:37 +02:00
Zheng, Lei
dcc04f35d0
Gui: reset model transformation scaling in SoAutoZoomTranslation
2020-05-13 13:21:58 +02:00
vocx-fc
fc469186e7
Draft: migrate individual properties
...
Since we know how the old class looks like,
we can write code to save the value of the older properties,
and then remove them.
Then we can assign the new class, which will create new properties,
and then we can assign the old values to these.
This can be done for both the proxy object and
for the viewprovider.
2020-05-13 11:37:56 +02:00
vocx-fc
1779b261bf
Draft: use onDocumentRestored to migrate the Fillet
...
Identify the previous object as `DraftFillet.Fillet`
and then use the new proxy class `draftobjects.fillet.Fillet`
and new viewprovider `view_fillet.ViewProviderFillet` on it.
2020-05-13 11:37:56 +02:00
vocx-fc
7ff41b51a9
Draft: remove old DraftFillet class, and make it a redirect
...
Remove the make function that creates the old object,
its corresponding Gui Command, and the old `DraftFillet.Fillet`
proxy class, which now is a redirection to the new `Fillet`
class defined in `draftobjects.fillet`.
Also change the unit test, and the `draft_test_object` script
to run `Draft.make_fillet`.
2020-05-13 11:37:56 +02:00