Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update addon to support FreeCAD 1.0 #57

Merged
merged 7 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use CAM name replacing PATH
  • Loading branch information
dubstar-04 committed Dec 12, 2024
commit 10a644eb7ec17267e8fc70b2a8a952ddd8a6be3c
File renamed without changes.
8 changes: 4 additions & 4 deletions PathFeedsAndSpeedsGui.py → CAMFeedsAndSpeedsGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
from importFCMat import read
import MaterialEditor

import PathFeedsAndSpeeds
import CAMFeedsAndSpeeds

dir = os.path.dirname(__file__)
ui_name = "PathFeedsAndSpeedsGui.ui"
ui_name = "CAMFeedsAndSpeedsGui.ui"
path_to_ui = os.path.join(dir, ui_name)
material_dir = os.path.join(dir, 'Materials')
iconPath = os.path.join(dir, 'Icons')
Expand All @@ -31,7 +31,7 @@ def __init__(self):
self.material = {} # selected material

# Init
self.calculation = PathFeedsAndSpeeds.FSCalculation()
self.calculation = CAMFeedsAndSpeeds.FSCalculation()
self.load_materials()
self.setup_ui()
self.calculate()
Expand Down Expand Up @@ -215,7 +215,7 @@ def calculate(self):
if not self.validate_input():
return

tool = PathFeedsAndSpeeds.Tool()
tool = CAMFeedsAndSpeeds.Tool()

self.calculation.rpm_overide = self.form.rpm_LE.text()
surfaceSpeed = float(self.form.ss_LE.text())
Expand Down
2 changes: 1 addition & 1 deletion PathFeedsAndSpeedsGui.ui → CAMFeedsAndSpeedsGui.ui
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</size>
</property>
<property name="windowTitle">
<string>Path Feeds and Speeds</string>
<string>Feeds and Speeds</string>
</property>
<property name="statusTip">
<string/>
Expand Down
4 changes: 2 additions & 2 deletions InitFeedsAndSpeeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import FreeCADGui
from PySide import QtGui
import PathFeedsAndSpeedsGui
import CAMFeedsAndSpeedsGui
import os

__dir__ = os.path.dirname(__file__)
Expand Down Expand Up @@ -66,7 +66,7 @@ def updateMenu(workbench):
action.setText("Feeds and Speeds")
action.setIcon(QtGui.QPixmap(getIcon('CAM_FeedsAndSpeeds.svg')))
action.setStatusTip("Check Feeds and Speeds")
action.triggered.connect(PathFeedsAndSpeedsGui.Show)
action.triggered.connect(CAMFeedsAndSpeedsGui.Show)

# append this addon to addon menu
addonMenu.addAction(action)
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# FreeCAD Feeds and Speeds Calculator
A FreeCAD Path Addon to help generate basic feeds and speeds for machining.
A FreeCAD CAM Addon to help generate basic feeds and speeds for machining.

## Description
This addon when installed will appear in the Path Workbench toolbar menu, the purpose of the addon is to define initial machining parameters
This addon when installed will appear in the CAM Workbench toolbar menu, the purpose of the addon is to define initial machining parameters
for the spindle speed and feedrate. This can be done by Spindle RPM or chipload (Feed Per Tooth).

## Features
* Select path tool controller
* Select tool controller
* Select workpiece material
* Select Tool Material
* Select tool material
* Set machining parameters
* write calculated feedrate and spindle speed to the selected tool controller
* Write calculated feedrate and spindle speed to the selected tool controller

## Requirements
* FreeCAD v0.20 or later
* Path Toolbit (Legacy tools not supported)
* FreeCAD v 1.0 or later
* CAM Toolbit (Legacy tools not supported)
* Python3
* Qt5

Expand All @@ -23,7 +23,7 @@ for the spindle speed and feedrate. This can be done by Spindle RPM or chipload
2. Restart FreeCAD

## Feedback
If you have feedback or need to report bugs please participate on the related [Path Forum](https://forum.freecadweb.org/viewforum.php?f=15).
If you have feedback or need to report bugs please participate on the related [CAM Forum](https://forum.freecadweb.org/viewforum.php?f=15).

## Disclaimer
This is an experimental tool and must be used at your own risk. Machine tools are dangerous and the author of this tool will not be responsible for any
Expand Down