Commit Graph

11220 Commits

Author SHA1 Message Date
Oliver Oxtoby
59cc63faea Base: Make Quantity parser accept 1/[unit] as [unit]^-1 2017-08-20 16:53:57 +02:00
Oliver Oxtoby
890a7bf814 Base: Fixes in MKS units schema
- Change default unit for Length, if out of range of scaling, to m
- Add density scaling as in Internal schema (avoids density always displaying in kg/mm^3)
- Change velocity to m/s rather than mm/s
2017-08-20 16:50:26 +02:00
Oliver Oxtoby
f93bdfb927 Base: Add DynamicViscosity and SpecificEnergy units 2017-08-20 16:50:11 +02:00
Oliver Oxtoby
966fbf422b Base: Add properties to InputField for setting Quantity from Python
These additions are designed to allow easier interaction with the
InputField box from Python. Particularly, the ability to put the
format into scientific notation to prevent truncation of values.
There is also a need for a way to input a new value into the
text box such that it is formatted correctly.
- 'quantityString' property - allows to check, set, format and
display the underlying value. The only way to achieve this
currently from Python is to set the widget text, then hide and
re-show it to format the value.
- 'format' property: set to 'f' (fixed - default),
'e' (scientific) or 'g' (general - recommended)
to set the number format from Python or UI file
- 'precision' property: as above, number of decimals/significant
figures if it is desired to override the global default
2017-08-20 16:50:01 +02:00
Markus Lampert
604365a6b8 Do not overwrite tooltips for InputFields. 2017-08-20 10:22:33 +02:00
wmayer
2ae441ff9d unit test for duplicate links in a group 2017-08-19 19:36:40 +02:00
Zheng, Lei
8ffcb3215a App::Document: fix breakDependency
Fixed breakDependency to handle repetitive entries inside
PropertyLinkList
2017-08-19 18:56:24 +02:00
Abdullah Tahiri
3be1611684 Refactoring Sketcher execute() to use solve() 2017-08-19 17:14:28 +02:00
Abdullah Tahiri
395f9e1576 Sketcher: Extension to report redundancy, Standardisation of return codes for solve, documentation, initialisation of solver information
========================================================================================================================================

Motivation:
- Improve notifications of redundancy in the solver (Bonus effect, now the sketcher refuses to add a redundant datum constraint)
- Initialize all solver information, so that it is accurate also in corner cases.
- Provide different return codes for the different solver status/conflicting/redundant/overconstraint (also looking forward for a future refactoring)

