wmayer
07261b161d
fix Py3 issue
2017-07-25 01:07:09 +02:00
wmayer
e32c37598b
add attribute to control format of a quantity via Python
2017-07-24 22:47:10 +02:00
wmayer
6ae540b053
fixes #0003137 : Unit UserString wrong
2017-07-24 16:52:03 +02:00
Itai Nahshon
4bd0766c72
Do not use C++11 utf8 strings - not supported by VC2013.
2017-07-18 17:43:09 +02:00
Itai Nahshon
bdd656ed98
Spelling
2017-07-18 17:41:51 +02:00
Itai Nahshon
258ca0723d
Add UnitsSchemaMmMin - izes are only in mm, speed in mm/munute.
2017-07-18 17:41:36 +02:00
luzpaz
937445c973
Added missing apostrophe
2017-07-16 11:40:32 -03:00
luzpaz
9bc7518046
fix typo
2017-07-10 19:29:55 -03:00
luzpaz
73ea82f9dd
fix typos
2017-07-10 19:29:55 -03:00
wmayer
2f5ff3186c
fix for mixing up SchemeVersion and FileVersion
2017-07-06 17:59:01 +02:00
wmayer
4caf59fd8b
implement object serialization for Vector class
2017-06-22 21:52:53 +02:00
Markus Lampert
a0d3d020eb
Proper taskk panel cleanup on escape.
2017-06-21 11:41:35 -07:00
wmayer
19d55fa227
fix issues in CoordinateSystem class and expose to Python
2017-06-20 21:22:59 +02:00
wmayer
c8084ac5c5
quantities must be expressed in units m,g,s for MKS and internal scheme
2017-06-18 23:43:42 +02:00
Itai Nahshon
a42391fa3b
Add Units schemaTranslate for Unit::Velocity.
...
Independent of scale, use only mm/min or in/min because it is compatible
with GCODE feed rate units.
(My use case is definition os feed-rates in PathLoadTool.py).
2017-06-18 17:11:49 +02:00
wmayer
13b0bdb6a6
fix build failure on FreeBSD, support colored output to terminal
2017-06-18 12:26:05 +02:00
wmayer
4cda387e61
py3: support of Python 3.4
2017-06-06 23:49:42 +02:00
wmayer
729cfd8155
py3: fox compiler warnings
...
issue 0000995
2017-06-04 00:17:57 +02:00
wmayer
34db2e4c55
Py3: in Py2 use string instead of unicode for identifier
2017-06-03 10:51:05 +02:00
wmayer
bf162ebde9
py3: partially revert of getattr -> getattro because getattro is only needed for the static callback function
...
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
6ad7dc1217
py3: change of getattr -> getattro
...
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
2f467da92a
py3: base: repair compile-fail
2017-05-21 12:35:41 +02:00
Yorik van Havre
d4b7100bb2
py3: Base: files R-Z ported to python3
...
issue 0000995
2017-05-21 12:35:41 +02:00
wmayer
1902adf710
fix crash caused by PR761
2017-05-18 19:44:10 +02:00
Yorik van Havre
0bc16d353b
py3: Base: files I-R ported to python3
...
PyObjectBase.cpp and PyObjectBase.h not included
issue 0000995
2017-05-18 16:00:05 +02:00
looooo
1355495f07
vs 2013 has already version info grater 18
2017-05-17 16:39:28 +02:00
Yorik van Havre
ccebc7d16b
py3: Base: files A-I ported to python3
...
issue 0000995
2017-05-17 16:39:28 +02:00
wmayer
64d7cab373
fix build failure and make Py2/Py3 specific change
2017-05-15 22:36:21 +02:00
wmayer
1d8206acbf
Fix various issues:
...
+ fix dangling pointers when fetching Python error text
+ initialize members in overloaded constructors of Exception class
+ implement assignment operator in sub-class
+ move to PyCXX API to simplify handling with reference counting and reading values from the dict
2017-05-15 18:49:09 +02:00
Zheng, Lei
f14ef7058d
Console: added tag based log support
2017-05-13 17:46:38 +02:00
wmayer
f46e89a1ae
fix -Woverloaded-virtual
2017-05-13 16:46:49 +02:00
wmayer
55173f6b15
remove commented code
2017-05-13 16:09:30 +02:00
wmayer
dc03118b4b
improve whitespaces and reduce code duplication
2017-05-13 16:00:32 +02:00
wmayer
edbc56f48a
remove export macro from template class to fix linker errors on Windows
2017-05-13 15:48:17 +02:00
Abdullah Tahiri
f4c0f0acae
Renaming getPyDict to getPyObject for consistency with BaseClass
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
3a27e2d8ff
Enable exceptions to save/restore information in a python dictionary and enable throwing exception from dictionary information
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
085acfac5e
Exception Factory pre-compiled header
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
053300cfa1
Enable PyException to reconstruct the original exception
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
ea2b6ee945
pytools fix
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
94a22e34de
Extend PyTools to export exception dictionary if present
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
1d6ebb0e40
Exception Factory and producers
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
8884a73b07
Provide default constructors for all exception types
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
82b9eba525
Exception: Extension to access debug information and change of line to int type
2017-05-13 15:27:57 +02:00
wmayer
5d0ce221a3
fix implementation of Module attribute
2017-05-10 11:23:34 +02:00
Abdullah Tahiri
f54d00ce60
Base::Type extension to get Type by key
2017-05-07 16:06:39 +02:00
wmayer
305c63290f
Add addObjects to add multiple objects in one step
2017-05-07 16:06:39 +02:00
Abdullah Tahiri
12d9140e60
Exception: FUNCSIG instead of PRETTY_FUNCTION for Microsoft compiler
2017-05-05 15:15:49 +02:00
Abdullah Tahiri
5cbeb1002e
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
c2eea67893
Exception: Add CADKernelError exception for specialized OCC exception propagation to App::DocumentObject
2017-05-03 22:08:10 +02:00
wmayer
fb7094bf31
use specialized exception classes
2017-04-28 18:49:11 +02:00