Commit Graph

2471 Commits

Author SHA1 Message Date
sliptonic
cbc8524ff9 Make Toolbit find Bit files relative to the current library directory 2020-11-15 18:22:45 -06:00
sliptonic
1672a33647 Fix duplicate docs being created
fix edit changes not being retained
fix edit removing new toolbit from diretory
2020-11-15 18:22:45 -06:00
sliptonic
d563530c3c Removed diameter dependencies so lathe tools work 2020-11-15 18:22:45 -06:00
sliptonic
3b6dbf8dca Fix default directory bug 2020-11-15 18:22:45 -06:00
sliptonic
ec3285a006 added attribute to Toolbit for spindlepower
setting this to false will suppress M3 commands.
User can configure a toolbit to never have the spindle turn on
this is to prevent accidental powering of the spindle with
unpowered tools like dragknife and probe
2020-11-15 18:22:45 -06:00
sliptonic
5c47912cc1 Better cleanup on new toolbit creation 2020-11-15 18:22:45 -06:00
sliptonic
09bb0d404d fix bug in create toolbit flow 2020-11-15 18:22:45 -06:00
sliptonic
e335fe5384 Editing Works 2020-11-15 18:22:45 -06:00
sliptonic
b556aa47de Basic workflow. No editing
concept dock work
most functions working.
made linuxcnc export work
Fixed some defaults on new install
fixed display label in dock
2020-11-15 18:22:45 -06:00
sliptonic
610f3ebf75 Merge pull request #3989 from Russ4262/Surface_fixes
Path: 3D Surface fix to apply `CutMode` when `CutPattern = Offset`; and LGTM cleanup
2020-11-13 14:25:19 -06:00
Dave Seff
f92b8f6d75 Make the tool setup images a bit nicer. 2020-11-12 16:59:22 +10:00
sliptonic
b421349ac3 Merge pull request #4034 from dubstar-04/PathTurnRoughingSel
[Path] Update Turning Selection Gates
2020-11-11 09:21:21 -06:00
Daniel Wood
30d0a0a8a0 [Path] rename TurnPart to TurnPartoff 2020-11-11 08:44:09 +00:00
Yorik van Havre
ae2c707892 Merged crowdin translations 2020-11-10 14:58:06 +01:00
Yorik van Havre
0ddaa9fc24 Updated ts files 2020-11-10 14:47:48 +01:00
Daniel Wood
ddae642109 [Path] Add Turning Roughing Selection 2020-11-09 21:14:19 +00:00
Russell Johnson
666671e6d6 Path: Fix missing variable declaration for rotational scan
Missing default logical choice within `if...:` block.
Reported in forum at https://forum.freecadweb.org/viewtopic.php?style=3&f=15&t=44473&start=60#p412303
2020-11-08 22:56:49 -06:00
Russell Johnson
9c08f1a72d Path: Fix unsorted arc order for circular cut pattern in some cases 2020-11-08 22:56:49 -06:00
Russell Johnson
3e9ea18051 Path: Fix cut direction when CutPatternReversed is true for Circular 2020-11-08 22:56:49 -06:00
Russell Johnson
f428ba6050 Path: Restructure code to fix closedGap LGTM issue 2020-11-08 22:56:49 -06:00
Russell Johnson
1799f8e807 Path: Some LGTM cleanup 2020-11-08 22:56:49 -06:00
Russell Johnson
d2e7fdc15d Path: Apply missing CutMode setting when CutPattern = Offset
The `CutMode` toggle had no effect. This fix applies the `CutMode` toggle when the `CutPattern = Offset`.  The indicated `CutMode` may not be accurate depending on the situation, but the toggle will change the cut direction as intended.
2020-11-08 22:56:49 -06:00
Daniel Wood
34e9a571df [Path] Fix Typo - Stock object requires uppercase 'S' 2020-11-06 20:01:56 +01:00
luz paz
60c055e62d Path: Fix header uniformity and remove trailing whitespace
This PR fixes header uniformity across all Path files. It also removes all trailing whitespace.
2020-11-05 19:57:21 +01:00
GaryH
b0fcac8ddc Modify code format to PEP8
Add --marlin-config argument
  Marlin requires certain configuration settings in order to work well
  with FreeCAD. Those configuration settings will be added to the
  end of the gcode file as comments, when --marlin-config is entered
  as a post processor argument.
  For PEP8 conformity:
      Change some double-quotes to single-quotes.
      Change sequence of import statements.

Modify code format to PEP8
  Indentation and line length meet PEP8 requirements.
  Other aspects of PEP8 are partially implemented.

Add code to remove embedded comments
  Also, minor tweaks throughout

Change outstring to outList for clarity
  Change format_outstring to format_outList
  Change: if PathUtil.opProperty(obj, 'Active') is False:
    To: if PathUtil.opProperty(obj, 'Active') == False:

Format file to PEP8 standard
  Format first pass using:
    autopep8 --in-place --aggressive --aggressive
  Manually adjust format for better appearance
  Recheck format using http://pep8online.com/
  Change code related to pythonopen into with open() code
  Minor refactoring
2020-11-04 19:55:02 +01:00
GaryH
ef386cf85c Refactor marlin_post.py
Change G4 P to G4 S for Marlin
  Marlin uses P for milliseconds, S for seconds.
  FreeCAD uses P for seconds, so change P to S.

Remove code for G20 inch mode and G91 relative mode
  Due to the fundamentals of the FreeCAD pre-processor,
  this post processor can only operate in the following modes:
  G90 Absolute positions
  G21 Metric units (mm)
  G17 XY plane (3 axis vertical milling only)

Expand RETURN_TO option to float values for XYZ
  The RETURN_TO option previously only accepted integer values, and
  only for X and Y.
  This change allows float values for XY and optionally Z.

Add class: "Drill" within drill_translate()
  The nested functions within drill_translate() need to modify the
  variable that was named trBuff. To allow this, trBuff was changed
  to class: "Drill" with property "gcode".
  Within drill_translate(), including within the nested functions,
  modifying "trBuff" is now replaced with modifying "Drill.gcode".

Merge in updated portions of grbl_post.py
  Prior verson was derived from an older grbl_post.py.
  Merge in the portions of the newer grbl that seem improved.
  Refactor overall after the merge.

Add options for partial comments
  Add option:  --no-finish-comments
  Add option:  --no-path-comments
2020-11-04 19:55:02 +01:00
GaryH
3e223e242b Add files via upload 2020-11-04 19:55:02 +01:00
luz paz
f839820817 Fix various typos [skip-ci]
Found via `codespell v2.0.dev`  
```
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,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,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
```
2020-11-04 10:18:30 +01:00
Daniel Wood
6be4352ea7 [Path] Tidy imports 2020-10-29 21:35:24 +00:00
Daniel Wood
e22de3bde1 [Path] PEP8 whitespace fixes 2020-10-29 21:29:25 +00:00
Daniel Wood
eb3fbc0f94 [Path] set the default max diameter 2020-10-29 21:27:32 +00:00
Daniel Wood
4ea4ad84ce [Path] PEP8 Formatting fixes 2020-10-29 19:55:45 +00:00
Daniel Wood
8418c014f5 [Path] Add TurnPart selection 2020-10-29 19:55:05 +00:00
Daniel Wood
13e76e32e0 Merge branch 'master' into feature/jobsetupplane 2020-10-28 17:19:10 +00:00
Daniel Wood
91f5f470f4 Reorder imports to match PEP8 guidance 2020-10-28 17:10:51 +00:00
Daniel Wood
766bfe9398 silence lgtm warnings 2020-10-28 17:09:49 +00:00
Yorik van Havre
43596a68af Merged crowdin translations 2020-10-28 12:04:37 +01:00
Yorik van Havre
57fbb63b8d Updated ts files 2020-10-28 10:46:51 +01:00
Daniel Wood
532c05eeea PEP8 whitespace fixes 2020-10-28 06:50:04 +00:00
Daniel Wood
e3213c296f [Path] Enable Face selection for axis selection (JobSetUp) 2020-10-27 21:28:30 +00:00
sliptonic
70e11ebc52 Merge pull request #3991 from Russ4262/patch-1
Path: Fixes ticket #4471
2020-10-26 20:29:23 -05:00
sliptonic
77cb54869f Merge pull request #3969 from sliptonic/bug/bugfixes
[PATH]  Minor bugfixes
2020-10-26 08:12:20 -05:00
Markus Lampert
236f8605cd Special provisions for py2 - not understanding why though 2020-10-25 18:56:47 -07:00
Markus Lampert
982656babe Remove app include files from precompile guard 2020-10-25 16:33:13 -07:00
Markus Lampert
318ad0fb65 Include proper model headers for python files. 2020-10-25 16:33:13 -07:00
Markus Lampert
85418c48df Fixed 'o' and depth issue 2020-10-25 16:33:13 -07:00
Markus Lampert
204ab7e826 Allow voronoi edges to be traversed in any direction and use that to sort the sequence of milling the wires. 2020-10-25 16:33:13 -07:00
Markus Lampert
c581602bf8 Added sorting over all wires, not just the ones of a single face 2020-10-25 16:33:13 -07:00
Markus Lampert
6e0e8541a5 Added sorting of voronoi wires to minimize rapid moves 2020-10-25 16:33:13 -07:00
Markus Lampert
e35a022132 New vcarve wire detection algorithm using the new z-values of toShape 2020-10-25 16:33:13 -07:00