Impact:
- Python users that are currently using the return code of solve() for detecting overconstraint/conflicting/solver error, if any, might have to adapt their scripts.
Those who are just checking for zero/non-zero will have to do nothing.
2017-08-19 17:14:28 +02:00
Abdullah Tahiri
3a9e5499a6 Clarify solver situation at the end of of ViewProvider::OnDelete 2017-08-19 17:14:27 +02:00
Abdullah Tahiri
32f868f1ca Fixing unreported bug behaving like #2710 without AutoUpdate under conflicting constraints + improving documentation 2017-08-19 17:14:27 +02:00
Abdullah Tahiri
58210251ca Refactoring solve+recompute and reinstating initial solve+recompute behaviour 2017-08-19 17:14:27 +02:00
wmayer
5661d91371 fixes #0002710: Freecad doesn't show sketch elements added when overconstrained
issue #0002836: Crash in sketcher
2017-08-19 17:14:27 +02:00
wmayer
e73a16e7b4 when drawing constraint icon handle the case when view provider of sketch is not in sync with geometry 2017-08-19 17:14:27 +02:00
Yorik van Havre
d8e2f8c221 Arch: Fixed orienation bug in structure 2017-08-19 11:56:08 -03:00
wmayer
31810ce05a compile Path module with boost < 1.55 2017-08-19 14:30:55 +02:00
Markus Lampert
8f080e54d2 Turned tracking off for profile. 2017-08-19 13:30:03 +02:00
Markus Lampert
0e794681ec Reduced ramp entry log level to info. 2017-08-19 13:30:03 +02:00
Markus Lampert
e90587c60f Removed automatic parameter emmission into output file from phillips post processor. 2017-08-19 13:30:03 +02:00
Markus Lampert
c13c4ca7fb Made comments real openbsp comments, instead of relying on the g-code compatibility. 2017-08-19 13:30:03 +02:00
Markus Lampert
39998b6645 Changed speed setting to take opensbp multiple speed rates into account - and only issues a new setting if there are any changes. From the documentation it seems we ought to use VS instead of JS and MS if we don't want the ramp-down-ramp-up procedure involved with FS and MS. Given that Path only changes these settings on a tool change it's probably OK for now. 2017-08-19 13:30:03 +02:00
Markus Lampert
75c2aadbb9 Fixed xy vs. z speed order for MS and JS command. 2017-08-19 13:30:03 +02:00
Markus Lampert
76bef6b534 Added support for comments to opensbp 2017-08-19 13:30:03 +02:00
Markus Lampert
297999c6ce Don't create step movements for vertically diagonal moves. 2017-08-19 13:30:03 +02:00
wmayer
491525f7ac fix crash when moving a free sketch to a body 2017-08-19 13:20:53 +02:00
Yorik van Havre
a3baadd80b Arch: Renamed Rebar -> Custom Rebar 2017-08-18 20:57:43 -03:00
Yorik van Havre
db56b3eca6 Arch: Don't remove splitter if removing splitter fails 2017-08-18 12:57:22 -03:00
Yorik van Havre
8894065422 AddonManager: don't close if a thread is still running 2017-08-18 11:52:31 -03:00
Abdullah Tahiri
46a8598e71 CommandSketcherBSpline Increaseknot extended to comply with the convention: if not rethrowing, must report 2017-08-17 22:54:19 +02:00
wmayer
ffac6242fd fixes of PR 765
remove QT_TRANSLATE_NOOP because of compiler warnings
mark _isReported as mutable to avoid removing const keyword from ReportException()
improve whitespaces
2017-08-17 22:50:01 +02:00
Abdullah Tahiri
f4fd0d6b71 Generator script modified to first report and then ask for the python representation, so as keep track of the reported status 2017-08-17 22:47:14 +02:00
Abdullah Tahiri
806e06a35e Exception extension to only report once 2017-08-17 22:45:40 +02:00
Abdullah Tahiri
daffa8e08e SketchObject Modifyknotmultiplicity written to support translatable exception messages 2017-08-17 22:45:22 +02:00
Abdullah Tahiri
fa3a4f1f4c Exceptions: translation support 2017-08-17 22:44:11 +02:00
Yorik van Havre
15de1287ee Draft: draft2sketch now (partially) supports bezcurves and bsplines (no constraints yet) 2017-08-16 19:25:27 -03:00
Yorik van Havre
c8db8c5ba7 Arch: Fixed cutplane bug - fixes #3082 2017-08-16 18:31:17 -03:00
Yorik van Havre
de982f7c29 Draft: Fixed wrong arc projections in TechDraw 2017-08-16 17:52:56 -03:00
Yorik van Havre
223f5b58f7 Arch: Fixed wrong IFC extrusion value 2017-08-16 16:42:51 -03:00
wmayer
1839adc7bf in selection view do not extract element names from item text but set and get user data 2017-08-15 19:51:41 +02:00
wmayer
3fee9bad3e add methods to get normal and curvature information from surfaces 2017-08-14 12:24:42 +02:00
Bernd Hahnebach
6482870c8b FEM: gmsh mesh tool, fix geo tolerance value 2017-08-14 09:50:43 +02:00
Markus Lampert
354538956d Fixed tool tip length compensation and added safeguards against invalid cutting edge angles. 2017-08-13 16:21:22 -07:00
kogolbok
9b905497b6 Path: Drilling. Fix drillbit tip compensation. 2017-08-13 19:49:26 +03:00
wmayer
cf8c1f6956 fix warning 2017-08-13 16:58:06 +02:00
wmayer
35ddd3926b extend Python api of units:
+ get list of all available schemas
+ get currently set schema
+ translate a quantity to a given schema
2017-08-13 16:55:00 +02:00
triplus
13e7946faf WhatsThis support for Python based commands
Enables What's This command for Python based FreeCAD commands.

Forum discussion:
https://forum.freecadweb.org/viewtopic.php?f=15&t=23865
2017-08-13 11:20:25 +02:00
wmayer
afb0934143 in PropertyLinkList replace assert with C++ exception to avoid a crash 2017-08-13 11:04:18 +02:00
Yorik van Havre
282eb82d7f Merge branch 'master' of github.com:FreeCAD/FreeCAD 2017-08-12 12:39:24 -03:00
Yorik van Havre
c1be7a7f31 Arch: Fixed small bug in arch panel 2017-08-12 12:39:08 -03:00
wmayer
e77f8d2822 fix compiler warning 2017-08-12 17:26:11 +02:00