You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
import FreeCAD as App
|
|
|
|
|
import FreeCADGui as Gui
|
|
|
|
|
|
|
|
|
|
class LaserPath:
|
|
|
|
|
def __init__(self, obj):
|
|
|
|
|
obj.addProperty("App::PropertyEnumeration", "pathtype", "Parameter", "How this path is converted to robot")
|
|
|
|
|
obj.pathtype = ["LIN", "CIRC", "SPLINE"]
|
|
|
|
|
|
|
|
|
|
# obj.addExtension("App::GroupExtensionPython")
|
|
|
|
|
# obj.Proxy = self
|
|
|
|
|
|
|
|
|
|
def onChanged(self, fp, prop):
|
|
|
|
|
'''Do something when a property has changed'''
|
|
|
|
|
#App.Console.PrintMessage("Change property: " + str(prop) + "\n")
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def execute(self, fp):
|
|
|
|
|
App.Console.PrintMessage("Recompute LaserPath\n")
|