import FreeCAD as App class LaserPath: def __init__(self, obj): '''Add some custom properties to our box feature''' obj.addProperty("App::Property", "base_reference", "Reference", "Reference Point (teached)") obj.base_reference = App.Vector(0,0,0) obj.Proxy = self def onChanged(self, fp, prop): '''Do something when a property has changed''' App.Console.PrintMessage("Change property: " + str(prop) + "\n") def execute(self, fp): '''Do something when doing a recomputation, this method is mandatory''' App.Console.PrintMessage("Recompute Python Box feature\n")