Commit Graph

10460 Commits

Author SHA1 Message Date
Yorik van Havre
0d033757ae py3: App: files A-C ported to python3 2017-05-10 20:49:10 +02:00
WandererFan
36960df73e Fix #2971 segfault on hide() current page from Python 2017-05-10 17:43:48 +02:00
WandererFan
5a0f53d75a Fix #2972 Export Pdf Page Not in Foreground
exposes TechDrawGui.exportPageAsPdf(page,file)
also adds TechDrawGui.exportPageAsSvg(page,file)
2017-05-10 17:43:48 +02:00
WandererFan
5cc00e0c4d Fix Dimension double child collection
if a dimension references 2 geometries in a View - ie
Vertex-Vertex - only count it as 1 child of View
2017-05-10 17:43:48 +02:00
WandererFan
76280891a1 DrawGeomHatch improvements
-draw & align dash patterns correctly on all QPainters using QGPathItem
-Allow patterns to start with space
-ensure horiz & vert lines pass through pattern origin
-Scalable complex patterns
2017-05-10 17:43:48 +02:00
WandererFan
ae269dfc28 Prevent ghost centre marks in ViewDetail 2017-05-10 17:43:48 +02:00
WandererFan
f60464e545 implement detail view highlight in base view 2017-05-10 17:43:48 +02:00
WandererFan
eb34dc5103 fix confusing class name 2017-05-10 17:43:48 +02:00
WandererFan
75397d9e43 clean up GeomHatch feature, gui & dialog
Refactor code, allow dialog to edit feature, update graphics on change
prep for dash line start positioning.
2017-05-10 17:43:48 +02:00
WandererFan
0ab0a92bf2 Correct property names in Prefs 2017-05-10 17:43:48 +02:00
WandererFan
24698be5ae Apply HiRez mods to ViewClip 2017-05-10 17:43:48 +02:00
wmayer
980145c495 make creation of sub-elements in selection view more flexible 2017-05-10 15:01:36 +02:00
wmayer
e8d14012f5 fix implementation of Module attribute 2017-05-10 11:23:34 +02:00
wmayer
03bf3ac606 Expose method to Python to get property name of main geometry
fix inheritance of MeshFeaturePy
fix inheritance of PartFeaturePy
remove useless test() method
implement getPyObject in GeoFeature in case a sub-class doesn't implement it
2017-05-10 10:36:22 +02:00
Yorik van Havre
19b14520e9 Draft: New button to modify working plane during Wire drawing 2017-05-09 23:36:41 -03:00
Yorik van Havre
84a9f74633 Added a 'show' option to the Selection View's context menu 2017-05-09 19:55:40 -03:00
Yorik van Havre
4174aac5ab Arch: Changing the Length of a Wall now affects its baseline 2017-05-09 19:32:48 -03:00
wmayer
0ad2e47f4d add command to merge point clouds 2017-05-08 21:50:03 +02:00
DeepSOIC
164b8c7f93 Draft: use viewer.redraw() in interactive operations
improves responsiveness of Draft on Windows dramatically
2017-05-08 11:44:41 -03:00
DeepSOIC
1137d5e6a8 Gui: expose ViewerPy.redraw() method 2017-05-08 11:44:41 -03:00
Yorik van Havre
73f2307390 Draft: Fixed encoding in importDXF message - issue #3019 2017-05-08 10:51:04 -03:00
Jean-Marie Verdun
4355b2864c Compute the document before inserting STEP file.
Consider that inserted Tree Element are computed and remove the Touched flag
before recomputing lately the document
This is accelerating the STEP file
2017-05-07 21:45:31 +02:00
Jean-Marie Verdun
6642022bea Step Reader Improvements
Call new functions which allows to allocate in a single call Object into the document instead of multiple calls
Put into a Compound, STEP Compound instead of a Sub Tree which was creating far
too much object (aka replicate what CAD Assistant and EDrawings are doing when
opening a complex STEP tree)
2017-05-07 21:37:48 +02:00
wmayer
1543566716 fix memory leak in DocumentObject::execute and return ASAP on errors 2017-05-07 16:21:41 +02:00
Abdullah Tahiri
91a6dd7285 Base::Type extension to get Type by key 2017-05-07 16:06:39 +02:00
wmayer
3e862bd557 Add addObjects to add multiple objects in one step 2017-05-07 16:06:39 +02:00
Yorik van Havre
4f044dcbe4 py3: Gui: files P-Z ported to python3 2017-05-06 20:11:31 +02:00
looooo
a3539c5168 py3: resolve dangling-pointer issues 2017-05-06 17:23:27 +02:00
Yorik van Havre
aa3f9288d6 py3: Gui: files A-P ported to python3 2017-05-06 17:23:27 +02:00
looooo
226dd17e5f py3: path: some fixes to make path py3-compileable 2017-05-06 17:11:52 +02:00
looooo
6ba65d4d63 py3: Fem: PyGui: use relative imports for PyGui 2017-05-06 15:30:46 +02:00
triplus
d27afa1ac7 Improved persistent toolbars start logic 2017-05-06 15:22:24 +02:00
DeepSOIC
6e39a78721 Gui: GestureNav: disable rotation when over a dragger 2017-05-06 12:48:26 +03:00
DeepSOIC
2d614154a4 Gui: GestureNav: fix constant hand cursor 2017-05-06 02:15:45 +03:00
Yorik van Havre
297b20e9b5 Arch: small fix to last commit 2017-05-05 12:52:17 -03:00
Yorik van Havre
aa65230d4c Arch: Fixed multilayer wall colors + added control in wall creation panel + fixed default roles 2017-05-05 12:45:41 -03:00
Yorik van Havre
37a62b4096 Draft: Fixed snapping to intersection of Arch axes 2017-05-05 10:42:48 -03:00
Abdullah Tahiri
2c5bc5d69a Exception: FUNCSIG instead of PRETTY_FUNCTION for Microsoft compiler 2017-05-05 15:15:49 +02:00
triplus
bd64f4c038 Boot phase reference point 2017-05-04 20:03:34 +02:00
looooo
bf5f3484f6 Test: simplified command to run single test 2017-05-04 00:19:37 +02:00
Abdullah Tahiri
1091511c77 Base::Exception extension
=========================

