furti
275b40f04f
Extract Path Array logic into separate functions
...
The Path Array logic is pretty useful to be used directly by macros.
But until now it was encapsulated in the PathArray class and could only
be used by creating a full PathArray object. So we can't use it inside
other Objects to create a repeated shape.
This commit extracts the logic into a separate function that returns a
list of placements. One can use this placements now to copy a shape and
place it accordingly.
2019-05-07 21:31:12 -03:00
carlopav
8eb2c49237
Update DraftGui.py
...
found another bug: when aligning to y axis while tracing a line, the focus is not set on the length if the option is checked in preferences. this should fix it.
2019-05-06 10:23:37 -03:00
carlopav
5860d67b64
Draft GUI setfocus if lengthValue is not visible
...
If set focus on length instead of x coordinate is checked, Draft set the focus on it also if the lengthValue is not visible
2019-05-06 10:23:37 -03:00
luz.paz
7a1f98fda1
Misc. source comment typo and whitespace fixes
2019-05-06 13:42:30 +02:00
Yorik van Havre
a9b6eecb52
Draft: Keep using the already set working plane, if existing
2019-05-04 14:31:43 -03:00
Syres916
3d15ac71cf
importDXF draftWPlane Fix
...
To fix error:
w.Placement = placementFromDXFOCS(polyline)
File "E:\Data\My Downloads\FreeCAD_0.19.16587_x64_Conda_Py3QT5-WinVS2015\FreeCAD_0.19.16587_x64_Conda_Py3QT5-WinVS2015\Mod\Draft\importDXF.py", line 422, in placementFromDXFOCS
draftWPlane = FreeCAD.DraftWorkingPlane
<class 'AttributeError'>: module 'FreeCAD' has no attribute 'DraftWorkingPlane'
2019-05-04 14:31:43 -03:00
Yorik van Havre
6d4d85b436
Draft: Fixed 0.18.1 bug in DXF importer
2019-05-02 16:09:36 -03:00
Yorik van Havre
6411d4aa22
Draft: Fixed Draft text justification
2019-05-02 15:23:20 -03:00
carlopav
db98de84c4
Update DraftTools.py
...
Draft Edit, fixed a problem in bezier curve editing.
2019-04-30 10:14:29 -03:00
carlopav
52ef5fba78
Update DraftTools.py
...
Improved Draft Edit node selection adding tolerance when selectin a node that is coincident to an edge or a face
2019-04-30 10:14:29 -03:00
carlopav
40c434bbaa
Update DraftTools.py
...
cleaned comments
2019-04-30 10:14:29 -03:00
carlopav
b16741a055
Update DraftTools.py
...
Fixed selection of editpoint on edge
2019-04-30 10:14:29 -03:00
carlopav
0c281578c8
Improved node selection
...
Allows to select an edit node also if it doesn't lay on an object.
2019-04-30 10:14:29 -03:00
Yorik van Havre
fc17fee860
Arch: Added 'Clip' property to section planes to clip the rendered contents to the plane limits
2019-04-28 17:29:19 -03:00
Yorik van Havre
dc64cdb18d
Draft: Fixed DXF import with sketch mode on
2019-04-25 18:17:57 -03:00
Yorik van Havre
b32c463801
Draft: Fixed crashing editTracker
2019-04-22 12:21:31 -03:00
carlopav
c78082a3fb
Update the arc3points
...
Updated the Arc3points tool to be able to draw a Draft object instead of a Part one. Also grouped the two tools in one single dropdown toolbar button.
2019-04-22 10:46:44 -03:00
carlopav
2d2e36b7bd
Cubic BezCurve small fix
...
Fixed small things i forgot
2019-04-22 10:46:44 -03:00
Yorik van Havre
dd56abe14b
Draft: Fixed error in DXF import
2019-04-22 10:39:36 -03:00
Yorik van Havre
84b8d82f52
Draft: Fixed inverted 2D/3D modes of Draft Texts
2019-04-22 10:29:58 -03:00
Yorik van Havre
e809a6fa24
Arch/TechDraw: TD Arch views now have a 'fillSpaces' property to show Arch spaces as color-filled areas
2019-04-19 18:20:33 -03:00
Yorik van Havre
ec1830dfb8
Arch: Added right-click option to BuildingParts to clone level and contents
2019-04-18 19:10:35 -03:00
Yorik van Havre
f0d7360319
Draft: Added area property to 'closeable' Draft objects
2019-04-18 11:54:45 -03:00
Yorik van Havre
364960723e
Arch: Misc fixes in Arch spaces
2019-04-17 17:11:14 -03:00
Yorik van Havre
83b92eb93c
Draft: Exposing the Normal property of dimensions
2019-04-15 11:14:30 -03:00
Yorik van Havre
6e57726532
Draft: Fixed wrong display of Draft texts on restore
2019-04-15 11:02:03 -03:00
wandererfan
6a37cca6b1
Fix Draft.getSVG for TechDraw DraftView
2019-04-13 19:15:48 -04:00
Jakub Tyszkowski
9d386f8f9a
TestDraft: Fix testRotate and testOffset cases
...
Wire needs to be recomputed to update it's dimensions.
2019-04-09 12:08:45 -03:00
Yorik van Havre
d410d3dd57
Draft: Shape2DView can now fuse Arch Walls and Structures
2019-04-08 18:18:11 -03:00
Yorik van Havre
d01ecef12e
Draft: re-added recomputes where needed in Draft GUI tools
2019-04-08 18:17:44 -03:00
carlopav
442ba9e2c1
Split the command in two
...
With this commit 2 commands are created, one for current bezier curve tool behaviour, the other for cubic bezier in inkscape style...
grouped in a dropdown button in the toolbar.
2019-04-08 17:17:21 -03:00
carlopav
7a37dc35de
Update DraftTools.py
...
cleanup
2019-04-08 17:17:21 -03:00
carlopav
8677d2c986
Update DraftTools.py
...
minor fixes and cleanup to bezier creation tool
2019-04-08 17:17:21 -03:00
carlopav
f7a1c313e7
Update DraftTools.py
...
Added the parameter self.degree and allow the segmentation of the curve while drawing it. If set to none, nothing change in the tool.
2019-04-08 17:17:21 -03:00
carlopav
251915ad0d
Update DraftTrackers.py
...
Upate bezier curve tracker to accept a given degree of the curve and to be able to segment the preview in a similar way the curve creator work.
2019-04-08 17:17:21 -03:00
Yorik van Havre
6463e46bd4
Draft: Fixed node selection in Draft Edit
2019-04-07 17:24:40 -03:00
Yorik van Havre
05b7892109
Draft: Added 3-point arc command from BIM WB
2019-04-07 17:23:42 -03:00
Yorik van Havre
c4d61de818
Better vertices comparison
2019-04-07 12:15:50 -03:00
paullee0
b4618137c9
Fix findIntersection() can't find coincident points due to overspecifying Precision by user
...
- Cap Precision in precision()
2019-04-07 12:15:50 -03:00
paullee0
25afa7ae36
OffsetWire() - Seems has repeatedly sortEdges, remark out here
...
- edges = Part.__sortEdges__(wire.Edges)
2019-04-07 12:15:50 -03:00
paullee0
ca0db24704
Fix connect() bug - If prev v2 had been calculated, do not calculate again, just use it as current v1
...
- avoid chance of slight difference in result
2019-04-07 12:15:50 -03:00
paullee0
11cba4f715
Fix offsetWire() bug - first edge vector should depends on geometry (line or arc)
2019-04-07 12:15:50 -03:00
DinoMesina
9c25e45eb7
Modify using FreeCAD.Vector.getAngle()
2019-04-07 12:14:25 -03:00
Yorik van Havre
7aab998334
Draft: Limit preferences precision value to max 10
2019-04-06 16:52:37 -03:00
Joel Graff
7d800f09e5
removed all document recompute calls
2019-04-06 16:39:49 -03:00
DinoMesina
f1cb7f35c7
Update Draft.py
2019-04-04 11:16:14 -03:00
DinoMesina
7b5d6d2944
Update Draft.py
2019-04-04 11:16:14 -03:00
DinoMesina
d259a17b16
Add files via upload
...
Added the correct placement for 3D entities
2019-04-04 11:16:14 -03:00
DinoMesina
71deeefa60
Update Draft.py
2019-04-04 11:16:14 -03:00
wandererfan
30f9c503bc
Fix Direction of Draft Arrows in TechDraw
...
- Arrowheads in DraftView were reverse when displayed
in TechDraw.
2019-03-31 11:49:00 +02:00