Commit Graph

21126 Commits

Author SHA1 Message Date
vocx-fc
74e109c614 Part: update the part_test_objects script
This script is based on a similar script
created for the Draft Workbench.
2020-05-20 09:34:39 +02:00
Yorik van Havre
5aa6c4e1da Arch: Misc improvements to curtain wall
- Can be based on an edge like normal wall
- Now has a 'host' property to embed into another object (tree only)
- Mullions have different height and width properties
- Mullions or panels can be disabled
2020-05-19 13:58:46 +02:00
wmayer
6c020f554d + fix Enumeration::contains: the current index is irrelevant when searching for an entry in the enumeration
+ only print a warning if the enumeration is not empty but the restored index is < 0
2020-05-19 08:45:02 +02:00
Bernd Hahnebach
e650cefbe3 FEM: migrate, improve migration class 2020-05-18 21:17:49 +02:00
Bernd Hahnebach
702abe669f FEM: cmake, sort modules 2020-05-18 21:17:49 +02:00
Bernd Hahnebach
75b1f80096 FEM: objects create, sort methods 2020-05-18 21:17:49 +02:00
sliptonic
cb6c6705ac Merge pull request #3477 from gwicke/pathops_ui_fix
[path] Small fix in PathOpGui
2020-05-18 09:44:21 -05:00
sliptonic
1ee600e5a9 Merge pull request #3476 from gwicke/linuxcnc_post_opt
Path: LinuxCNC postprocessor scalability
2020-05-18 09:43:13 -05:00
Yorik van Havre
870ba0c545 Arch: Fixed Pipe positioning 2020-05-18 15:24:08 +02:00
Yorik van Havre
b0775ee7ce Arch: Fixed regression in compound walls 2020-05-18 15:04:26 +02:00
Yorik van Havre
aa3afc1824 Arch: Removed wrong warning in walls 2020-05-18 13:28:55 +02:00
wmayer
196251a11c Part: [skip ci] get n-th derivative of a surface via Python 2020-05-18 13:17:26 +02:00
vocx-fc
623cd5df35 Draft: activate new array make functions
They are made available in the `Draft` namespace,
and are also used in the unit tests, the test script,
and the GuiCommands.
2020-05-18 12:42:10 +02:00
vocx-fc
3172e82dc1 Draft: move circular, ortho, and polar make functions
Previously they were in `draftobjects`, but since they
don't define new objects, just create objects,
they are moved to `draftmake`.

Also ajust the `CMakeLists.txt` and the corresponding Gui Commands
which use these make functions.

These functions internally use the `Draft.makeArray` function.
We will put comments as reminders so that when this function
is moved to its own module, we can update the derived functions.
2020-05-18 12:42:10 +02:00
vocx-fc
79927f3504 Draft: restructure the draft test script
Add new function `_create_objects`.

Change annotations to use `App::Annotation` instead of `Draft Text`.
2020-05-18 12:41:24 +02:00
Syres916
f40abe153a [AddonManager] Fix bug when Multiple Wbs updated
See discussion https://forum.freecadweb.org/viewtopic.php?f=3&t=46322
2020-05-18 12:35:34 +02:00
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
Gabriel Wicke
57d1d28487 Merge pull request #1 from Russ4262/patch-1
Path: Extend fix to `updateVisibility()`
2020-05-17 19:39:22 -07:00
Russell Johnson
4a899d2934 Extend fix to updateVisibility() call
Call originates in PathOpGui module.
2020-05-17 21:20:04 -05:00
Gabriel Wicke
a8398389bb [path] Small fix in PathOpGui
Fix a bad call to page.updateVisibility
2020-05-17 17:11:14 -07:00
wmayer
bd051135df Part: [skip ci] get n-th derivative of a curve via Python 2020-05-17 23:25:07 +02:00
Gabriel Wicke
979a32800d Path: LinuxCNC postprocessor scalability
- Do not show editor when gcode size exceeds 100kb. The poor editor
  widget cannot handle that much output, and will hang FreeCAD.
- Avoid quadratic behavior in output accumulator. While Python greater
  than 2.7 avoids quadratic behavior in string accumulators, this optimization
  is defeated when the string is forced to be materialized to contiguous
  memory, as was done by the `.trim()`. As a result, we got quadratic complexity,
  ensuring that large jobs would never successfully be post-processed.
2020-05-17 13:31:44 -07: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