1. Enable automatic storing of information (function, file, line) when throwing the exception via macro:

Examples:

THROWM(Exception, "BSpline GeoId is out of bounds.")
THROWM(ValueError, "BSpline GeoId is out of bounds.")

THROW(AbortException)

Output:

a) Python Console (what()):
App.ActiveDocument.Sketch004.modifyBSplineKnotMultiplicity(16,3,0)
Traceback (most recent call last):
File "<input>", line 1, in <module>
Base.FreeCADError: FreeCAD exception thrown (BSpline GeoId is out of bounds.)

b) ReportException (report()):
Exception (Thu Apr 27 19:15:24 2017): BSpline GeoId is out of bounds. in bool Sketcher::SketchObject::modifyBSplineKnotMultiplicity(int, int, int) in src/Mod/Sketcher/App/SketchObject.cpp:4102

2. Extend the basic framework so as to allow more control over the mangling of the message introduced by the user, setting the basis to allow, where needed,
 to preserve the original message while allowing full legacy behaviour.

3. Supporting FileDialog reporting as legacy
2017-05-03 22:08:10 +02:00
Abdullah Tahiri
c974e9d752 Exception: Add CADKernelError exception for specialized OCC exception propagation to App::DocumentObject 2017-05-03 22:08:10 +02:00
wmayer
378a1e4f58 Qt5: workaround for undocking of mdi view
fix minor issues reported by clang static analyzer
2017-05-03 22:01:46 +02:00
wwmayer
1a9c878b60 Merge pull request #729 from DeepSOIC/PickRadius_fix1
PickRadius support for View3DPy.getObjectInfo()
2017-05-03 17:59:47 +02:00
Yorik van Havre
0fc9e2be04 Arch Multimaterial 2017-05-03 11:52:24 -03:00
DeepSOIC
b4b882fb5b Gui: PickRadius support for View3DPy.getObjectInfo()
requested by Chris_G in forum thread "ActiveView.getObjectInfo ignores
pickRadius ?"
https://forum.freecadweb.org/viewtopic.php?f=22&t=22196
2017-05-03 16:51:36 +03:00
Keith Sloan
a328e1fe73 Support of OpenSCAD offset command 2017-05-02 15:53:30 +02:00
wwmayer
192dbf1f08 Merge pull request #725 from m0n5t3r/path-helix-sort-duplicates
[path] Remove duplicate first drill job in PathHelix
2017-05-02 13:51:27 +02:00
Sabin Iacob
6acbdad01d [path] Remove duplicate first drill job in PathHelix 2017-05-02 07:10:00 +03:00
Abdullah Tahiri
7bee2c5412 Sketcher: Visualization of horizontal alignment constraint 2017-05-01 23:35:13 +02:00