Commit Graph

622 Commits

Author SHA1 Message Date
luz.paz
6084bbfb1b Draft: Draft.py missing translate() context LGTM fixes [skip ci] 2019-10-25 10:25:31 -03:00
luz.paz
1c981e8f14 Fix typos and misc. formatting [skip ci]
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-10-21 16:02:23 -03:00
Yorik van Havre
1b3c41bcaa Draft: Added property to hide lines in dimensions 2019-10-08 17:19:13 -03:00
Yorik van Havre
d96468734c Draft: Better fix of copy mode 2019-10-08 16:32:23 -03:00
Yorik van Havre
617e8b5f91 Draft: Fixed copying of windows 2019-10-07 15:46:16 -03:00
M G Berberich
67562acbef Draft circular array
Adds a circular array case to the Draft Array.

Parameters are: radial and tangential distance, number of circles,
symmetry-axes, axis and center of rotation.

see https://forum.freecadweb.org/viewtopic.php?f=13&t=39726 (german)
2019-10-07 13:53:10 -03:00
M G Berberich
e482ceeee2 Circular Array
ciruclar array for Draft workbench
2019-10-07 13:53:10 -03:00
vocx-fc
0c18f5e256 Draft, makeBezCurve(), changed parameter Degree to degree, preferred lowercase 2019-10-07 13:44:25 -03:00
Zheng, Lei
fcda0934c9 Draft: relax Part::Feature type checking for Link support
Replace isDerivedFrom('Part::Feature') with hasattr(obj,'Shape')
2019-10-07 10:48:42 -03:00
vocx-fc
6383de2ee6 Draft: new icon for Draft_Dimension in the tree view in SVG, instead of XPM 2019-10-07 14:17:17 +02:00
Zheng, Lei
24b1467a55 Draft: disable implicit property linking in LinkArray 2019-08-30 13:35:25 +02:00
Yorik van Havre
5b2e74c3bd Draft: misc small fixes 2019-08-27 21:29:20 -03:00
vocx-fc
d5ca09c77b Draft: added DraftFillet.py to the sources, also InitGui.py, Draft.py, DraftTools.py, and CMakeLists.txt 2019-08-22 10:54:41 -03:00
vocx-fc
18727135d8 Draft: _PointArray, removed the tabs, and replaced with four spaces; mixing spaces and tabs may cause a syntax error in Python 3 2019-08-20 10:31:01 -03:00
Yorik van Havre
89961a33d4 Draft: removed degub message 2019-08-19 13:42:29 -03:00
Zheng, Lei
8162c9b67e Draft: fix PathLinkArray 2019-08-17 15:32:51 +02:00
Zheng, Lei
5509a9b438 Draft: fix Link(Path)Array 2019-08-17 15:32:51 +02:00
Zheng, Lei
de66e563e0 Draft/Arch related changes
* Add Draft_LinkArray and Draft_PathLinkArray that uses link for both
  data and visualization, which supports linking external objects

* Add link group support for draft snap

* Fix ArchWindows expression ambiguity
2019-08-17 15:32:47 +02:00
Yorik van Havre
c168a7d14b Arch/TD: Support for Arch BuildingParts in TD ArchView 2019-08-16 19:03:49 -03:00
Yorik van Havre
33cb9ce0ba Draft: Shape2Dview now supports buildingparts 2019-08-16 16:40:50 -03:00
vocx-fc
09046c98b1 Draft: Draft.py, the docstrings need triple quotes and be next to the method or class in order to be picked up by Doxygen or Sphinx; this complies with PEP 257 2019-08-14 14:33:15 -03:00
Yorik van Havre
8c9a9767e6 Draft: Fixed typo 2019-08-09 23:08:29 -03:00
Yorik van Havre
521fc29eac Draft: minor fixes to Label tool 2019-07-17 18:00:55 -03:00
Yorik van Havre
0d4106541c Draft: Fixed clone bugs 2019-07-11 12:44:04 -03:00
carlopav
4efa7c6743 [Draft] Bezcurve fix to display length
Added property Length to bezcurve objects.
2019-07-08 22:21:58 -03:00
Yorik van Havre
265faf6c59 Draft: General grid fixes
- Killed 'double-grid' bug
- Consistent one grid per view, be it new doc or new view
- Grid recreated when needed on each snap use
- Misc optimizations
2019-07-08 22:07:14 -03:00
Hakan Seven
0dca7b31f4 [Draft] Wavy Object Fix for Point 2019-06-17 16:52:45 -03:00
wandererfan
6ef0f86fae Fix missing recompute in Draft ShapeString 2019-06-10 21:31:00 -04:00
Yorik van Havre
5ee99ca4ee Draft: Introduced Layers system (former VisGroup) 2019-06-05 18:47:01 -03:00
Yorik van Havre
e2f65ef010 Draft: Fixed regressions in Scale tool + reimplemented Clone mode 2019-06-03 19:06:27 -03:00
Yorik van Havre
b9bcffda03 Draft: Now uses general FreeCAD shape colors instead of defining its own 2019-06-03 17:47:39 -03:00
Dion Moult
25c1007676 Recognise gridColor config as an unsigned type
Forgot to commit this earlier
2019-06-03 16:50:21 -03:00
Dion Moult
1c243cfc57 Add customisable in-command shortcut keys rather than hardcoding them 2019-06-03 16:31:25 -03:00
Yorik van Havre
bff34a36ec Draft: Fixed regression bug in Rotate 2019-05-16 14:38:46 -03:00
Yorik van Havre
fc674fae4e Draft: Small bugfix in bezier curves 2019-05-14 15:25:40 -03:00
Yorik van Havre
9e91c8d690 Draft: Fixed py3 issues in Draft Label - fixes #3941 2019-05-09 10:48:04 -03:00
Dion Moult
dc284e4d4d Fix scale command and simplify UI, add support for scale subelements 2019-05-08 10:27:44 -03:00
Dion Moult
fc24bf1446 Add subelement ghosts in scale command, and minor code cleanup
I suspect the scale command itself is a little broken, so I need to fix that before adding subelement support
2019-05-08 10:27:44 -03:00
Dion Moult
fd4992cb9a Implement rotation with optional copy of draft subelements 2019-05-08 10:27:44 -03:00
Dion Moult
91438c1688 Add subelement support for rotating individual vertices 2019-05-08 10:27:44 -03:00
Dion Moult
bc3af1afbc Code simplification of move subelements command 2019-05-08 10:26:55 -03:00
Dion Moult
8501377119 Support copying subelements 2019-05-08 10:26:55 -03:00
Dion Moult
be65fbf8ff Fix move edge to work on closed wires 2019-05-08 10:26:55 -03:00
Dion Moult
ba1f045065 Make movement vector a class variable of the move command, show error for unmovable elements, and move action into a commit to allow undo/redo. 2019-05-08 10:26:55 -03:00
Dion Moult
6e6bdc04a0 Create functions for moving vertex and edges 2019-05-08 10:26:55 -03:00
Dion Moult
d392daefd2 Fix typo 2019-05-08 10:26:55 -03:00
furti
9cfb84d862 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
luz.paz
519bbfe503 Misc. source comment typo and whitespace fixes 2019-05-06 13:42:30 +02:00
Yorik van Havre
bd7aa678f7 Draft: Fixed Draft text justification 2019-05-02 15:23:20 -03:00
Yorik van Havre
9a64f3fad9 Arch: Added 'Clip' property to section planes to clip the rendered contents to the plane limits 2019-04-28 17:29:19 -03:00