Commit Graph

45 Commits

Author SHA1 Message Date
Uwe
5e6699e48d [TD] remove Python.h and Xerces
seems not to be necessary anymore
2022-03-21 02:53:47 +01:00
wmayer
d69defaa3c Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
wmayer
0054cbddaa Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
Wanderer Fan
88004e8dc9 [TD]correct retrieval of dim text for DXF export 2022-02-11 16:24:35 -05:00
marioalexis
7895af1822 TechDraw: Call PyMem_Free() to free allocated buffer 2022-02-09 16:04:59 +01:00
Wanderer Fan
cc770208ea [TD]migrate DrawingWB projection functions to TechDrawWB 2022-01-29 14:49:15 -05:00
luz paz
1d60dbdc85 [TD] remove Py2 code from TD 2021-04-22 13:08:56 +02:00
Yorik van Havre
078160ea70 TechDraw: Exposed GeomHatch functionality to Python in TechDraw.makeGeomHatch() 2021-02-02 17:49:44 +01:00
wmayer
aec9d5f07a Py: fix memory leaks by incorrect use of PyList_Append 2020-12-13 16:30:04 +01:00
Aapo
c695b4009b [TD] Refactor DrawViewDimension getFormatedValue() into two functions. 2020-12-02 16:38:21 +01:00
wmayer
60b4918333 Coverity: Explicit null dereferenced 2020-07-20 17:34:27 +02:00
wandererfan
37340eef0f [TD]Dimension Py Routine fixes 2020-05-10 18:06:40 -04:00
wandererfan
91f91f458d [TD]support Horiz/Vert Dims in Dxf export 2020-01-23 13:46:51 -05:00
luz.paz
cbdba0b5bb TD: fix header uniformity
This PR fixes header uniformity across all TechDraw WB.
2019-12-21 09:57:45 -05:00
wandererfan
f1e9c1967a [TD]fix py2 unicode/string handling 2019-11-02 14:59:32 -04:00
wandererfan
a7d9661b1d [TD]Extent Dimensions 2019-11-02 14:59:32 -04:00
Zheng, Lei
d26f772035 TechDraw: Link related changes
* Support link and group objects

* Support view sync by implementing view provider API getMDIView()

* Use handleChangedPropertyType() for object migration instead of
  reimplementing Restore() because of a lots of changes in
  PropertyContainer::Restore().

* Various other small fixes.
2019-08-17 15:15:46 +02:00
wandererfan
5970e91ef2 [TD]Py Cosmetic Vertex, Line, Circle Arc 2019-07-15 12:36:48 -04:00
wandererfan
7028da17b5 Expose findCentroid to Python 2018-08-11 11:24:12 +02:00
wandererfan
0790e3c920 Add support for Dxf Export R14 spec 2018-07-18 10:52:03 -03:00
wandererfan
f571c14487 Fix wrong point in Radius dim 2018-06-10 19:13:22 +02:00
wandererfan
bf5589e2d6 Position DPGI Dimensions correctly in Dxf file 2018-06-04 12:56:26 -04:00
wandererfan
2dd0f1f8f6 Export Diametric Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
b7f4fe9368 Export Radial Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
4a1b6601da Export Angular Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
490b7fc197 Export Linear Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
84c40aa69b export TD Annotation to Dxf 2018-05-16 18:58:10 -04:00
wmayer
5a7bc3376d disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions 2018-04-29 11:00:28 +02:00
wandererfan
33c77a5462 Add View and Page Dxf export 2018-04-29 10:12:31 +02:00
wmayer
840c9e8b3c prepare for PyCXX 7.0 2018-04-18 19:20:50 +02:00
WandererFan
99fcba4992 VPart/VSection Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
wmayer
949c86d364 Port to occ7.2:
+ Standard_Failure::Caught() is now marked as deprecated and should be replaced with standard C++ exception handling
2017-09-01 16:27:46 +02:00
luzpaz
2badea8c37 TechDraw: typo fix 2017-07-10 19:29:55 -03:00
WandererFan
f56df2ebee Add viewPartAsSvg in App 2017-06-23 08:14:46 +02:00
WandererFan
fc1c863034 Add viewPartAsDxf function in App 2017-06-23 08:14:46 +02:00
Peter Lama
a75a98ef27 Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
WandererFan
804dc1cd85 Fix error handling 2016-11-18 10:14:59 +01:00
WandererFan
503d718520 Add planar embedding to EdgeWalker 2016-11-18 10:13:41 +01:00
WandererFan
dc66106683 Create outline of 3D shape 2016-11-07 17:20:19 -05:00
WandererFan
6c937e1bbe Protect EdgeWalker against bad input 2016-09-11 13:12:24 -04:00
WandererFan
b75f82b500 Fix for Wires with same bbox, different areas 2016-09-01 12:14:43 -04:00
WandererFan
9a93185f7e Py binding for EdgeWalker
refactor EdgeWalker code from DVP,DVS
2016-09-01 12:14:42 -04:00
WandererFan
a46fd856d4 more /Drawing/TechDraw/ edits. VP name conflicts 2016-07-11 15:32:16 +02:00
WandererFan
3b2d07e8af ProjectionAlgo & DrawingExport renames 2016-07-11 15:32:16 +02:00
WandererFan
189839e93d Add Mod/TechDraw/App 2016-07-11 15:32:16 +02:00