Skip to content

Commit

Permalink
Make the z traverse height equal to the stock z max plus the clearanc…
Browse files Browse the repository at this point in the history
…e height. This should help avoid fixtures and such.
  • Loading branch information
dubstar-04 committed Aug 14, 2019
1 parent 16c26cb commit cce9d07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Path/PathScripts/PathPost.py
Expand Up @@ -291,7 +291,7 @@ def Activated(self):
# create an object to serve as the fixture path
fobj = _TempObject()
c1 = Path.Command(f)
c2 = Path.Command("G0 Z" + str(job.Stock.Shape.BoundBox.ZMax))
c2 = Path.Command("G0 Z" + str(job.Stock.Shape.BoundBox.ZMax + job.SetupSheet.ClearanceHeightOffset.Value))
fobj.Path = Path.Path([c1, c2])
fobj.InList.append(job)
sublist = [fobj]
Expand Down Expand Up @@ -319,7 +319,7 @@ def Activated(self):
# create an object to serve as the fixture path
fobj = _TempObject()
c1 = Path.Command(f)
c2 = Path.Command("G0 Z" + str(job.Stock.Shape.BoundBox.ZMax))
c2 = Path.Command("G0 Z" + str(job.Stock.Shape.BoundBox.ZMax + job.SetupSheet.ClearanceHeightOffset.Value))
fobj.Path = Path.Path([c1, c2])
fobj.InList.append(job)
fixturelist.append(fobj)
Expand Down Expand Up @@ -361,7 +361,7 @@ def Activated(self):
# create an object to serve as the fixture path
fobj = _TempObject()
c1 = Path.Command(f)
c2 = Path.Command("G0 Z" + str(job.Stock.Shape.BoundBox.ZMax))
c2 = Path.Command("G0 Z" + str(job.Stock.Shape.BoundBox.ZMax + job.SetupSheet.ClearanceHeightOffset.Value))
fobj.Path = Path.Path([c1, c2])
fobj.InList.append(job)
fixturelist.append(fobj)
Expand Down

0 comments on commit cce9d07

Please sign in to comment.